diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-06-16 15:14:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-06-19 21:17:56 +0900 |
commit | 1b018d96d011418ad1822bf9b476338ed5c37d93 () | |
tree | a0e0876a65467e132242afa95b556a7d5f68e215 | |
parent | 87d33583af2d095b5adbd5ba3765cfdf23767c34 (diff) |
CI: Extract `launchable_record_session` function
Notes: Merged: https://.com/ruby/ruby/pull/13623
-rwxr-xr-x | ./actions/compilers/entrypoint.sh | 48 |
1 files changed, 15 insertions, 33 deletions
@@ -75,6 +75,18 @@ tests='' spec_opts='' # Launchable setup_launchable() { pushd ${srcdir} # To prevent a slowdown in CI, disable request retries when the Launchable server is unstable. @@ -86,43 +98,13 @@ setup_launchable() { local _ref="${_REF//\//_}" local build_name="${_ref}"_"${_PR_HEAD_SHA}" launchable record build --name "${build_name}" || true - btest_session=$(launchable record session \ - --build "${build_name}" \ - --flavor test_task=test \ - --flavor workflow=Compilations \ - --flavor with-gcc="${INPUT_WITH_GCC}" \ - --flavor CFLAGS="${INPUT_CFLAGS}" \ - --flavor CXXFLAGS="${INPUT_CXXFLAGS}" \ - --flavor optflags="${INPUT_OPTFLAGS}" \ - --flavor cppflags="${INPUT_CPPFLAGS}" \ - --test-suite btest \ - ) \ && btests+=--launchable-test-reports="${btest_report_path}" || : if [ "$INPUT_CHECK" = "true" ]; then - test_all_session=$(launchable record session \ - --build "${build_name}" \ - --flavor test_task=test-all \ - --flavor workflow=Compilations \ - --flavor with-gcc="${INPUT_WITH_GCC}" \ - --flavor CFLAGS="${INPUT_CFLAGS}" \ - --flavor CXXFLAGS="${INPUT_CXXFLAGS}" \ - --flavor optflags="${INPUT_OPTFLAGS}" \ - --flavor cppflags="${INPUT_CPPFLAGS}" \ - --test-suite test-all \ - ) \ && tests+=--launchable-test-reports="${test_report_path}" || : mkdir "${builddir}"/"${test_spec_report_path}" - test_spec_session=$(launchable record session \ - --build "${build_name}" \ - --flavor test_task=test-spec \ - --flavor workflow=Compilations \ - --flavor with-gcc="${INPUT_WITH_GCC}" \ - --flavor CFLAGS="${INPUT_CFLAGS}" \ - --flavor CXXFLAGS="${INPUT_CXXFLAGS}" \ - --flavor optflags="${INPUT_OPTFLAGS}" \ - --flavor cppflags="${INPUT_CPPFLAGS}" \ - --test-suite test-spec \ - ) \ && spec_opts+=--launchable-test-reports="${test_spec_report_path}" || : fi } |