Skip to content

Commit f8f9e23

Browse files
committed
test: isolate manual matrix output
Poison GitHub's output file in the regression harness and clear it only for direct matrix capture so local policy checks reproduce hosted execution.
1 parent 6072f44 commit f8f9e23

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scripts/ci/emit-manual-matrix-test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ set -euo pipefail
33

44
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
55
REPO_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
6+
export GITHUB_OUTPUT=/dev/null
67

78
matrix="$({
89
cd "$REPO_ROOT"
9-
GH_RUN_ID=1 CT_PLATFORMS=rise-riscv scripts/ci/emit-manual-matrix.sh ct
10+
env -u GITHUB_OUTPUT GH_RUN_ID=1 CT_PLATFORMS=rise-riscv scripts/ci/emit-manual-matrix.sh ct
1011
})"
1112

1213
jq -e '
@@ -20,13 +21,13 @@ jq -e '
2021

2122
ct_default="$({
2223
cd "$REPO_ROOT"
23-
GH_RUN_ID=1 CT_PLATFORMS=all scripts/ci/emit-manual-matrix.sh ct
24+
env -u GITHUB_OUTPUT GH_RUN_ID=1 CT_PLATFORMS=all scripts/ci/emit-manual-matrix.sh ct
2425
})"
2526
jq -e 'length == 9 and any(.platform == "rise-riscv")' <<<"$ct_default" >/dev/null
2627

2728
bench_default="$({
2829
cd "$REPO_ROOT"
29-
GH_RUN_ID=1 BENCH_PLATFORMS=all scripts/ci/emit-manual-matrix.sh bench
30+
env -u GITHUB_OUTPUT GH_RUN_ID=1 BENCH_PLATFORMS=all scripts/ci/emit-manual-matrix.sh bench
3031
})"
3132
jq -e 'length == 9 and any(.platform == "rise-riscv")' <<<"$bench_default" >/dev/null
3233

0 commit comments

Comments
 (0)