From c7a0f39f291f05c423840abf9930a9fea6a1d0c7 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 26 Jun 2026 07:17:53 -0500 Subject: [PATCH 1/2] Pass GH_TOKEN to containers started during tests --- tests/fulltests/test.sh | 1 + tests/setuponlytests/test.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fulltests/test.sh b/tests/fulltests/test.sh index a1bde85c07d..db99943fd10 100755 --- a/tests/fulltests/test.sh +++ b/tests/fulltests/test.sh @@ -16,6 +16,7 @@ fullMinecraftUpTest(){ --attach-dependencies --always-recreate-deps --abort-on-container-failure + -e GH_TOKEN="${GH_TOKEN:-}" ) if ! docker compose -f "$file" up "${upArgs[@]}" monitor; then echo "$(dirname "$file") Result: failed" diff --git a/tests/setuponlytests/test.sh b/tests/setuponlytests/test.sh index 4c759e79e70..b776cd824cc 100755 --- a/tests/setuponlytests/test.sh +++ b/tests/setuponlytests/test.sh @@ -46,7 +46,7 @@ setupOnlyMinecraftTest(){ start=$(date +%s) status=PASSED verify= - if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" mc 2>&1); then + if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" -e GH_TOKEN="${GH_TOKEN:-}" mc 2>&1); then status=FAILED outputContainerLog "$logs" result=1 From ac9f8e1f6b8fcdff85e65c3f6cbcf5e86be91773 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 26 Jun 2026 07:26:37 -0500 Subject: [PATCH 2/2] Passing -e to compose up was wrong --- tests/fulltests/test.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/fulltests/test.sh b/tests/fulltests/test.sh index db99943fd10..a1bde85c07d 100755 --- a/tests/fulltests/test.sh +++ b/tests/fulltests/test.sh @@ -16,7 +16,6 @@ fullMinecraftUpTest(){ --attach-dependencies --always-recreate-deps --abort-on-container-failure - -e GH_TOKEN="${GH_TOKEN:-}" ) if ! docker compose -f "$file" up "${upArgs[@]}" monitor; then echo "$(dirname "$file") Result: failed"