Repository navigation
Closed
Description
What
ci-lint precheck on origin/master (5fd1c516d, linter pin a1917ce7…) reports four approved
exceptions for one path, .github/workflows/leaderboard.yml:
| rule | finding |
|---|---|
| GEN-005 | jobs.update.steps[3] (Generate): 3 shell lines (cp … site/*, touch .nojekyll, uv run generate.py) |
| GEN-005 | jobs.update.steps[5] (Render JPEG): 4 shell lines (playwright install + 3 render.py calls) |
| GEN-005 | jobs.update.steps[6] (Commit to leaderboard branch): 6 lines with &&/$( ) control syntax |
| RUN-001 | jobs.update.runs-on = 'ubuntu-latest' (a -latest label; the fleet label is ubuntu-24.04) |
Header at that commit: 5 violation(s), 407 approved exception(s), 10 needs_review.
Why this is a clean unit
- All four findings are one path, so clearing them deletes two
[[exceptions]]blocks (GEN-005and
RUN-001) and takes 4 off the baseline:407 -> 403 approved, violations unchanged. - It is this repo's own workflow, not upstream OBS zsh/PowerShell: the three steps are a plain command
sequence. The only control syntax is onegit diff --cached --quiet && { echo "no changes"; exit 0; }
(step 3) and$(date -u +%FT%H:%MZ)in the commit message — both straightforward in Python. - The job already runs
astral-sh/setup-uv(with thesave-cacheexpression), so a one-line
uv run --no-project ci/leaderboard.py <cmd>step needs no environment change. - Step indices stay stable (3 steps replaced 1:1), so no CACHE-001/CACHE-013 step-index churn.
Plan (one PR, infra/<issue>-leaderboard-python)
- RED:
ci/test_leaderboard_python.py— the module is absent and the workflow still carries the
multi-linerun:blocks andruns-on: ubuntu-latest; every case fails on master. - GREEN:
ci/leaderboard.pywithgenerate/render/commitsubcommands, the three workflow
steps become one line each (uv run --no-project ci/leaderboard.py …),runs-on: ubuntu-24.04,
bothci.tomlblocks deleted. ci/test_conversion_card.pypins the literalrender.py data conversion.html conversion.jpgorder
in the workflow text; after the port it asserts the module's own argv order instead (the module is
where the renders now live), and the measure-before-render ordering stays asserted on the workflow.
Acceptance
ci-lint precheckon the branch:5 violation(s), 403 approved exception(s), 10 needs_review, with
noleaderboard.ymlline in the GEN-005 or RUN-001 sections and nothing else moving.uv run ci/local_gate.py --only self-testgreen, including the repointedci/test_conversion_card.py
and the existingci/test_leaderboard_schedule.py.- The
leaderboard.ymlschedule is untouched:cron: "17 */4 * * *",workflow_dispatch:, the
concurrencygroup, and the fork guard (github.repository == 'obs-rust/obs-studio').
Refs #962.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 28, 2026
Claiming: investigation — the four GEN-005/RUN-001 findings are already enumerated per step index in the issue body, so there is no open question; this is the port itself.
Plan: RED
ci/test_leaderboard_python.py(module absent, multi-line steps andubuntu-lateststill present), then GREENci/leaderboard.py+ three one-line steps +ubuntu-24.04+ both ci.toml blocks deleted. One PR,infra/2812-leaderboard-python, this tick.zackees commentedon Oct 28, 2026
/ready
All four findings are one path and fully specified per step index in the body (
steps[3],steps[5],steps[6], and theubuntu-latestlabel), the change is CI-only with no product behaviour, and the one-line-per-step shape is the same GEN-005 recipe already merged forsanitizers.yaml(#2780) and the composite actions.zackees commentedon Oct 28, 2026
Claiming: the port (single PR,
infra/2812-leaderboard-python).RED
0fdbdca32(ci/test_leaderboard_python.py, 14 cases) fails on master: noci/leaderboard.py, three multi-linerun:blocks,runs-on: ubuntu-latest, and both ci.toml blocks still present (11 failures, 1 error).zackees commentedon Oct 28, 2026
Port opened as #2818 (
infra/2812-leaderboard-python).0fdbdca32:ci/test_leaderboard_python.py, 14 cases; on master 11 failures + 1 error (no module, three multi-line blocks,ubuntu-latest, both ci.toml blocks present).a8ac9c0ed:ci/leaderboard.py(generate/render/commit) with the identical argv, the three steps one line each,runs-on: ubuntu-24.04, bothci.tomlblocks deleted,ci/test_conversion_card.pyrepointed at the module's render order.ci-lint precheck: master5v/407a/10nr-> branch5v/403a/10nr, noleaderboard.ymlline left; self-test suite green (one host-load flake intest_tier2_serial_cpus.py, green on re-run).zackees commentedon Oct 28, 2026
Handed off: #2818 is green and queued for merge.
CI Gate ✅(run 40714943435): Fast Gate 3m50s, Format/checks 1m54s, Validate Data, CI Mode, Event Data all pass; no other job ran (aci/-only change).5 violation(s), 403 approved exception(s), 10 needs_reviewvs master's5v/407a— the four findings for this path are gone and no other rule moved.test_tier2_serial_cpus.py(elapsed 1.8267 vs the 1.8 s threshold), is a host-load timing flake in an untouched test; green on a clean re-run.Remaining for this path: nothing — the
leaderboardbranch run after merge is the end-to-end proof of the new steps.ci(leaderboard): run the three shell steps as one Python call each (o…