CI: Trap launchable_record_test in the parent process
This commit is contained in:
parent
43472a3001
commit
86eb5f9c05
Notes:
git
2025-06-06 00:02:50 +00:00
18
.github/actions/compilers/entrypoint.sh
vendored
18
.github/actions/compilers/entrypoint.sh
vendored
@ -85,14 +85,7 @@ setup_launchable() {
|
|||||||
export LAUNCHABLE_SESSION_DIR=${builddir}
|
export LAUNCHABLE_SESSION_DIR=${builddir}
|
||||||
local github_ref="${GITHUB_REF//\//_}"
|
local github_ref="${GITHUB_REF//\//_}"
|
||||||
local build_name="${github_ref}"_"${GITHUB_PR_HEAD_SHA}"
|
local build_name="${github_ref}"_"${GITHUB_PR_HEAD_SHA}"
|
||||||
btest_report_path='launchable_bootstraptest.json'
|
|
||||||
test_report_path='launchable_test_all.json'
|
|
||||||
test_spec_report_path='launchable_test_spec_report'
|
|
||||||
test_all_session_file='launchable_test_all_session.txt'
|
|
||||||
btest_session_file='launchable_btest_session.txt'
|
|
||||||
test_spec_session_file='launchable_test_spec_session.txt'
|
|
||||||
btests+=--launchable-test-reports="${btest_report_path}"
|
btests+=--launchable-test-reports="${btest_report_path}"
|
||||||
echo "::group::Setup Launchable"
|
|
||||||
launchable record build --name "${build_name}" || true
|
launchable record build --name "${build_name}" || true
|
||||||
launchable record session \
|
launchable record session \
|
||||||
--build "${build_name}" \
|
--build "${build_name}" \
|
||||||
@ -135,8 +128,6 @@ setup_launchable() {
|
|||||||
> "${builddir}"/${test_spec_session_file} \
|
> "${builddir}"/${test_spec_session_file} \
|
||||||
|| true
|
|| true
|
||||||
fi
|
fi
|
||||||
echo "::endgroup::"
|
|
||||||
trap launchable_record_test EXIT
|
|
||||||
}
|
}
|
||||||
launchable_record_test() {
|
launchable_record_test() {
|
||||||
pushd "${builddir}"
|
pushd "${builddir}"
|
||||||
@ -147,10 +138,19 @@ launchable_record_test() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
if [ "$LAUNCHABLE_ENABLED" = "true" ]; then
|
if [ "$LAUNCHABLE_ENABLED" = "true" ]; then
|
||||||
|
echo "::group::Setup Launchable"
|
||||||
|
btest_report_path='launchable_bootstraptest.json'
|
||||||
|
test_report_path='launchable_test_all.json'
|
||||||
|
test_spec_report_path='launchable_test_spec_report'
|
||||||
|
test_all_session_file='launchable_test_all_session.txt'
|
||||||
|
btest_session_file='launchable_btest_session.txt'
|
||||||
|
test_spec_session_file='launchable_test_spec_session.txt'
|
||||||
setup_launchable & setup_pid=$!
|
setup_launchable & setup_pid=$!
|
||||||
(sleep 180; kill "$setup_pid" 2> /dev/null) & sleep_pid=$!
|
(sleep 180; kill "$setup_pid" 2> /dev/null) & sleep_pid=$!
|
||||||
wait -f "$setup_pid"
|
wait -f "$setup_pid"
|
||||||
kill "$sleep_pid" 2> /dev/null
|
kill "$sleep_pid" 2> /dev/null
|
||||||
|
echo "::endgroup::"
|
||||||
|
trap launchable_record_test EXIT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd ${builddir}
|
pushd ${builddir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user