test: isolate preflight fact environments
Some checks failed
CI / self-guards (pull_request) Failing after 17s
CI / action-exercise (pull_request) Successful in 16s
CI / release-exercise (pull_request) Successful in 24s
CI / docs-sync-exercise (pull_request) Successful in 13s
labels / labels (pull_request) Successful in 14s
CI / test (pull_request) Failing after 1m8s
Refs guard / refs-not-closing (pull_request) Successful in 8s

This commit is contained in:
codex-bot-andresmgsl 2026-08-31 11:24:53 +00:00
parent 79e747b163
commit f19658ea82

View file

@ -18,13 +18,9 @@ FOREIGN_SHA=2222222222222222222222222222222222222222
# preflight <VER> <MERGE_SHA> <TAG_SHAS> <RELEASED> — run the pure decision # preflight <VER> <MERGE_SHA> <TAG_SHAS> <RELEASED> — run the pure decision
# with exactly the four gathered facts in its environment. # with exactly the four gathered facts in its environment.
preflight() { preflight() {
( # shellcheck disable=SC2016 # PREFLIGHT expands inside the isolated child
VER="$1" MERGE_SHA="$2" TAG_SHAS="$3" RELEASED="$4" env VER="$1" MERGE_SHA="$2" TAG_SHAS="$3" RELEASED="$4" \
export VER MERGE_SHA TAG_SHAS RELEASED PREFLIGHT="$PREFLIGHT" bash -c '. "$PREFLIGHT"; release_preflight'
# shellcheck source=lib/preflight.sh
. "$PREFLIGHT"
release_preflight
)
} }
preflight_stdout() { preflight_stdout() {
@ -32,7 +28,7 @@ preflight_stdout() {
} }
preflight_stderr() { preflight_stderr() {
preflight "$@" 2>&1 >/dev/null { preflight "$@" >/dev/null; } 2>&1
} }
refuses_without_output() { refuses_without_output() {