Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-282

Test agent might fail due to missing artifacts from storage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • master
    • Agent, Tests
    • None
    • 9979053146372758dff1768089aa779f304c54c4 (qtqa/tqtc-coin-ci/1.1)

    Description

      There is a race condition in agent python tests

      http://ci-files01-hki.intra.qt.io:8080/coin/logview/qtqa/tqtc-coin-ci/334260de7355dc43d2ad4860b2158bc981d536fa/LinuxUbuntu_18_04x86_64LinuxUbuntu_18_04x86_64GCCqtci-linux-Ubuntu-18.04-x86_64-cb20c0/825e7562d49596d49ae22649c3c4316264a99b4f/build_1560778664

       

      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,552.552 INFO:run_tests.py:118(14572): ======================================================================
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,553.553 INFO:run_tests.py:118(14572): FAIL: test_artifact_production (__main__.TestAgent)
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,553.553 INFO:run_tests.py:118(14572): ----------------------------------------------------------------------
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,553.553 INFO:run_tests.py:118(14572): Traceback (most recent call last):
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,554.554 INFO:run_tests.py:118(14572): File "/home/qt/work/qtqa/tqtc-coin-ci/src/tests/testlib.py", line 204, in <lambda>
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,554.554 INFO:run_tests.py:118(14572): return lambda *args, **kwargs: _asyncio_test_loop.run_until_complete(f(*args, **kwargs))
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,555.555 INFO:run_tests.py:118(14572): File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,555.555 INFO:run_tests.py:118(14572): return future.result()
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,555.555 INFO:run_tests.py:118(14572): File "/home/qt/work/qtqa/tqtc-coin-ci/src/tests/test_agent.py", line 230, in test_artifact_production
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,556.556 INFO:run_tests.py:118(14572): self.assertTrue(self.testStorage.hasArtifacts(request.workItemPath, ["artifacts.tar.gz"]))
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,556.556 INFO:run_tests.py:118(14572): AssertionError: False is not true
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,556.556 INFO:run_tests.py:118(14572): 
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,557.557 INFO:run_tests.py:118(14572): ======================================================================
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,557.557 INFO:run_tests.py:118(14572): FAIL: test_conan_buildinfo_copying (__main__.TestAgent)
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,558.558 INFO:run_tests.py:118(14572): ----------------------------------------------------------------------
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,558.558 INFO:run_tests.py:118(14572): Traceback (most recent call last):
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,558.558 INFO:run_tests.py:118(14572): File "/home/qt/work/qtqa/tqtc-coin-ci/src/tests/testlib.py", line 204, in <lambda>
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,559.559 INFO:run_tests.py:118(14572): return lambda *args, **kwargs: _asyncio_test_loop.run_until_complete(f(*args, **kwargs))
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,559.559 INFO:run_tests.py:118(14572): File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,560.560 INFO:run_tests.py:118(14572): return future.result()
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,560.560 INFO:run_tests.py:118(14572): File "/home/qt/work/qtqa/tqtc-coin-ci/src/tests/test_agent.py", line 681, in test_conan_buildinfo_copying
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,560.560 INFO:run_tests.py:118(14572): self.assertTrue(self.testStorage.hasArtifacts(request.workItemPath, ["artifacts.tar.gz"]))
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,561.561 INFO:run_tests.py:118(14572): AssertionError: False is not true
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,561.561 INFO:run_tests.py:118(14572): 
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,562.562 INFO:run_tests.py:118(14572): ======================================================================
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,562.562 INFO:run_tests.py:118(14572): FAIL: test_core_file_upload (__main__.TestAgent)
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,562.562 INFO:run_tests.py:118(14572): ----------------------------------------------------------------------
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,563.563 INFO:run_tests.py:118(14572): Traceback (most recent call last):
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,563.563 INFO:run_tests.py:118(14572): File "/home/qt/work/qtqa/tqtc-coin-ci/src/tests/testlib.py", line 204, in <lambda>
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,563.563 INFO:run_tests.py:118(14572): return lambda *args, **kwargs: _asyncio_test_loop.run_until_complete(f(*args, **kwargs))
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,564.564 INFO:run_tests.py:118(14572): File "/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,564.564 INFO:run_tests.py:118(14572): return future.result()
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,564.564 INFO:run_tests.py:118(14572): File "/home/qt/work/qtqa/tqtc-coin-ci/src/tests/test_agent.py", line 341, in test_core_file_upload
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,565.565 INFO:run_tests.py:118(14572): self.assertEqual(1, numCoreFilesUploaded())
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,565.565 INFO:run_tests.py:118(14572): AssertionError: 1 != 0
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,565.565 INFO:run_tests.py:118(14572): 
      agent:2019/06/18 09:17:23 build.go:197: 2019-06-18 12:17:23,566.566 INFO:run_tests.py:118(14572): --------------------------------------------------------------
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aakeskimo Aapo Keskimölö
            aakeskimo Aapo Keskimölö
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes