CI: Create report files only when Launchable setup succeeded

This commit is contained in:
Nobuyoshi Nakada 2025-06-06 02:43:09 +09:00
parent a62166e28e
commit 296a0d0b7c
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465
6 changed files with 36 additions and 25 deletions

View File

@ -55,6 +55,17 @@ inputs:
description: >-
Whether this workflow is executed on YJIT.
outputs:
stdout_report_path:
value: ${{ steps.variables.outputs.stdout_report_path }}
description: >-
Report file path for standard output.
stderr_report_path:
value: ${{ steps.variables.outputs.stderr_report_path }}
description: >-
Report file path for standard error.
runs:
using: composite

View File

@ -115,6 +115,7 @@ jobs:
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
- name: Set up Launchable
id: launchable
uses: ./.github/actions/launchable/setup
with:
os: ${{ matrix.os }}
@ -132,11 +133,8 @@ jobs:
- name: make ${{ matrix.test_task }}
run: |
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
exec \
> >(tee launchable_stdout.log) \
2> >(tee launchable_stderr.log)
fi
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
ulimit -c unlimited
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
@ -145,6 +143,8 @@ jobs:
RUBY_TESTOPTS: '-q --tty=no'
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
PRECHECK_BUNDLED_GEMS: 'no'
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
- name: make skipped tests
run: |

View File

@ -131,6 +131,7 @@ jobs:
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
- name: Set up Launchable
id: launchable
uses: ./.github/actions/launchable/setup
with:
os: ${{ matrix.os || 'ubuntu-22.04' }}
@ -142,11 +143,8 @@ jobs:
- name: make ${{ matrix.test_task }}
run: |
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
exec \
> >(tee launchable_stdout.log) \
2> >(tee launchable_stderr.log)
fi
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
$SETARCH make -s ${{ matrix.test_task }} \
${TESTS:+TESTS="$TESTS"} \
@ -156,6 +154,8 @@ jobs:
RUBY_TESTOPTS: '-q --tty=no'
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
PRECHECK_BUNDLED_GEMS: 'no'
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
- name: make skipped tests
run: |

View File

@ -107,6 +107,7 @@ jobs:
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
- name: Set up Launchable
id: launchable
uses: ./.github/actions/launchable/setup
with:
os: ${{ matrix.os || 'ubuntu-22.04' }}
@ -118,11 +119,8 @@ jobs:
- name: make ${{ matrix.test_task }}
run: |
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
exec \
> >(tee launchable_stdout.log) \
2> >(tee launchable_stderr.log)
fi
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
$SETARCH make -s ${{ matrix.test_task }} \
${TESTS:+TESTS="$TESTS"} \
@ -132,6 +130,8 @@ jobs:
RUBY_TESTOPTS: '-q --tty=no'
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
PRECHECK_BUNDLED_GEMS: 'no'
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
- name: make skipped tests
run: |

View File

@ -130,6 +130,7 @@ jobs:
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
- name: Set up Launchable
id: launchable
uses: ./.github/actions/launchable/setup
with:
os: macos-14
@ -142,11 +143,8 @@ jobs:
- name: make ${{ matrix.test_task }}
run: |
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
exec \
> >(tee launchable_stdout.log) \
2> >(tee launchable_stderr.log)
fi
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
RUN_OPTS="$RUN_OPTS" \
@ -157,6 +155,8 @@ jobs:
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
SYNTAX_SUGGEST_TIMEOUT: '5'
PRECHECK_BUNDLED_GEMS: 'no'
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
continue-on-error: ${{ matrix.continue-on-test_task || false }}
- name: make skipped tests

View File

@ -178,6 +178,7 @@ jobs:
run: ./miniruby --yjit -v | grep "+YJIT"
- name: Set up Launchable
id: launchable
uses: ./.github/actions/launchable/setup
with:
os: ubuntu-22.04
@ -190,11 +191,8 @@ jobs:
- name: make ${{ matrix.test_task }}
run: |
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
exec \
> >(tee launchable_stdout.log) \
2> >(tee launchable_stderr.log)
fi
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug SPECOPTS="$SPECOPTS" \
@ -207,6 +205,8 @@ jobs:
SYNTAX_SUGGEST_TIMEOUT: '5'
YJIT_BINDGEN_DIFF_OPTS: '--exit-code'
LIBCLANG_PATH: ${{ matrix.libclang_path }}
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
continue-on-error: ${{ matrix.continue-on-test_task || false }}
- name: Show ${{ github.event.pull_request.base.ref }} GitHub URL for yjit-bench comparison