Skip to content

infra: port push.yaml's five block run: steps to Python (GEN-005, #962) #2826

Closed

Description

@zackees

What

.github/workflows/push.yaml still carries five multi-line run: steps, so ci-lint precheck reports a GEN-005 approved exception for the path. The Python-port sweep has already taken the sibling actions and workflows — windows-signing (#2816/#2820), windows-patches (#2804), setup-macos-codesigning (#2794), run-swift-format (#2792), the sanitizers workflow (#2780), leaderboard.yml (#2812), scheduled.yaml (#2822) — and push.yaml is one of the release-path files left.

Steps that carry a finding:

job step what the block does
deploy-documentation Get Commit Information 🆔 commitHash=${GITHUB_SHA:0:9} into $GITHUB_OUTPUT
deploy-documentation Set Up Redirects 🔄 appends the two /previous/… lines (one of them using vars.CF_PAGES_PROJECT) to docs/_redirects
create-release Check Release Tag ☑️ shopt -s extglob + case on GITHUB_REF_NAME: validTag, prerelease, version into $GITHUB_OUTPUT
create-release Rename Files 🏷️ eleven mv -v <artifact dir>/<glob> OBS-Studio-<version>-<label>.<ext> moves
create-release Generate Checksums 🪪 CHECKSUMS.txt header plus one sha256sum line per shipped artifact

Every uses: step and every job stays as it is — only the shell blocks move.

Proposal

One PR, the same shape as #2794 and #2822:

  1. ci/push_release.py — five subcommands, each keeping its step's behaviour exactly:
    • commit-hash: the GITHUB_SHA[:9] value into $GITHUB_OUTPUT.
    • set-redirects --project "${{ vars.CF_PAGES_PROJECT }}": the same two appended lines.
    • check-tag: the extglob date/release forms translated to the equivalent anchored regular expressions (<digits>.<digits>.<digits> and the -beta* / -rc* prerelease form), writing validTag, prerelease and version.
    • rename-artifacts --version <version>: the same eleven moves, globbed and requiring exactly one match as mv did.
    • checksums: ### Checksums plus one sha256 line per *.deb, *.ddeb, *.dmg, *.tar.xz, *.tar.gz, *.exe, *.zip in the workspace.
  2. push.yaml: each run: becomes one uv run --no-project --script ${{ github.workspace }}/ci/push_release.py <step> line, and both affected jobs gain the actions/checkout and pinned astral-sh/setup-uv steps they need to see the module at all (neither job checks the repository out today).
  3. Delete the GEN-005 [[exceptions]] block in ci.toml for the path.

Scope note: this is a CI move, not a behaviour change. The RED test pins each subcommand's $GITHUB_OUTPUT lines, the redirect text, the tag matrix and the rename/checksum results in a temporary workspace, plus the workflow itself (one line per step, no shell block left, setup-uv before the first call); it fails on master because the module does not exist.

Not verified here: deploy-documentation and create-release are release-only jobs (github.ref_type == 'tag', upstream owner), so the first real proof is the next tagged release. The stub/fixture tests are the local evidence, as in the sibling ports.

Activity

  1. added
    infra
    ready
    on Oct 28, 2026
  2. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: #2826

    1. ci/push_release.py with commit-hash, set-redirects, check-tag, rename-artifacts and checksums, each keeping its step's behaviour exactly.
    2. push.yaml: one uv run --no-project --script${{ github.workspace }}/ci/push_release.py <step> line per step, plus the actions/checkout and pinned astral-sh/setup-uv steps deploy-documentation and create-release need to see the module.
    3. Delete the GEN-005 [[exceptions]] block in ci.toml for the path.

    First PR: RED test today, GREEN in the same PR.

  3. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Landed in #2827 (squash 0fada4c78), six minutes after the RED test. The diff is the four intended paths: push.yaml (-88/+17), ci/push_release.py, ci/test_push_release.py, and the deleted ci.toml GEN-005 block.

    What moved. All five blocks are subcommands now — commit-hash, set-redirects, check-tag, rename-artifacts, checksums — and both jobs gained the actions/checkout plus pinned astral-sh/setup-uv steps they needed to see the module; neither checked the repository out before.

    Evidence.

    # RED, 57788d025 (test only)
    Ran 19 tests -- FAILED (failures=27, errors=1)
    
    # GREEN, f7d03f7ff
    Ran 19 tests -- OK
    
    # ./lint -- lane lint: ok
    # ci.test_ci_toml -- 45 tests, OK
    # ci-lint precheck: 5 violation(s), 366 approved exception(s), 10 needs_review;
    #   `grep GEN-005 | grep push.yaml` empty, violation/needs_review unchanged
    # PR CI: CI Gate ✅, Format, Fast Gate, Event Data, CI Mode, Validate Data all pass
    

    The full local gate (./unittest) was started and abandoned after 26 minutes in the Tier 2 Docker lane; a workflow-only diff selects no Rust lane, and PR CI's own lanes passed, so the merge queue ran the suite instead. Not verified anywhere yet: the two jobs are release-only (ref_type == 'tag', upstream owner), so the first real execution is the next tagged release. The fixture tests cover the tag matrix, the twelve renames, the redirect text and the checksum lines.

    Still carrying GEN-005 findings (each its own unit): build-project.yaml (81), release-rust.yaml (22), windows-signing/action.yaml, sign-windows.yaml (its pre-checkout JWT step cannot call a module before actions/checkout), appimage.yaml, build-obs, package-obs, steam-upload, windows-analysis, analyze-project.yaml, ci.yml, publish.yaml, and the build-aux//.github/scripts/ shell helpers.

    Closing: the path's findings are gone and its exception is deleted.

  4. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Fixed by #2827 (merged 0fada4c78), which moves all five run: blocks to ci/push_release.py subcommands — commit-hash, set-redirects, check-tag, rename-artifacts, checksums — and deletes the GEN-005 [[exceptions]] block for .github/workflows/push.yaml.

    • RED 57788d025 (ci/test_push_release.py only): Ran 19 tests, FAILED (failures=27, errors=1).
    • GREEN f7d03f7ff: Ran 19 tests, OK; ci-lint precheck no longer reports GEN-005 for push.yaml, violation/needs_review counts unchanged from master.
    • Both jobs gained the actions/checkout and pinned astral-sh/setup-uv steps they need.

    Left unproven on purpose: both jobs are release-only (upstream owner, ref_type == 'tag'), so the first real exercise is the next tagged release. The fixture tests carry the evidence until then. That is why the PR said Refs; the port itself is complete, so closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

infraready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions