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

Updated evergreen command to parse folder names with undesirable characters

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.1, 4.4.7, 5.0.0-rc0, 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 3
    • Storage - Ra 2021-05-31

      As one step of post-task commands, we probe WT_TEST folder in the build directory to find out the stdout.txt/stderr.txt and dump their contents into Evergreen task log. On macOS, the dump command did not handle directory name with parentheses well enough, causing dump failure like below:

      [2021/05/12 14:38:08.752] Running command 'shell.exec' in "dump stderr/stdout" (step 3 of 4)
      [2021/05/12 14:38:08.759] if [ -d "WT_TEST" ]; then
      [2021/05/12 14:38:08.759]   # Dump stderr/stdout contents generated by the C libraries onto console for Python tests
      [2021/05/12 14:38:08.759]   find "WT_TEST" -name "std*.txt" ! -empty -exec sh -c "echo 'Contents from {}:'; cat {}" \;
      [2021/05/12 14:38:08.763] fi
      [2021/05/12 14:38:08.763] sh: -c: line 0: syntax error near unexpected token `('
      [2021/05/12 14:38:08.763] sh: -c: line 0: `echo 'Contents from WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stdout.txt:'; cat WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stdout.txt'
      [2021/05/12 14:38:08.765] sh: -c: line 0: syntax error near unexpected token `('
      [2021/05/12 14:38:08.765] sh: -c: line 0: `echo 'Contents from WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stderr.txt:'; cat WT_TEST/test_checkpoint_snapshot04.test_checkpoint_snapshot04.test_checkpoint_snapshot(target).0/stderr.txt'
      [2021/05/12 14:38:08.765] Finished 'shell.exec' in "dump stderr/stdout" in 13.444636ms

      We need to fix the dump command to make it work with macOS. 

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            luke.chen@mongodb.com Luke Chen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: