Projects tigase _server server-core Issues #747
Building server package results in lots of verbose output (#747)
Artur Hefczyc opened 8 years ago
Due Date
2017-01-31

Simple command: mvn package results in lots of very verbose output produced by the build process. Most of the output is related to running Tigase server for automated tests and it is in it's most verbose mode. All this output should be removed. Only test results should be showing up.

  • Wojciech Kapcia (Tigase) commented 8 years ago

    Artur Hefczyc wrote:

    Simple command: mvn package results in lots of very verbose output produced by the build process. Most of the output is related to running Tigase server for automated tests and it is in it's most verbose mode. All this output should be removed. Only test results should be showing up.

    There are 3 main items that add-ups to the verbosity:

    • deprecation warnings;

    • warning about javadocs

    • test-logs

    The first two items will be covered by #2750.

    As for the test - majority of it came from Kernel, I've:

    • switched all print*() calls to logger;

    • created new logger properties configuration (@src/test/resources/logging.properties@) so particular logs can be enabled if needed;

    • changed e.printStackTrace() to logger calls.

    Afterwards tests look like that:

    wojtek@atlantiscity.local ~/dev/tmps/tigase-server $ mvn  test
    Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
    [INFO] Scanning for projects...
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Tigase XMPP Server 7.2.0-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- buildnumber-maven-plugin:1.2:create (default) @ tigase-server ---
    [INFO] Checking for local modifications: skipped.
    [INFO] Updating project files from SCM: skipped.
    [INFO] ShortRevision tag detected. The value is '8'.
    [INFO] Executing: /bin/sh -c cd /Users/wojtek/dev/tmps/tigase-server && git rev-parse --verify --short=8 HEAD
    [INFO] Working directory: /Users/wojtek/dev/tmps/tigase-server
    [INFO] Storing buildNumber: 02d459d2 at timestamp: 31-ene-2017 13:46:44
    [INFO] ShortRevision tag detected. The value is '8'.
    [INFO] Executing: /bin/sh -c cd /Users/wojtek/dev/tmps/tigase-server && git rev-parse --verify --short=8 HEAD
    [INFO] Working directory: /Users/wojtek/dev/tmps/tigase-server
    [INFO] Storing buildScmBranch: UNKNOWN
    [INFO]
    [INFO] --- gmaven-plugin:1.5:execute (gitver) @ tigase-server ---
    setting revision to: 4636
    [INFO]
    [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ tigase-server ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 6 resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ tigase-server ---
    [INFO] Compiling 3 source files to /Users/wojtek/dev/tmps/tigase-server/target/classes
    [INFO]
    [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ tigase-server ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 1 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ tigase-server ---
    [INFO] Nothing to compile - all classes are up to date
    [INFO]
    [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ tigase-server ---
    
    -------------------------------------------------------
     T E S T S
    -------------------------------------------------------
    Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true
    Running tigase.component.PropertiesBeanConfiguratorTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.963 sec - in tigase.component.PropertiesBeanConfiguratorTest
    Running tigase.conf.ConfigHelperTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in tigase.conf.ConfigHelperTest
    Running tigase.conf.ConfigReaderTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec - in tigase.conf.ConfigReaderTest
    Running tigase.eventbus.component.stores.AffiliationStoreTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.eventbus.component.stores.AffiliationStoreTest
    Running tigase.eventbus.impl.EventBusImplementationTest
    Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec - in tigase.eventbus.impl.EventBusImplementationTest
    Running tigase.eventbus.impl.EventBusSerializerTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in tigase.eventbus.impl.EventBusSerializerTest
    Running tigase.eventbus.impl.EventNameTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.eventbus.impl.EventNameTest
    Running tigase.eventbus.impl.EventsNameMapTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.eventbus.impl.EventsNameMapTest
    Running tigase.eventbus.impl.ReflectEventListenerHandlerFactoryTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.eventbus.impl.ReflectEventListenerHandlerFactoryTest
    Running tigase.io.SSLContextContainerTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.io.SSLContextContainerTest
    Running tigase.kernel.GenericBeanKernelTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in tigase.kernel.GenericBeanKernelTest
    Running tigase.kernel.KernelTest
    Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.056 sec - in tigase.kernel.KernelTest
    Running tigase.kernel.modular.ApplicationTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in tigase.kernel.modular.ApplicationTest
    Running tigase.kernel.RegistrarBeanKernelTest
    Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec - in tigase.kernel.RegistrarBeanKernelTest
    Running tigase.kernel.RegistratBeanCyclicTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in tigase.kernel.RegistratBeanCyclicTest
    Running tigase.kernel.TypesConverterTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.011 sec - in tigase.kernel.TypesConverterTest
    Running tigase.map.ClusterMapFactoryTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 sec - in tigase.map.ClusterMapFactoryTest
    Running tigase.map.DMapTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.map.DMapTest
    Running tigase.monitor.tasks.UsersDisconnectTaskTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.017 sec - in tigase.monitor.tasks.UsersDisconnectTaskTest
    Running tigase.server.ConnectionManagerTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec - in tigase.server.ConnectionManagerTest
    Running tigase.server.PacketTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in tigase.server.PacketTest
    Running tigase.util.AllHistoryCacheTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.util.AllHistoryCacheTest
    Running tigase.util.DataTypesTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.util.DataTypesTest
    Running tigase.util.ReflectionHelperTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.util.ReflectionHelperTest
    Running tigase.vhosts.filter.CustomDomainFilterTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.vhosts.filter.CustomDomainFilterTest
    Running tigase.vhosts.filter.DomainFilterPolicyTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.vhosts.filter.DomainFilterPolicyTest
    Running tigase.xmpp.impl.annotation.AnnotatedXMPPProcessorTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in tigase.xmpp.impl.annotation.AnnotatedXMPPProcessorTest
    Running tigase.xmpp.impl.BindResourceTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec - in tigase.xmpp.impl.BindResourceTest
    Running tigase.xmpp.impl.BlockingCommandTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 sec - in tigase.xmpp.impl.BlockingCommandTest
    Running tigase.xmpp.impl.C2SDeliveryErrorProcessorTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec - in tigase.xmpp.impl.C2SDeliveryErrorProcessorTest
    Running tigase.xmpp.impl.DomainFilterTest
    Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec - in tigase.xmpp.impl.DomainFilterTest
    Running tigase.xmpp.impl.JabberIqPrivacyTest
    Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 sec - in tigase.xmpp.impl.JabberIqPrivacyTest
    Running tigase.xmpp.impl.MessageAmpTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.021 sec - in tigase.xmpp.impl.MessageAmpTest
    Running tigase.xmpp.impl.MessageCarbonsTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in tigase.xmpp.impl.MessageCarbonsTest
    Running tigase.xmpp.impl.MessageTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.xmpp.impl.MessageTest
    Running tigase.xmpp.impl.MobileV3Test
    Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in tigase.xmpp.impl.MobileV3Test
    Running tigase.xmpp.impl.OfflineMessages_StampComparatorTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in tigase.xmpp.impl.OfflineMessages_StampComparatorTest
    Running tigase.xmpp.impl.OfflineMessagesTest
    Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec - in tigase.xmpp.impl.OfflineMessagesTest
    Running tigase.xmpp.impl.roster.RosterElementTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.xmpp.impl.roster.RosterElementTest
    Running tigase.xmpp.impl.TokenBucketPoolTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec - in tigase.xmpp.impl.TokenBucketPoolTest
    Running tigase.xmpp.impl.VCardHelperTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec - in tigase.xmpp.impl.VCardHelperTest
    Running tigase.xmpp.XMPPDomBuilderHandlerTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in tigase.xmpp.XMPPDomBuilderHandlerTest
    Running tigase.auth.mechanisms.SaslANONYMOUSTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.auth.mechanisms.SaslANONYMOUSTest
    Running tigase.auth.mechanisms.SaslPLAINTest
    Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec - in tigase.auth.mechanisms.SaslPLAINTest
    Running tigase.auth.mechanisms.SaslSCRAMPlusTest
    Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.359 sec - in tigase.auth.mechanisms.SaslSCRAMPlusTest
    Running tigase.auth.mechanisms.SaslSCRAMTest
    Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 35.227 sec - in tigase.auth.mechanisms.SaslSCRAMTest
    Running tigase.cluster.api.ClusterElementTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.cluster.api.ClusterElementTest
    Running tigase.cluster.ClusterConnectionSelectorTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.cluster.ClusterConnectionSelectorTest
    Running tigase.server.websocket.WebSocketHixie76Test
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.server.websocket.WebSocketHixie76Test
    Running tigase.server.websocket.WebSocketHybiTest
    Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.server.websocket.WebSocketHybiTest
    Running tigase.server.websocket.WebSocketXMPPIOServiceTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in tigase.server.websocket.WebSocketXMPPIOServiceTest
    Running tigase.server.xmppclient.StreamManagementIOProcessorTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.009 sec - in tigase.server.xmppclient.StreamManagementIOProcessorTest
    Running tigase.server.xmppserver.proc.DialbackTest
    Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.181 sec - in tigase.server.xmppserver.proc.DialbackTest
    Running tigase.server.xmppserver.S2SConnectionManagerDomainServerNameMapperTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.server.xmppserver.S2SConnectionManagerDomainServerNameMapperTest
    Running tigase.vhosts.VHostItemTest
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec - in tigase.vhosts.VHostItemTest
    Running tigase.vhosts.VHostJDBCRepositoryTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec - in tigase.vhosts.VHostJDBCRepositoryTest
    Running tigase.db.jdbc.JDBCRepositoryTest
    Tests run: 2, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.008 sec - in tigase.db.jdbc.JDBCRepositoryTest
    Running tigase.server.BootstrapTest
    Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec - in tigase.server.BootstrapTest
    Running tigase.xmpp.impl.JabberIqRegisterWhitelistTest
    Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec - in tigase.xmpp.impl.JabberIqRegisterWhitelistTest
    
    Results :
    
    Tests run: 199, Failures: 0, Errors: 0, Skipped: 3
    
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 42.549 s
    [INFO] Finished at: 2017-01-31T13:47:25-03:00
    [INFO] Final Memory: 26M/308M
    [INFO] ------------------------------------------------------------------------
    wojtek@atlantiscity.local ~/dev/tmps/tigase-server $
    
  • Artur Hefczyc commented 8 years ago

    Checked and it looks OK now. All the depreciation warnings and javadoc are acceptable in the sense that they are related to compilation and building packages. Of course the depreciation warning and javadoc warning should be eventually fixed. The biggest problem was the output from running the Tigase XMPP Server.

issue 1 of 1
Type
Bug
Priority
Major
Assignee
RedmineID
4863
Version
tigase-server-8.0.0
Spent time
0
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#747
Please wait...
Page is in error, reload to recover