Skip to content

ci: watch nightly in Tend; issue on full-tests failure; release runs nightly - #3345

Merged
max-sixty merged 2 commits into
mainfrom
affected-tests-primary
Jul 1, 2026
Merged

max-sixty merged 2 commits into
mainfrom
affected-tests-primary

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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

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

…nightly

Trimmed after #3337 landed the benchmarks split independently (and more
completely). What remains novel:

- Tend watches the `nightly` workflow (.config/tend.yaml + the generated
  tend-ci-fix.yaml), so a red nightly — including a `full-tests` failure that
  means cargo-affected under-selected — is auto-fixable instead of silent.
  #3339's 0.1.9 regen did not add nightly; this does. Tend watches at the
  workflow level, so it also covers minimal-versions / nix-flake / udeps.
- `create-issue-on-nightly-failure` now also needs `full-tests`, so a
  safety-net failure on the nightly cron raises an issue (neither #3332 nor
  #3337 wired it in).
- The `release` skill's test step dispatches `nightly` (benchmark-free) and
  waits on it — a release's full linux/macos/windows validation once the PR
  path goes cargo-affected.

The generated tend-ci-fix.yaml edit was hand-applied to match .config/tend.yaml;
`uvx tend@latest init` reproduces it.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

@worktrunk-bot worktrunk-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The CI wiring is correct: full-tests exists and is now in create-issue-on-nightly-failure's needs (so a cron full-tests failure files an issue), and the workflow_run branch filter keeps tend-ci-fix firing only on main-branch nightly runs. The generated tend-ci-fix.yaml edit is fine given the PR body explains it matches .config/tend.yaml and a regen reproduces it.

One non-blocking robustness nit on the new release step (inline): capturing the just-dispatched nightly run via gh run list --limit 1 right after gh workflow run can either miss the run (registration lag → empty $RUN) or return a stale prior workflow_dispatch run — since nightly is almost always cron-triggered, dispatch runs are rare, so a leftover green one from a past release would let the monitor pass immediately and skip the validation this step exists to enforce. Filtering to the in-flight run avoids both.

Comment thread .claude/skills/release/SKILL.md Resolved
Addresses review on #3345: gh run list --limit 1 right after gh workflow
run could grab a stale prior workflow_dispatch run (nightly is normally
cron-only) or miss registration lag. Filter to the non-completed run.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit baa12fe into main Jul 1, 2026
42 checks passed
@max-sixty
max-sixty deleted the affected-tests-primary branch July 1, 2026 10:23
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