Repository navigation
ci(leaderboard): run the three shell steps as one Python call each (#2812) - #2818
Merged
Merged
Conversation
…each (#2812) RED: ci/test_leaderboard_python.py fails on master -- ci/leaderboard.py does not exist, the three run: blocks are multi-line and jobs.update.runs-on is ubuntu-latest, and both the GEN-005 and RUN-001 ci.toml blocks are still present (11 failures, 1 error).
…2812) GREEN: ci/leaderboard.py carries `generate`, `render` and `commit` with the exact command lines the three `run:` blocks used, so each workflow step is one line (`uv run --no-project ci/leaderboard.py <cmd>`) and stays inside GEN-005's budget. `jobs.update.runs-on` moves from `ubuntu-latest` to the fleet label `ubuntu-24.04` (RUN-001). ci.toml loses both path-scoped blocks (GEN-005, RUN-001). ci/test_conversion_card pinned the literal `render.py data conversion.html …` order inside the workflow text; the renders live in the module now, so it asserts the module's argv order and keeps the measure-before-render ordering on the workflow. precheck, branch vs master: 5 violation(s), 407 -> 403 approved exception(s), 10 needs_review, no leaderboard.yml line left in either rule's section.
Member
Author
|
Green: No local-gate stamp: no Rust/C/CMake or build input is touched, so there is nothing for CI to skip. |
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 #2812 (one unit of the #962 burn-down).
What changed
.github/workflows/leaderboard.yml'supdatejob had threerun:blocks over GEN-005's one-linebudget, plus an
ubuntu-latestrunner (RUN-001). All four findings are one path, so this PR clears thepath completely: 4 approved exceptions leave the baseline.
Generate(steps[3])cp site/*,touch .nojekyll,uv run generate.pyuv run --no-project ci/leaderboard.py generate --repo … --data dataRender JPEG(steps[5])render.pyrunsuv run --no-project ci/leaderboard.py render --data dataCommit to leaderboard branch(steps[6],working-directory: data)uv run --no-project ci/leaderboard.py commit --data dataruns-onubuntu-latestubuntu-24.04(the fleet label)ci/leaderboard.pyruns the same command lines, in the same order, with the runner's stdioinherited and the first non-zero status as the step's status (the
bash -ethe steps ran under):generate— overlay--site(defaulttools/leaderboard/site) onto thedatacheckout, write.nojekyll, thenuv run --no-project --python 3.12 tools/leaderboard/generate.py --repo <r> --out <data>/leaderboard.json.Skips a directory in the site tree, the way
cp site/*did.render—uv run --python 3.12 --with playwright==1.49.1 playwright install --with-deps chromium,then
render.py <data>(defaults toindex.html→leaderboard.jpg),render.py <data> conversion.html conversion.jpg,render.py <data> conversion-minimal.html conversion-minimal.jpg 640x100.commit—git config user.name/user.email(thegithub-actions[bot]identity),git add -A,git diff --cached --quiet→no changeswith status 0, elsegit commit -m "leaderboard: update <UTC>T<HH:MM>Z"(
date -u +%FT%H:%MZ's exact shape) andgit push origin HEAD:leaderboard.Nothing about the schedule, the fork guard, the
concurrencygroup or the twoactions/checkoutsteps(including
ref: leaderboard,path: data) changes. Step indices are 1:1, so no CACHE-001/013 churn.RED
0fdbdca32—ci/test_leaderboard_python.py(14 cases) on master:ci/leaderboard.pydoes not exist,the three blocks are multi-line, the runner is
ubuntu-latest, and bothci.tomlblocks are present(11 failures, 1 error).
GREEN
a8ac9c0ed— module, workflow, bothci.tomlblocks deleted, andci/test_conversion_card.pyrepointed: it pinned the literal
render.py data conversion.html conversion.jpgorder inside theworkflow text, and the renders live in the module now, so it asserts the module's argv order and
keeps the measure-before-render ordering on the workflow.
ci-lint precheck(pina1917ce7…), master5fd1c516d→ branch:5 violation(s), 407 approved exception(s), 10 needs_review→5 violation(s), 403 approved exception(s), 10 needs_review;no
leaderboard.ymlline left in the GEN-005 or RUN-001 sections.uv run ci/local_gate.py --only self-test: every moduleok, includingtest_leaderboard_python.py,test_conversion_card.py,test_leaderboard_schedule.pyandtest_ci_toml.py. The one red,test_tier2_serial_cpus.py(elapsed 1.8267 not less than 1.8), is a host-load timing flake in atest that sleeps across two cores — it is
okon a clean re-run and is untouched by this PR.uv run ruff checkon the touched Python: clean (noruff format; the tree is not formatted that way).Evidence this does not need a local-gate stamp
The change touches no Rust, C, CMake or build input — it is
ci/+ one workflow YAML — so percoordination.md §4 there is no stamp to look for; PR CI (
Fast Gate ⚡,Format 🔍 / checks) is the gate.What is deliberately not here
The
leaderboardbranch commit is the only place this runs end to end, so the first scheduled runafter merge (
17 */4 * * *) is the Tier-4-style proof; the module's own tests assert the argv, theno changespath and the push, not the GitHub-side Pages result.