Repository navigation
ci: stop the nightly benchmark cron - #519
Conversation
Push to main already runs the 16 benchmark shards. The 05:17 UTC cron ran them again (run 40637628179, 34625s of runner time). Push, workflow_dispatch, and the run-benchmarks label still start a run. A main failure still opens the nightly-failure issue. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Remove nightly benchmark trigger .github/workflows/benchmark.yml, docs/current/CI_ARCHITECTURE.md, scripts/ci/test_workflow_policy.py |
The workflow’s nightly schedule was removed. The documentation was updated, and the policy test now checks for the absence of the schedule and cron expression, plus the push branch list and manual-dispatch trigger. |
Priority:
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Other
Merge Risk: 
Minimal · up to cc717
-
The redundant nightly benchmark run is removed while the documented remaining triggers are preserved; the change is mergeable.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title "ci: stop the nightly benchmark cron" matches the main change. The PR removes the 05:17 UTC nightly schedule trigger from the Performance Benchmarks workflow. The benchmark workflow still runs on pushes to main and develop, on manual dispatch, and on pull requests labeled run-benchmarks. The title is short, specific, and uses a conventional commit prefix.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@coderabbitai review |
✅ Action performed
|
There was a problem hiding this comment.
Head cc717434741dd797b3e1a4dc3b7604c045febf1a. Required checks on this SHA are still pending. Not green.
The trigger edit is sound. benchmark.yml no longer has schedule, and push to main and develop, workflow_dispatch, and pull_request types: [labeled] with run-benchmarks remain. nightly-failure-issue.yml still lists Performance Benchmarks and opens on conclusion == 'failure' when event == 'schedule' or head_branch == 'main'. A failed push to main still matches the second arm. No permission change, no new action pin, no pull_request_target, no Cargo.lock, no hashed crate.
The committed reason cites the wrong run. Schedule run 40637628179 is the only shard execution of 0213d1cf. Push 40627285816 of that SHA has zero jobs and was cancelled at 05:22:35Z, one second after the schedule run was created, while in-progress push 40620616041 (f737d491a) kept running until 05:53:35Z. cancel-in-progress is false, so only the pending member of Performance Benchmarks-${{ github.ref }} is dropped. Quieter SHAs do show a real second success: 3554016aa push 40145178275 and schedule 40165571400; 3209fa1f0 push 40241809177 and schedules 40274704065 and 40455623588.
benchmark_alert.yml still runs its own shards 0–15 on push to main and on workflow_dispatch. No schedule there. That second push-time suite is outside this diff, and the pull request says so.
A day with no push, dispatch, or run-benchmarks label no longer starts this workflow. Strict thresholds key off github.ref == refs/heads/main with no event guard, and the shard-health step fails the run. The benchmark-data store stays event_name == 'push', so a schedule run never published history. benchmark-dashboard.yml at 0 2 * * * remains a subset with || true and continue-on-error.
- Head
cc717434741dd797b3e1a4dc3b7604c045febf1a. Not green. python3 scripts/ci/test_workflow_policy.pyexit 0 (12).python3 scripts/ci/test_affected_crates.pyexit 0 (18).bash scripts/ci/player_facing_names.shexit 0.- Not run: replay-hash
cargo test(no hashed crate). GPU frame budget (no GTX 1660 Ti).actionlint(binary absent).cargo audit/cargo deny(no dependency change). - Measurements: schedule run
40637628179, SHA0213d1cf, 16 shard durations sum to 34625s (shard 4 is 3249s, shard 0 is 1122s).aw_buildis 155s and the aggregate is 53s. Wall05:22:34Z–08:12:43Z, conclusion success. That run is the first shard execution of the SHA, after it cancelled pending push40627285816. GPU frame budget not measured. - Replay hashes unchanged. Not run.
- Deferred issue links: none.
Sent by Cursor Automation: ASTRA PR AUDIT AGENT
| # run-benchmarks (pull_request types: [labeled] below). | ||
| - cron: "17 5 * * *" | ||
| # No nightly cron. Push to main already runs these 16 shards, and the | ||
| # 05:17 UTC cron ran them again (run 40637628179, 34625s of runner time). |
There was a problem hiding this comment.
Run 40637628179 is the only shard execution of 0213d1cf. The push of that SHA, run 40627285816, has zero jobs. It was created at 03:32:38Z, stayed pending behind in-progress push 40620616041 (f737d491a, which ran until 05:53:35Z), and was cancelled at 05:22:35Z, one second after this schedule run was created.
cancel-in-progress is false for push and schedule, so the in-progress run stays. A newer run in Performance Benchmarks-${{ github.ref }} still cancels the pending one. This cron arrival is what dropped the queued push.
The 34625s figure matches the 16 shard durations. Shard 4 is 3249s, shard 0 is 1122s. aw_build is 155s and the aggregate is 53s, outside that sum. Wall clock is 05:22:34Z–08:12:43Z. Conclusion success.
Same-SHA repeats do exist on quieter days. 3554016aa: push 40145178275 succeeded at 2026-10-25T00:03:16Z and schedule 40165571400 succeeded at 05:26:59Z. 3209fa1f0: push 40241809177 succeeded, then schedules 40274704065 and 40455623588 both succeeded. 9b0cd684a: push 40022955524 failed and the next schedule succeeded, so that cron was the retry.
Deleting the cron removes that cost and this pending-run eviction. This sentence records 40637628179 as a second execution. The benchmark-data store still requires github.event_name == 'push', so a schedule run never wrote that branch. Strict thresholds and Enforce benchmark shard health do run when the ref is refs/heads/main.
| ## What changed | ||
|
|
||
| 1. **Benchmarks are off unlabeled pull requests.** `Performance Benchmarks` runs on push to `main` and `develop`, nightly at 05:17 UTC, `workflow_dispatch`, and a pull request whose `run-benchmarks` label was just added (`pull_request` types: `[labeled]`). A later push does not rerun benches; remove and re-add the label, or use `workflow_dispatch`. The 600s per-package cap in `.github/scripts/benchmark-runner.sh` is unchanged. See issue #221. | ||
| 1. **Benchmarks are off unlabeled pull requests.** `Performance Benchmarks` runs on push to `main` and `develop`, `workflow_dispatch`, and a pull request whose `run-benchmarks` label was just added (`pull_request` types: `[labeled]`). There is no nightly cron. Push to `main` already runs the 16 shards, and the 05:17 UTC cron ran them again (run `40637628179` used 34625s of runner time). A failure on `main` still opens the nightly-failure issue, because that workflow reports a failed `workflow_run` whose head branch is `main`. A later push does not rerun benches; remove and re-add the label, or use `workflow_dispatch`. The 600s per-package cap in `.github/scripts/benchmark-runner.sh` is unchanged. See issue #221. |
There was a problem hiding this comment.
This paragraph repeats the “ran them again” claim for run 40637628179. That schedule run is the only shard execution of 0213d1cf. The push of that SHA, 40627285816, has zero jobs and was cancelled at 05:22:35Z when the schedule run was created. The workflow comment has the run list.
The failure-issue sentence matches nightly-failure-issue.yml: conclusion == 'failure' and (event == 'schedule' or head_branch == 'main'). A failed push to main still opens the issue. A day with no push, dispatch, or run-benchmarks label no longer starts this workflow, so the strict threshold step (github.ref == 'refs/heads/main', no event guard) and the shard-health exit no longer run. benchmark-dashboard.yml at 0 2 * * * stays a subset with || true and continue-on-error.
Present tense that still describes this cron: docs/ci/pipeline_profile.md line 104, docs/ci/bottlenecks.md line 51 (that row also says the removal waits on #466 and #468), docs/src/performance/methodology.md lines 204–206, and docs/current/DESTRUCTION_DESIGN.md line 353. The first two are the 2026-10-25..27 window, and bottlenecks already points the current list at this file. The methodology and destruction lines are instructions.
lazyxeon
left a comment
There was a problem hiding this comment.
Docs review (Astranox): clear at cc71743.
Scope: docs/current/CI_ARCHITECTURE.md l.21, checked against .github/workflows/benchmark.yml, .github/workflows/nightly-failure-issue.yml and scripts/ci/test_workflow_policy.py at this head.
Verified:
benchmark.ymltriggers are pushbranches: ["main", "develop"],workflow_dispatch, andpull_request: types: [labeled]. There is noschedule:(l.3-11). The policy test now assertsassertNotIn("schedule:")and no17 5 * * *.- 16 shards:
shard_index: [0..15](l.37), which matches row l.64. - Failure reporting:
nightly-failure-issue.ymlwatchesPerformance Benchmarksand fires whenconclusion == 'failure'and (event == 'schedule'orhead_branch == 'main'). So a failed main push still opens the issue, as stated. - Unverified (Actions data): run
40637628179, 34625s.
Non-blocking:
- Outside this diff, now stale:
docs/ci/pipeline_profile.md:104("a nightly schedule ... again on the nightly cron") anddocs/ci/bottlenecks.md:51(benchmarks "again from the nightly cron"; the duplicate-cron move is listed as pending). Update them after merge.
Docs side only; the code verdict is Astraea's.
Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> #519 removed it. The profile and the bottleneck note still said a main push pays the 16 shards again at 05:17 UTC.
Post-merge devastation pass @
Review environment note: the runner's |
* docs: record the Linux archive, sccache mode, and macOS GPU skip #477, #480, #481, and #439 left the toolchain guide, the CI timeout table, and two present-tense profile sentences on the old jobs. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * Correct the net-ecs test rollup and the appendix. Family 5 has 4 tests, so the families are 41, the server is 44, and the standalone trio is 110. The test grep matches a tokio test with a flavor argument. Under Warn a bad tag still assigns tokens and last_refill. The four crates have no dedicated workflow; the client binaries and the proto fuzz target are in CI. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * Cite run 40235303264 for the Ubuntu test timeout. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> #477 removed the ci.yml comment that recorded a 45 min cancel after 27,057 passes. The timeout row now cites the run the replacement comment names. * docs(ci): the benchmark nightly cron is gone Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> #519 removed it. The profile and the bottleneck note still said a main push pays the 16 shards again at 05:17 UTC. * docs(net): keep revision 1.11 append-only Restore the main text that cites de6f272. Revision 1.12 records that aa30a82 is the reachable equivalent, dated 2026-10-28. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> * docs(net-ecs): restore post-merge doc truth for PR #505 review Update ci.yml client-binary cites after #633, fix bench and test rollups, Warn policy appendix text, grep -cE maintenance, and CI gating claims for Gate and net-tests. Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Andrew Brown <lazyxeon@users.noreply.github.com>


Description
Performance Benchmarksran the 16 shards on every push tomainand again from the 05:17 UTC cron. The cron is removed. Push tomainanddevelop,workflow_dispatch, and a pull request labeledrun-benchmarksstill start the shards. A failed run onmainstill opens the nightly-failure issue, because that workflow reports aworkflow_runwhose head branch ismain.Benchmark Regression Alertsstill runs its own 16 shards on push tomain. That second push-time bench is a separate change. This pull request does not edit it.Type of change
Security Considerations
No new dependency.
Checklist
Report
cc717434741dd797b3e1a4dc3b7604c045febf1a, based on75486dcf. Required checks on this SHA have not finished.python3 scripts/ci/test_workflow_policy.pyexit 0 (12 tests).python3 scripts/ci/test_affected_crates.pyexit 0 (18 tests)./tmp/actionlint1.7.7 on.github/workflows/benchmark.ymlexit 0.bash scripts/ci/player_facing_names.shexit 0.aw_doc_lint --mode warnexit 0.cargo test(no hashed crate). GPU frame-budget capture (no GTX 1660 Ti).cargo audit/cargo deny(no dependency change). The next 05:17 UTC slot has not occurred, so the missing cron run is not yet observable on GitHub.40637628179, SHA0213d1cf, 16 shards, 34625s of runner time (max shard 3249s, min 1122s), workflow 05:22:34Z–08:12:43Z, conclusion success. After: not measured. The cron is gone, so that second run does not start. GPU frame budget not measured.Summary by CodeRabbit
mainanddevelop, when manually started, and on pull requests labeledrun-benchmarks.main.