Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-8049

Bug in dumping stdout/stderr on error in unit testing on os x - cmake

      The following is a failure in unit testing on OS X - Cmake build. To triage the error I had to download the artifacts, and look at stdout/stderr. We attempt to show contents of stdout/stderr in such a case to make triage activity easier, but it failed for some reason:

      https://evergreen.mongodb.com/task/wiredtiger_macos_1014_cmake_unit_test_eca5b4b1265ec5d979b011256633702e9ff52b7b_21_09_03_08_32_48

      [2021/09/03 10:07:14.862] Running command 'shell.exec' in "dump stderr/stdout" (step 3 of 4)
      [2021/09/03 10:07:15.086] if [ -d "WT_TEST" ]; then
      [2021/09/03 10:07:15.086]   # Dump stderr/stdout contents generated by the C libraries onto console for Python tests
      [2021/09/03 10:07:15.086]   find "WT_TEST" -name "std*.txt" ! -empty -exec sh -c "echo 'Contents from {}:'; cat '{}'" \;
      [2021/09/03 10:07:15.086] fi
      [2021/09/03 10:07:15.087] Finished 'shell.exec' in "dump stderr/stdout" in 5.298395ms
      

      In this case, manually downloading artifacts and looking for files did get me the contents needed for triaging.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: