Skip to content

Commit

Permalink
C++ tests CI: prevent macOS CI timeout from hiding the logs
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Oct 13, 2024
1 parent ca002d9 commit 2998c1c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ jobs:
ARCH_AND_OS: aarch64-apple-darwin
SCCACHE_AZURE_CONNECTION_STRING: ${{ secrets.AZURE_CI_STORAGE_CONNECTION_STRING }}

- name: Setup dependencies
run: brew install coreutils

- name: Setup misc
run: |
sudo chmod 755 "$HOME"
Expand All @@ -116,17 +119,20 @@ jobs:
# The AbortHandler doesn't work so well on Github's macOS runners:
# - crash-watch invocation freezes the runner, so we disable this.
# - resuming the parent process after SIGSTOP doesn't work, so we force kill the parent.
# - force killing the parent may not work, so we enforce a low timeout to prevent
# the test from haging for a long time. We enforce this primarily using the 'timeout'
# command from coreutils instead of Github Actions' timeout, because the latter
# could put the entire job in the "skipped" state and refuse to show logs.
timeout-minutes: 11
run: >
sudo env
PATH="$PATH"
GEM_PATH="$GEM_PATH"
PASSENGER_DUMP_WITH_CRASH_WATCH=false
PASSENGER_FORCE_TERMINATE_ON_ABORT=true
gtimeout --signal KILL --verbose 600
../buildout/test/cxx/main
working-directory: test
# The AbortHandler may not be able to forcefully kill the parent. We set a low timeout
# to prevent the test from hanging for a long time.
timeout-minutes: 10

- name: Archive logs
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 2998c1c

Please sign in to comment.