Skip to content

Commit

Permalink
Ignore broken pipe error messages and statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 committed Jun 29, 2022
1 parent 71a2280 commit 6a86516
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-gcp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,10 @@ jobs:
token_format: 'access_token'

# Show all the logs since the container launched,
# following until Sapling activation (or the test finishes)
# following until Sapling activation (or the test finishes).
#
# The log pipeline ignores the exit status of `docker logs`.
# Errors in the tests are caught by the final test status job.
- name: Show logs for ${{ inputs.test_id }} test (sprout)
run: |
gcloud compute ssh \
Expand All @@ -509,12 +512,11 @@ jobs:
--ssh-flag="-o ServerAliveInterval=5" \
--command \
"\
set -o pipefail; \
docker logs \
--tail all \
--follow \
${{ inputs.test_id }} | \
tee --output-error=exit-nopipe /dev/stderr | \
tee --output-error=exit /dev/stderr | \
grep --max-count=1 --extended-regexp --color=always \
'(estimated progress.*network_upgrade.*=.*Sapling)|(test result:.*finished in)' \
"
Expand Down Expand Up @@ -567,12 +569,11 @@ jobs:
--ssh-flag="-o ServerAliveInterval=5" \
--command \
"\
set -o pipefail; \
docker logs \
--tail ${{ env.EXTRA_LOG_LINES }} \
--follow \
${{ inputs.test_id }} | \
tee --output-error=exit-nopipe /dev/stderr | \
tee --output-error=exit /dev/stderr | \
grep --max-count=1 --extended-regexp --color=always \
'(verified final checkpoint)|(test result:.*finished in)' \
"
Expand Down Expand Up @@ -624,12 +625,11 @@ jobs:
--ssh-flag="-o ServerAliveInterval=5" \
--command \
"\
set -o pipefail; \
docker logs \
--tail ${{ env.EXTRA_LOG_LINES }} \
--follow \
${{ inputs.test_id }} | \
tee --output-error=exit-nopipe /dev/stderr | \
tee --output-error=exit /dev/stderr | \
grep --max-count=1 --extended-regexp --color=always \
'test result:.*finished in' \
"
Expand Down

0 comments on commit 6a86516

Please sign in to comment.