Skip to content

infra: port scheduled.yaml's three block run: steps to Python (GEN-005, #962) #2822

Closed

Description

@zackees

What

.github/workflows/scheduled.yaml still carries three 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) — and scheduled.yaml is one of the small ones left.

Steps that carry a finding:

job step what the block does
report-nightly-failure Open or Update the Nightly Failure Issue gh issue list --search "in:title …", then gh issue comment on the open one or gh issue create
upload-language-files Check Nightly Runs gh run list --workflow scheduled.yaml --limit 2 --json headSha --jq '.[1].headSha', compare it with GITHUB_SHA, write passed and lastNightly to $GITHUB_OUTPUT
steam-upload Check Nightly Runs the same comparison in zsh; it writes only passed

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

Proposal

One PR, the same shape as #2792 and #2816:

  1. ci/scheduled_steps.py — two subcommands, each keeping its step's argv and exit status exactly:
    • check-nightly-runs: the gh run list argv, the GITHUB_SHA/last_nightly comparison, and passed plus lastNightly in $GITHUB_OUTPUT. One subcommand serves both jobs; steam-upload simply ignores the extra output.
    • report-nightly-failure: the title, the body (SHA, RUN_URL), then gh issue comment or gh issue create from GH_TOKEN/GH_REPO.
  2. scheduled.yaml — each run: becomes one uv run --no-project --script ${{ github.workspace }}/ci/scheduled_steps.py <step> line, report-nightly-failure gains the actions/checkout and pinned astral-sh/setup-uv steps it needs to see the module at all (it has no checkout today), and steam-upload drops its zsh default now that nothing is shell.
  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 gh argv against a stub on PATH (as ci/test_run_swift_format.py and ci/test_windows_patches.py do) plus the $GITHUB_OUTPUT lines, and fails on master because the module does not exist.

Not verified here: the two ported jobs are upstream-only (github.repository_owner == 'obsproject') and report-nightly-failure runs only after a failed nightly, so the first real proof is the next scheduled run. The stub 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: #2822

    1. ci/scheduled_steps.py with check-nightly-runs and report-nightly-failure, each keeping its step's gh argv and exit status exactly.
    2. scheduled.yaml: one uv run --no-project --script ${{ github.workspace }}/ci/scheduled_steps.py <step> per step, plus the actions/checkout and pinned astral-sh/setup-uv steps report-nightly-failure needs to see the module.
    3. Drop the path's GEN-005 block from ci.toml; the RED test pins both gh argvs and the $GITHUB_OUTPUT lines.

    First PR: this tick — a focused CI change, so the RED and GREEN commits go up together with local RED evidence (coordination.md §4).

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