Skip to content

ci: release-rust: certify only a fully green release that is at least N days old #1757

Closed

Description

@zackees

Follow-up to #1742 (certified releases), approved by the maintainer.

Task: gh workflow run release-rust.yaml -f certify=<tag> currently certifies any published obs-studio-rust-v* pre-release. Add a gate so the certify job refuses a tag unless:

  1. the release-rust workflow run that published that tag (the run whose "Publish pre-release" job succeeded for the tag's commit) concluded success for every job (the skipped certify job aside), and
  2. the release is at least N days old (default 2), overridable by a new min_age_days workflow_dispatch input; 0 is allowed for emergencies and logged as a warning.

Plan:

  • ci/update_feed.py check-certifiable --facts <json> --min-age-days N [--now ISO]: pure decision over a JSON document (release, tag commit, release-rust runs with their jobs) that the workflow assembles with gh api.
  • Unit tests in ci/test_update_feed.py with fixture JSON (no live API): pass, failed job, cancelled job, skipped non-certify job, no producing run, too young, override 0 (warning), negative input.
  • Wire it into the certify job's "Check the release" step.

Tiers: CI/workflow script only; Tier 1 is the Python unit tests, Tiers 2-4 do not apply.

Activity

  1. zackees commented on Oct 22, 2026

    @zackees
    MemberAuthor

    Claiming: #1757

    1. RED: fixture-based unit tests for ci/update_feed.py check-certifiable (stub raises).
    2. GREEN: implement the check and wire it into release-rust.yaml's certify job with a min_age_days input.
      One PR, stacked on frontend: Update from certified obs-rust releases #1742; first PR within the hour.
  2. added
    claimed
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions