Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-1909

Invalid log links in builds restarted with heartbeat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • production
    • Coin (obsolete)
    • None

    Description

      Sample build:

      https://testresults.qt.io/coin/integration/qt3dstudio/qt3d-runtime/tasks/1523002838

      This had test item for configuration "Windows 10 (msvc2017-x86_64)" stuck because mature-bear crashed. Heartbeat worked correctly and restarted the agent and it finished correctly.

      However the log link is not correct:

      https://testresults.qt.io/coin/api/results/qt3dstudio/qt3d-runtime/b82ae0d3ea908869ca19cb92af836a164a96ab51/WindowsWindows_10x86_64WindowsWindows_10x86_64MSVC2017qtci-windows-10-x86_64-10-a05e9cDebugAndRelease_Release_ForceDebugInfo_OpenGLDynamic/61724257484a78901ef4b59bc6954552c8907f77/test_1523003223/log.txt.gz

      It seems the gz header is located in two places in the file:

       hexdump -C log.txt.gz | grep "1f 8b 08 00" -A 2
      00000000  1f 8b 08 00 00 00 00 00  00 ff 24 c9 b1 0a 02 31  |..........$....1|
      00000010  0c 06 e0 dd a7 f8 47 1d  ec 25 b9 86 b4 79 0e c1  |......G..%...y..|
      00000020  59 34 d4 c2 d9 0e 77 ef  8f a0 f3 f7 68 31 0e 17  |Y4....w.....h1..|
      --
      00003cd0  42 1d 4c e3 02 00 00 00  ff ff 1f 8b 08 00 00 00  |B.L.............|
      00003ce0  00 00 00 ff 24 c9 31 0e  c2 30 0c 05 d0 9d 53 fc  |....$.1..0....S.|
      00003cf0  11 06 d2 7c b7 a9 13 9f  03 89 19 81 15 22 95 64  |...|.........".d|

      I used hex editor to remove everything before 0x3cda and the log file was functional again and showed the logs of the new build. That means the new gz file is simply appended to the old one.

      Attachments

        Issue Links

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

          Activity

            People

              aakeskimo Aapo Keskimölö
              sanurmen Sami Nurmenniemi
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes