Skip to content

Commit

Permalink
fix crash dummy check
Browse files Browse the repository at this point in the history
  • Loading branch information
ric-evans committed Sep 27, 2024
1 parent 5e1a499 commit c764dc9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,16 @@ jobs:
- name: look at stderrfiles
run: |
set -x
# check for fails
stderrfiles=$(find $SKYSCAN_DEBUG_DIR/ -name "stderrfile" -type f -exec sh -c "tail -1 {} | sed -e 's/^.*DEBUG //p' " \; | sort | uniq -c)
echo $stderrfiles
if [ -z "${stderrfiles}" ]; then
# check for fails/errors
error_type_1='PilotSubprocessError\(.*Subprocess completed with exit code 1: KeyError: .intentional crash-dummy error.'
error_type_2='TimeoutError\(.*subprocess timed out after 15s'
pattern="$error_type_1|$error_type_2"
if find "$CI_TEST_RUN_STDOUT_STDERR_DIR/worker-"*/pilot.out -type f -exec grep -qE "$pattern" {} +; then
echo "Match(es) found: PilotSubprocessError and/or TimeoutError occurred."
else
echo "No matches found."
exit 1
fi
Expand Down

0 comments on commit c764dc9

Please sign in to comment.