Skip to content

Commit

Permalink
Fix tpaexec test step in integration tests
Browse files Browse the repository at this point in the history
Github's handling of output was masking the actual exit code of tpaexec
test command inside the action step.

this fix saves the value of the actual tpaexec test exit code and use it
as the global exit code for the action step.
  • Loading branch information
JonathanRenon-EDB authored and haroon-github committed Jul 24, 2024
1 parent 146ada0 commit 396d351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/integration-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ runs:
REMAINING=$(expr $MAX_GITHUB_OUTPUT_BYTES - $CURRENT_BUFFER_BYTES)
echo "::group::tpaexec test -vv"
./bin/tpaexec test "$CLUSTER" -vv &>"$CLUSTER"/tpaexec-test
status=$?
cat "$CLUSTER"/tpaexec-test
echo "::endgroup::"
sed -n '/PLAY RECAP/,$p' "$CLUSTER"/tpaexec-test|egrep -v '(ResourceWarning|cli.run)' > "$CLUSTER"/test-recap;
Expand All @@ -182,6 +183,7 @@ runs:
else
echo "Hiting Github action limits on GITHUB_STEP_SUMMARY file. Content dropped."
fi
exit $status
shell: bash {0}

Expand Down

0 comments on commit 396d351

Please sign in to comment.