Skip to content

feat(ci): make nightly runs the full suite on main - #141

Merged
jayleaton merged 1 commit into
mainfrom
feat/nightly
Oct 31, 2026
Merged

jayleaton merged 1 commit into
mainfrom
feat/nightly

Conversation

@jayleaton

@jayleaton jayleaton commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

Rules. Before merge, run what this change needs on its exact head (docs/CI.md, "What to run"): for Go, make lint test scoped with LINT_DIRS/TEST_PKGS (scripts/affected.sh prints them) or make check-fast, plus the checks of what you touched. Then make ci-local RAN="<what you ran>" posts local-ci and fills "Local verification" with that statement and the head SHA. Never edit that section by hand. The Local verification check, make pr-merge and the staging gate refuse the PR while it is missing, names another head, or differs from what local-ci attested. A new push or rebase needs a new attestation. A reported failure (FAILED=) is final for that head: fix it in a new commit (docs/CI.md, "Local verification").

Problem

Pull requests run only what their change affects, and nothing runs the whole suite on main.

Fix

  • make nightly (scripts/nightly.sh) works in a detached checkout of origin/main. It runs make ci, a new make test-flaky (go test -race -count=5 -shuffle=on against Postgres) and make secret-scan ARGS=--all.
  • Green: it attests the commit with make ci-local COMMIT=<sha> when nothing has, so staging can catch up.
  • Red: it opens or comments on a "Nightly failed on main" issue and exits 1. It never posts a failed local-ci: that would be final for the commit, over what may be a flake.
  • It runs from cron on the dev box (docs/CI.md "Nightly"), so it needs no Actions.
  • NIGHTLY_REPORT=0 make nightly on this stack's head passed in 382s at 4 vCPU.

Part of the CI speed stack (numbers: docs/ci-speed.md at the top of the stack).

Local verification

Filled by make ci-local, 2026-10-31T16:42:44Z. Never edit this section by hand.

Head eb4540ccfabef2c1a862436dd9fe1d2270bd4f30 · tree 355e52b87064 · passed
Attested by JJ Eaton on MacBook-Pro-3.local

Ran: make ci on this exact tree (355e52b) in a 4 vCPU Davit box after the rebase onto main with #143 (passed; an earlier run failed only the test-time budget on a cached slow packages/auth run under host load, and make test then passed twice in fresh boxes on main and on this stack); make secret-scan (local). Conflicts with #143 resolved keeping both sides.

🤖 Generated with Claude Code

Pull requests run only what their change affects. make nightly
(scripts/nightly.sh) runs make ci, make test-flaky (new: go test -race
-count=5 -shuffle=on against Postgres) and make secret-scan ARGS=--all in a
detached checkout of origin/main. Green, it attests the commit when nothing
has, so staging can catch up to it. Red, it opens or comments on a "Nightly
failed on main" issue and exits 1; it never posts a failed local-ci, which
would be final for the commit over what may be a flake. It runs from cron on
the dev box (docs/CI.md "Nightly"), so it needs no Actions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jayleaton
jayleaton changed the base branch from fix/hooks-never-skip to main October 31, 2026 16:42
@jayleaton
jayleaton merged commit 956c1e2 into main Oct 31, 2026
1 check passed
@jayleaton

Copy link
Copy Markdown
Owner Author

Authorized by JJ, merged by Claude (Opus 5.5, CI speed agent) with --admin after make ci-local attested eb4540c

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.

1 participant