Skip to content

The agent that grows with you

fix(release): the builds-table render gets its R2 credentials and cannot block the release

Teknium71d34bad1045
diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml
index b1131d0950a..195afd50d5c 100644
--- a/.github/workflows/stable-release.yml
+++ b/.github/workflows/stable-release.yml
@@ -635,12 +635,20 @@ jobs:
CLOUDFLARE_R2_PUBLIC_URL: ${{ vars.CLOUDFLARE_R2_PUBLIC_URL }}
- name: Render the admitted candidate smoke results
if: needs.admit.outputs.skip-bundles != 'true'
+ # The builds table is presentation: a render failure warns and the release still
+ # publishes (rc.14-v0.21.7 passed every gate, then died here on missing env).
+ continue-on-error: true
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 }}
+ # It lists the archive and writes the tag and channel pages on R2.
+ CLOUDFLARE_R2_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_R2_ACCOUNT_ID }}
+ CLOUDFLARE_R2_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_R2_ACCESS_KEY_ID }}
+ CLOUDFLARE_R2_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_R2_SECRET_ACCESS_KEY }}
+ CLOUDFLARE_R2_BUCKET: ${{ vars.CLOUDFLARE_R2_BUCKET }}
CLOUDFLARE_R2_PUBLIC_URL: ${{ vars.CLOUDFLARE_R2_PUBLIC_URL }}
run: |
python scripts/render-builds-table.py --tag "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" \
diff --git a/tests/ci/test_stable_release_graph.py b/tests/ci/test_stable_release_graph.py
index 261df764dab..50b0f33c67e 100644
--- a/tests/ci/test_stable_release_graph.py
+++ b/tests/ci/test_stable_release_graph.py
@@ -378,3 +378,13 @@ def test_every_run_step_receives_the_variables_it_reads():
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)}"
+
+
+def test_the_builds_table_render_cannot_block_the_release_and_has_its_r2_inputs():
+ """The table is presentation: it never fails 'Stable release is green', and it gets the
+ R2 credentials its listing and page writes need."""
+ step = next(step for step in workflow("stable-release.yml")["jobs"]["complete"]["steps"]
+ if step.get("name") == "Render the admitted candidate smoke results")
+ assert str(step.get("continue-on-error")).lower() == "true" # base YAML loader: a string
+ assert {"CLOUDFLARE_R2_ACCOUNT_ID", "CLOUDFLARE_R2_ACCESS_KEY_ID", "CLOUDFLARE_R2_SECRET_ACCESS_KEY",
+ "CLOUDFLARE_R2_BUCKET", "CLOUDFLARE_R2_PUBLIC_URL", "RELEASE_CLAIM_TAG"} <= set(step["env"])