Skip to content

ci: run benchmarks on their own daily schedule, split from nightly - #3337

Merged
max-sixty merged 2 commits into
mainfrom
bench-own-schedule
Jun 30, 2026
Merged

max-sixty merged 2 commits into
mainfrom
bench-own-schedule

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The criterion suite ran as a job inside nightly.yaml: ~80 min, checking performance rather than correctness, yet feeding nightly's failure aggregator and dominating its wall-clock. This moves it into a standalone benchmarks.yaml on its own daily schedule, decoupled from nightly's correctness checks.

benchmarks.yaml runs on its own cron (3:47 UTC, offset from nightly's 5:37 so the two long runs don't contend) plus workflow_dispatch. The env block is carried over so the shared test cache key still matches (per .github/CLAUDE.md); the gist time-series append stays gated to schedule events; and a dedicated create-issue-on-benchmark-failure job keeps a broken bench harness visible, since benchmarks no longer ride nightly's aggregator.

One behavior change: benchmarks no longer run on PRs at all. Previously the job ran on a PR carrying the nightly label or touching Cargo.*. workflow_dispatch against a branch covers on-demand bench runs.

nightly.yaml loses the benchmarks job, its header line, and its needs entry in the failure aggregator. Docs updated: the CLAUDE.md benchmarks note (benchmarks no longer gate merges since they're off PRs) and the running-tend skill's setup-nu call-site list.

This branch also merges current main, which includes #3324 (drop cache-apt-pkgs-action for plain apt-get); benchmarks.yaml installs zsh/fish the same way rather than reintroducing the dropped action.

This was written by Claude Code on behalf of max

max-sixty and others added 2 commits June 29, 2026 17:11
The criterion suite ran as a job inside nightly.yaml: ~80 min, checking
performance rather than correctness, yet feeding nightly's failure
aggregator and dominating its wall-clock.

Extract it into a standalone benchmarks.yaml on its own daily cron (3:47
UTC, offset from nightly's 5:37) plus workflow_dispatch. The env block is
carried over so the shared `test` cache key still matches; the gist
time-series append stays gated to schedule events; and a dedicated
create-issue-on-benchmark-failure job keeps a broken bench harness
visible, since benchmarks no longer ride nightly's aggregator and don't
run on PRs.

Drop the benchmarks job, its header line, and its needs entry from
nightly.yaml. Benchmarks no longer run on PRs at all (previously: the
`nightly` label or a Cargo-path change); workflow_dispatch against a
branch covers on-demand runs.

Update the CLAUDE.md benchmarks note and the running-tend skill's
setup-nu call-site list (now four sites across ci/nightly/benchmarks/
test-setup).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Resolve nightly.yaml: main (#3324) swapped the benchmarks job's shell
install from awalsh128/cache-apt-pkgs-action to plain apt-get; this
branch moved that job out to benchmarks.yaml. Keep the move (drop the job
from nightly) and apply the same apt-get install to benchmarks.yaml, so
the dropped action isn't reintroduced. feature-powerset's apt-get change
from main merges cleanly.
@worktrunk-bot

Copy link
Copy Markdown
Collaborator

Approved. Heads-up that several checks were still running when my monitoring window closed — nothing had failed, but I haven't seen them go terminal: test (linux), feature-powerset, the full-tests matrix, release-target, and nix-flake. (Editing nightly.yaml trips the nightly gate, so the full slate runs on this PR.) test (windows) and all completed checks — including codecov/patch and codecov/project — passed. Worth a glance at the rollup before merging.

@max-sixty
max-sixty merged commit 8206667 into main Jun 30, 2026
41 checks passed
@max-sixty
max-sixty deleted the bench-own-schedule branch June 30, 2026 06:35
max-sixty added a commit that referenced this pull request Jul 1, 2026
…nightly (#3345)

Follow-up to #3332 (fast-checks split + nightly `full-tests`), landing
the monitoring/wiring that makes `nightly` a reliable safety net for the
cargo-affected rollout. The benchmarks-split half of the original
follow-up was dropped — #3337 did it independently, and more completely.

## What changed

- **Tend watches `nightly`** (`.config/tend.yaml` + the generated
`tend-ci-fix.yaml`). `nightly` hosts `full-tests` (the full 3-OS suite
that catches what cargo-affected under-selects), so a red nightly is
actionable — Tend now opens a fix PR instead of leaving it silent.
#3339's 0.1.9 regen left the watched list at `[ci, publish-docs]`; this
adds `nightly`. Tend watches at the workflow level, so it also covers
the other nightly jobs (minimal-versions, nix-flake, udeps).
- **`create-issue-on-nightly-failure` now needs `full-tests`**, so a
cron `full-tests` failure files a tracking issue (neither #3332 nor
#3337 wired it in).
- **The `release` skill dispatches `nightly`** (benchmark-free) and
waits on it — a release's full linux/macos/windows validation once the
PR path moves to cargo-affected selection and stops running the full
`test` matrix.

## Notes

- The generated `tend-ci-fix.yaml` line was hand-applied to match
`.config/tend.yaml`; a `uvx tend@latest init` regen reproduces it.
- Trade-off: watching `nightly` at the workflow level also signs Tend up
for the noisier nightly jobs (resolution drift, nix sandbox). Accepted
to keep the safety net green.

## Testing

CI-config plus one skill; validated with `actionlint` and pre-commit.
The Tend trigger and the release step only exercise on a real nightly
failure / release run.

> _This was written by Claude Code on behalf of max_

---------

Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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