Skip to content

ci(smoke): default FEDERATION_TEST_KEY when repo var is empty#63

Merged
alukach merged 1 commit into
mainfrom
fix/federation-test-key
Jun 3, 2026
Merged

ci(smoke): default FEDERATION_TEST_KEY when repo var is empty#63
alukach merged 1 commit into
mainfrom
fix/federation-test-key

Conversation

@alukach
Copy link
Copy Markdown
Member

@alukach alukach commented Jun 3, 2026

Problem

The staging smoke run failed only on test_federation.py, hitting /federated-test/ with no object key.

deploy.yml passes FEDERATION_TEST_KEY: ${{ vars.FEDERATION_TEST_KEY }}, which expands to an empty string (not unset) when the repo variable is missing. The test used os.environ.get("FEDERATION_TEST_KEY", "hello.txt"), whose default only applies when the var is absent — so the empty value slipped through and the GET went to the bucket root instead of the object.

Fix

FEDERATION_TEST_KEY = os.environ.get("FEDERATION_TEST_KEY") or "hello.txt"

Note: this only fixes the wrong-path bug. The federation smoke test will still be red until the one-time AWS setup is done (IAM OIDC provider for STAGING_OIDC_ISSUER, trusting role, real role ARN + bucket in wrangler.deploy.toml, and the test object seeded in the private bucket).

🤖 Generated with Claude Code

The smoke job passes FEDERATION_TEST_KEY via `${{ vars.FEDERATION_TEST_KEY }}`,
which expands to an empty string (not unset) when the variable is missing. The
previous `os.environ.get(key, default)` only applies the default when the var is
absent, so an empty value slipped through and the test GET hit the bucket root
(/federated-test/) instead of /federated-test/hello.txt. Use `or` to fall back.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added the fix label Jun 3, 2026
@alukach alukach changed the title fix(smoke): default FEDERATION_TEST_KEY when repo var is empty ci(smoke): default FEDERATION_TEST_KEY when repo var is empty Jun 3, 2026
@alukach alukach merged commit 2c00a04 into main Jun 3, 2026
11 of 13 checks passed
@alukach alukach deleted the fix/federation-test-key branch June 3, 2026 22:04
@github-actions github-actions Bot added ci and removed fix labels Jun 3, 2026
This was referenced Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant