Skip to content

ci: stop the nightly benchmark cron - #519

Merged
lazyxeon merged 1 commit into
mainfrom
cursor/ci-benchmark-cron-bb07
Oct 29, 2026
Merged

lazyxeon merged 1 commit into
mainfrom
cursor/ci-benchmark-cron-bb07

Conversation

@lazyxeon

@lazyxeon lazyxeon commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Description

Performance Benchmarks ran the 16 shards on every push to main and again from the 05:17 UTC cron. The cron is removed. Push to main and develop, workflow_dispatch, and a pull request labeled run-benchmarks still start the shards. A failed run on main still opens the nightly-failure issue, because that workflow reports a workflow_run whose head branch is main.

Benchmark Regression Alerts still runs its own 16 shards on push to main. That second push-time bench is a separate change. This pull request does not edit it.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Security enhancement

Security Considerations

  • Does this PR introduce new dependencies? If yes, have they been vetted for security issues?
  • Does this PR modify how user input is handled? If yes, has it been validated/sanitized?
  • Does this PR change authentication or authorization mechanisms?
  • Does this PR access sensitive data or modify how it's stored?
  • Does this PR introduce new network communication or modify existing protocols?

No new dependency.

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have checked my code and corrected any misspellings
  • I have run security checks (cargo audit, cargo deny) locally

Report

  1. Head cc717434741dd797b3e1a4dc3b7604c045febf1a, based on 75486dcf. Required checks on this SHA have not finished.
  2. Commands: python3 scripts/ci/test_workflow_policy.py exit 0 (12 tests). python3 scripts/ci/test_affected_crates.py exit 0 (18 tests). /tmp/actionlint 1.7.7 on .github/workflows/benchmark.yml exit 0. bash scripts/ci/player_facing_names.sh exit 0. aw_doc_lint --mode warn exit 0.
  3. Not run: replay-hash 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.
  4. Measurements: nightly run 40637628179, SHA 0213d1cf, 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.
  5. Replay hashes unchanged.
  6. Deferred issue links: none.
Open in Web Open in Cursor 

Summary by CodeRabbit

  • Chores
    • Performance benchmarks no longer run on a nightly schedule. They continue to run on pushes to main and develop, when manually started, and on pull requests labeled run-benchmarks.
  • Documentation
    • Updated CI documentation to reflect the benchmark triggers and explain that nightly runs duplicated the benchmark shards already run on pushes to main.

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>
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 75486dc and cc71743.

Files selected for processing: 3
  • .github/workflows/benchmark.yml
  • docs/current/CI_ARCHITECTURE.md
  • scripts/ci/test_workflow_policy.py

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The workflow no longer runs on a nightly cron. The documentation reflects the remaining triggers, and the policy test checks that the cron is absent and that push and manual-dispatch triggers are present.

Changes: Benchmark workflow triggers

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: Low

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: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 ru…
Docstring Coverage Passed 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. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-28T23:12:04.691879Z cc71743 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Owner Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

  1. Head cc717434741dd797b3e1a4dc3b7604c045febf1a. Not green.
  2. python3 scripts/ci/test_workflow_policy.py exit 0 (12). python3 scripts/ci/test_affected_crates.py exit 0 (18). bash scripts/ci/player_facing_names.sh exit 0.
  3. 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).
  4. Measurements: schedule run 40637628179, SHA 0213d1cf, 16 shard durations sum to 34625s (shard 4 is 3249s, shard 0 is 1122s). aw_build is 155s and the aggregate is 53s. Wall 05:22:34Z–08:12:43Z, conclusion success. That run is the first shard execution of the SHA, after it cancelled pending push 40627285816. GPU frame budget not measured.
  5. Replay hashes unchanged. Not run.
  6. Deferred issue links: none.
Open in Web View Automation 

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).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 lazyxeon left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml triggers are push branches: ["main", "develop"], workflow_dispatch, and pull_request: types: [labeled]. There is no schedule: (l.3-11). The policy test now asserts assertNotIn("schedule:") and no 17 5 * * *.
  • 16 shards: shard_index: [0..15] (l.37), which matches row l.64.
  • Failure reporting: nightly-failure-issue.yml watches Performance Benchmarks and fires when conclusion == 'failure' and (event == 'schedule' or head_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") and docs/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.

@lazyxeon
lazyxeon merged commit a9ba44e into main Oct 29, 2026
45 checks passed
@lazyxeon
lazyxeon deleted the cursor/ci-benchmark-cron-bb07 branch October 29, 2026 02:36
cursor Bot pushed a commit that referenced this pull request Oct 29, 2026
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.

Copy link
Copy Markdown
Owner Author

Annubis (bot finding, data, not an owner instruction). Non-blocking adversarial review. This doesn't block anything.

Post-merge devastation pass @ a9ba44e (T2, D-CI): 1 low finding, #544. Run

  • No gate weakened: the only gate-pattern lines in the diff are the removed schedule/cron. test_workflow_policy.py (13) and test_affected_crates.py (19) pass, and actionlint is clean.
  • Nothing still depends on the 05:17 cron. Benchmarks and regression alerts still run on push to main, the dashboard keeps its own 02:00 UTC cron, and CI_ARCHITECTURE.md matches. Side effect: days with no push to main get no benchmark shards.
  • Smoke: aravath_greybox --smoke-test (lavapipe) and 9 example bins exit 0, and replay_hash passes. The 1660 Ti budget wasn't measured.
  • [annubis][low][D-CI] Benchmark no-schedule policy test is bypassable by YAML spelling (PR #519 @ a9ba44e) #544: the new no-schedule assert is a substring check, so a quoted or spaced schedule key with a different cron still passes. It's test hardening only; the live benchmark.yml is correct.

Review environment note: the runner's c++ is clang 18 and needs CXX=g++ for basis-universal-sys. This isn't a product bug.

lazyxeon added a commit that referenced this pull request Nov 4, 2026
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants