CI: Create report files only when Launchable setup succeeded
This commit is contained in:
parent
a62166e28e
commit
296a0d0b7c
11
.github/actions/launchable/setup/action.yml
vendored
11
.github/actions/launchable/setup/action.yml
vendored
@ -55,6 +55,17 @@ inputs:
|
|||||||
description: >-
|
description: >-
|
||||||
Whether this workflow is executed on YJIT.
|
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:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
|
|
||||||
|
10
.github/workflows/macos.yml
vendored
10
.github/workflows/macos.yml
vendored
@ -115,6 +115,7 @@ jobs:
|
|||||||
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
||||||
|
|
||||||
- name: Set up Launchable
|
- name: Set up Launchable
|
||||||
|
id: launchable
|
||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os }}
|
os: ${{ matrix.os }}
|
||||||
@ -132,11 +133,8 @@ jobs:
|
|||||||
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
|
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
|
||||||
exec \
|
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
|
||||||
> >(tee launchable_stdout.log) \
|
|
||||||
2> >(tee launchable_stderr.log)
|
|
||||||
fi
|
|
||||||
|
|
||||||
ulimit -c unlimited
|
ulimit -c unlimited
|
||||||
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
|
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"}
|
||||||
@ -145,6 +143,8 @@ jobs:
|
|||||||
RUBY_TESTOPTS: '-q --tty=no'
|
RUBY_TESTOPTS: '-q --tty=no'
|
||||||
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
||||||
PRECHECK_BUNDLED_GEMS: 'no'
|
PRECHECK_BUNDLED_GEMS: 'no'
|
||||||
|
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
|
||||||
|
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
|
||||||
|
|
||||||
- name: make skipped tests
|
- name: make skipped tests
|
||||||
run: |
|
run: |
|
||||||
|
10
.github/workflows/modgc.yml
vendored
10
.github/workflows/modgc.yml
vendored
@ -131,6 +131,7 @@ jobs:
|
|||||||
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
||||||
|
|
||||||
- name: Set up Launchable
|
- name: Set up Launchable
|
||||||
|
id: launchable
|
||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os || 'ubuntu-22.04' }}
|
os: ${{ matrix.os || 'ubuntu-22.04' }}
|
||||||
@ -142,11 +143,8 @@ jobs:
|
|||||||
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
|
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
|
||||||
exec \
|
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
|
||||||
> >(tee launchable_stdout.log) \
|
|
||||||
2> >(tee launchable_stderr.log)
|
|
||||||
fi
|
|
||||||
|
|
||||||
$SETARCH make -s ${{ matrix.test_task }} \
|
$SETARCH make -s ${{ matrix.test_task }} \
|
||||||
${TESTS:+TESTS="$TESTS"} \
|
${TESTS:+TESTS="$TESTS"} \
|
||||||
@ -156,6 +154,8 @@ jobs:
|
|||||||
RUBY_TESTOPTS: '-q --tty=no'
|
RUBY_TESTOPTS: '-q --tty=no'
|
||||||
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
||||||
PRECHECK_BUNDLED_GEMS: 'no'
|
PRECHECK_BUNDLED_GEMS: 'no'
|
||||||
|
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
|
||||||
|
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
|
||||||
|
|
||||||
- name: make skipped tests
|
- name: make skipped tests
|
||||||
run: |
|
run: |
|
||||||
|
10
.github/workflows/ubuntu.yml
vendored
10
.github/workflows/ubuntu.yml
vendored
@ -107,6 +107,7 @@ jobs:
|
|||||||
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
||||||
|
|
||||||
- name: Set up Launchable
|
- name: Set up Launchable
|
||||||
|
id: launchable
|
||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
os: ${{ matrix.os || 'ubuntu-22.04' }}
|
os: ${{ matrix.os || 'ubuntu-22.04' }}
|
||||||
@ -118,11 +119,8 @@ jobs:
|
|||||||
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
|
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
|
||||||
exec \
|
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
|
||||||
> >(tee launchable_stdout.log) \
|
|
||||||
2> >(tee launchable_stderr.log)
|
|
||||||
fi
|
|
||||||
|
|
||||||
$SETARCH make -s ${{ matrix.test_task }} \
|
$SETARCH make -s ${{ matrix.test_task }} \
|
||||||
${TESTS:+TESTS="$TESTS"} \
|
${TESTS:+TESTS="$TESTS"} \
|
||||||
@ -132,6 +130,8 @@ jobs:
|
|||||||
RUBY_TESTOPTS: '-q --tty=no'
|
RUBY_TESTOPTS: '-q --tty=no'
|
||||||
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
||||||
PRECHECK_BUNDLED_GEMS: 'no'
|
PRECHECK_BUNDLED_GEMS: 'no'
|
||||||
|
LAUNCHABLE_STDOUT: ${{ steps.launchable.outputs.stdout_report_path }}
|
||||||
|
LAUNCHABLE_STDERR: ${{ steps.launchable.outputs.stderr_report_path }}
|
||||||
|
|
||||||
- name: make skipped tests
|
- name: make skipped tests
|
||||||
run: |
|
run: |
|
||||||
|
10
.github/workflows/yjit-macos.yml
vendored
10
.github/workflows/yjit-macos.yml
vendored
@ -130,6 +130,7 @@ jobs:
|
|||||||
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
if: ${{ matrix.test_task == 'check' && matrix.skipped_tests }}
|
||||||
|
|
||||||
- name: Set up Launchable
|
- name: Set up Launchable
|
||||||
|
id: launchable
|
||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
os: macos-14
|
os: macos-14
|
||||||
@ -142,11 +143,8 @@ jobs:
|
|||||||
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
|
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
|
||||||
exec \
|
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
|
||||||
> >(tee launchable_stdout.log) \
|
|
||||||
2> >(tee launchable_stderr.log)
|
|
||||||
fi
|
|
||||||
|
|
||||||
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
|
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
|
||||||
RUN_OPTS="$RUN_OPTS" \
|
RUN_OPTS="$RUN_OPTS" \
|
||||||
@ -157,6 +155,8 @@ jobs:
|
|||||||
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
TEST_BUNDLED_GEMS_ALLOW_FAILURES: 'typeprof,rbs,repl_type_completor'
|
||||||
SYNTAX_SUGGEST_TIMEOUT: '5'
|
SYNTAX_SUGGEST_TIMEOUT: '5'
|
||||||
PRECHECK_BUNDLED_GEMS: 'no'
|
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 }}
|
continue-on-error: ${{ matrix.continue-on-test_task || false }}
|
||||||
|
|
||||||
- name: make skipped tests
|
- name: make skipped tests
|
||||||
|
10
.github/workflows/yjit-ubuntu.yml
vendored
10
.github/workflows/yjit-ubuntu.yml
vendored
@ -178,6 +178,7 @@ jobs:
|
|||||||
run: ./miniruby --yjit -v | grep "+YJIT"
|
run: ./miniruby --yjit -v | grep "+YJIT"
|
||||||
|
|
||||||
- name: Set up Launchable
|
- name: Set up Launchable
|
||||||
|
id: launchable
|
||||||
uses: ./.github/actions/launchable/setup
|
uses: ./.github/actions/launchable/setup
|
||||||
with:
|
with:
|
||||||
os: ubuntu-22.04
|
os: ubuntu-22.04
|
||||||
@ -190,11 +191,8 @@ jobs:
|
|||||||
|
|
||||||
- name: make ${{ matrix.test_task }}
|
- name: make ${{ matrix.test_task }}
|
||||||
run: |
|
run: |
|
||||||
if [ -n "${LAUNCHABLE_ORGANIZATION}" ]; then
|
${LAUNCHABLE_STDOUT:+exec 1> >(tee "${LAUNCHABLE_STDOUT}")}
|
||||||
exec \
|
${LAUNCHABLE_STDERR:+exec 2> >(tee "${LAUNCHABLE_STDERR}")}
|
||||||
> >(tee launchable_stdout.log) \
|
|
||||||
2> >(tee launchable_stderr.log)
|
|
||||||
fi
|
|
||||||
|
|
||||||
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
|
make -s ${{ matrix.test_task }} ${TESTS:+TESTS="$TESTS"} \
|
||||||
RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug SPECOPTS="$SPECOPTS" \
|
RUN_OPTS="$RUN_OPTS" MSPECOPT=--debug SPECOPTS="$SPECOPTS" \
|
||||||
@ -207,6 +205,8 @@ jobs:
|
|||||||
SYNTAX_SUGGEST_TIMEOUT: '5'
|
SYNTAX_SUGGEST_TIMEOUT: '5'
|
||||||
YJIT_BINDGEN_DIFF_OPTS: '--exit-code'
|
YJIT_BINDGEN_DIFF_OPTS: '--exit-code'
|
||||||
LIBCLANG_PATH: ${{ matrix.libclang_path }}
|
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 }}
|
continue-on-error: ${{ matrix.continue-on-test_task || false }}
|
||||||
|
|
||||||
- name: Show ${{ github.event.pull_request.base.ref }} GitHub URL for yjit-bench comparison
|
- name: Show ${{ github.event.pull_request.base.ref }} GitHub URL for yjit-bench comparison
|
||||||
|
Loading…
x
Reference in New Issue
Block a user