diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2025-06-06 12:11:44 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-06-06 14:03:32 +0900 |
| commit | 180214287e213eee3a2e786840d8d0b6b8203587 (patch) | |
| tree | 49417313b95bd19220dad58e9bedf5b351b71a1c | |
| parent | 78d2a2308f58447688e078f8da7e63611d895837 (diff) | |
CI: Continue without record if Launchable setup failed
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13538
| -rwxr-xr-x | .github/actions/compilers/entrypoint.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.github/actions/compilers/entrypoint.sh b/.github/actions/compilers/entrypoint.sh index bd1f7ad051..503143b293 100755 --- a/.github/actions/compilers/entrypoint.sh +++ b/.github/actions/compilers/entrypoint.sh @@ -146,11 +146,12 @@ if [ "$LAUNCHABLE_ENABLED" = "true" ]; then btest_session_file='launchable_btest_session.txt' test_spec_session_file='launchable_test_spec_session.txt' setup_launchable & setup_pid=$! - (sleep 180; kill "$setup_pid" 2> /dev/null) & sleep_pid=$! - wait -f "$setup_pid" + (sleep 180; echo "setup_launchable timed out; killing"; kill "$setup_pid" 2> /dev/null) & sleep_pid=$! + launchable_failed=false + wait -f "$setup_pid" || launchable_failed=true kill "$sleep_pid" 2> /dev/null echo "::endgroup::" - trap launchable_record_test EXIT + $launchable_failed || trap launchable_record_test EXIT fi pushd ${builddir} |
