fix(ci): add JWT_SECRET for api_gateway test env-var race condition

Two api_gateway JWT tests both call set_var/remove_var("JWT_SECRET") and
race under parallel execution. Setting JWT_SECRET globally prevents the
race: tests read the stable value, cleanup restores it (not removes it).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-25 19:16:24 +01:00
parent d1c336c2b6
commit 3ce5c3a58b

View File

@@ -15,6 +15,8 @@ variables:
CARGO_TERM_COLOR: always
# H100 = compute capability 9.0 — tells bindgen_cuda to skip nvidia-smi detection
CUDA_COMPUTE_CAP: "90"
# Stable JWT secret for api_gateway tests (prevents env-var race between parallel tests)
JWT_SECRET: "CiTestSecret_Kx7mP9nR2sW5vY8bC3fG6jH1kL4pQ7tZ0uN9dM5eV8xS2wT6yA4zB_64chars_min"
SCCACHE_BUCKET: $SCCACHE_BUCKET
SCCACHE_ENDPOINT: $SCCACHE_ENDPOINT
SCCACHE_S3_USE_SSL: "true"