The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(release): the final gate's builds-table step gets the R2 URL and claim tag
Teknium0e5b323fddb6
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.ymlindex 1b0d104fd3d..b1131d0950a 100644--- a/.github/workflows/stable-release.yml+++ b/.github/workflows/stable-release.yml@@ -638,8 +638,10 @@ jobs:env:GH_TOKEN: ${{ github.token }}RELEASE_TAG: ${{ needs.admit.outputs.tag }}+ RELEASE_CLAIM_TAG: ${{ needs.admit.outputs.claim-tag }}RELEASE_COMMIT: ${{ needs.admit.outputs.commit }}CANDIDATE_MANIFEST_SHA256: ${{ needs.candidate-manifest.outputs.manifest-sha256 }}+ CLOUDFLARE_R2_PUBLIC_URL: ${{ vars.CLOUDFLARE_R2_PUBLIC_URL }}run: |python scripts/render-builds-table.py --tag "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \--archive "$RELEASE_CLAIM_TAG" \diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.pyindex a111eed6441..261df764dab 100644--- a/tests/ci/test_stable_release_graph.py+++ b/tests/ci/test_stable_release_graph.py@@ -362,3 +362,19 @@ def test_docker_recovery_refuses_to_replace_a_divergent_version_tag(tmp_path):assert result.returncode != 0assert "versioned Docker manifest differs" in result.stderrassert not marker.exists()+++def test_every_run_step_receives_the_variables_it_reads():+ """A run step reading $VAR it was never given gets an empty string: rc.14-v0.21.7 passed+ every build and gate, then 'complete' died rendering the builds table without+ CLOUDFLARE_R2_PUBLIC_URL or RELEASE_CLAIM_TAG."""+ import re++ runner = {"GITHUB_REPOSITORY", "GITHUB_OUTPUT", "GITHUB_STEP_SUMMARY", "GITHUB_ENV", "GITHUB_SHA",+ "GITHUB_RUN_ID", "GITHUB_WORKSPACE", "RUNNER_TEMP", "HOME", "PATH"}+ for name, job in workflow("stable-release.yml")["jobs"].items():+ given = set(job.get("env") or {})+ for step in job.get("steps", []):+ used = set(re.findall(r"\$\{?([A-Z][A-Z0-9_]+)", step.get("run", ""))) - runner+ missing = used - given - set(step.get("env") or {})+ assert not missing, f"{name} / {step.get('name') or step['run'][:40]}: {sorted(missing)}"