Repository navigation
ci: release-rust: certify only a fully green release at least N days old - #1758
Merged
Merged
Conversation
zackees
force-pushed
the
fix/updater-certified-releases
branch
2 times, most recently
from
October 22, 2026 09:20
44d8ec2 to
a580063
Compare
zackees
force-pushed
the
infra/1757-certify-gate
branch
from
October 22, 2026 09:20
45ce1f7 to
e4f38ae
Compare
zackees
changed the base branch from
fix/updater-certified-releases
to
master
October 22, 2026 11:10
check-certifiable is a stub; 15 CheckCertifiableTests error with NotImplementedError, the CLI test and the workflow test fail.
) ci/update_feed.py check-certifiable refuses a tag unless the release-rust run that published it succeeded in every job (only certify and reusable workflow sub-jobs may skip) and the release is min_age_days old (default 2; 0 is an emergency override logged as a warning). release-rust.yaml's certify job gathers the facts with gh api and runs it in Check the release. Fixes #1757
zackees
force-pushed
the
infra/1757-certify-gate
branch
from
October 22, 2026 11:10
e4f38ae to
65f7c0e
Compare
zackees
enabled auto-merge
October 22, 2026 11:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1757
The certify job now refuses a tag unless:
release-rust.yamlrun that published it (newest run for the tag's commit whose "Publish pre-release 🚀" job succeeded) concluded success and every job succeeded. Only the certify job and a reusable workflow's own sub-jobs (Release gate 🚦 / …,AppImage 📦 / …, which their caller job already decided) may be skipped; a skipped top-level job (a build, a smoke test, the gate) refuses.min_age_daysold: a newworkflow_dispatchinput, default2.0is the emergency override and is logged as::warning::; negative values are refused.ci/update_feed.py check-certifiable --facts facts.json --min-age-days N [--now ISO]: a pure decision over a JSON document (tag, tag commit, release, runs with jobs).gh api(commit, workflow runs for the commit, each run's jobs,gh release view) and runs the check before anything is downloaded or uploaded.docs/rust-port/release-criteria.md(certified releases section) and the frontend: Update from certified obs-rust releases #1742 ledger entry indocs/features.md.RED → GREEN
check_certifiablestub raisesNotImplementedError.uv run python -m unittest ci/test_update_feed.py: 19 tests, 15 errors (allCheckCertifiableTests), 2 failures (CLI has nocheck-certifiable; the workflow test finds nocheck-certifiable/min_age_days).OK(19 tests). Fixture JSON only, no live API calls.Also passing:
ci/test_release_step_pitfalls.py,ci/test_no_upstream_updater.py,ci/test_release_*.py,ci/test_workflow_*.py;./lintok.Checked against a real release (read-only)
I ran the step's
gh api/jqcommands by hand againstobs-studio-rust-v0.1.0-beta.20261020(run 39437208726, 38 jobs). The first version of the rule refused it forAppImage 📦 / Publish to GitHub Releases 🚀 (skipped), which is why reusable-workflow sub-jobs may skip. With the final rule:--min-age-days 2refuses it (1.7 days old), and--min-age-days 0passes with the warning.Tiers: CI script only. Tier 1 is the Python unit tests; Tiers 2 to 4 do not apply. Not verified: a real
certifydispatch (the maintainer asked us not to run release workflows).