Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-5416

Move long running tests to special profile or integration tests

    XMLWordPrintableJSON

Details

    Description

      Running the build with tests is a very long process; sometimes a multithread build can be problematic, and running the full build is over half an hour on commodity hardware.

      Some unit tests wait an inordinate amount of time and do not need to be run as part of the normal build. I've started to identify some of these tests just via repeated runs. Either they should be moved to the integration tests profile, or a new profile / JUnit category to be run only when necessary.

      A quick collection of significantly longer tests shows the possibility of >6 minutes shaved off the build.

      • TestTailFile 18s
      • TestPostHTTP 35s
      • TestListFile 58s
      • TestListenUDP 39s
      • TestInvokeHttpTwoWaySSL 67s
      • TestInvokeHttpSSL 67s
      • TestInvokeHttp 10s
      • TestGetHTTP 35s
      • TestRELPSocketChannelHandler 36s
      • DBCPServiceTest 37s

      =>400 seconds = 6+ minutes saved

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alopresto Andy LoPresto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: