Skip to content

ci: separate the ARM64 packaging cache; nightly report waits for ci.yml; docs - #1427

Merged
AnthonyRonning merged 4 commits into
masterfrom
ci/audit-fixes-1102
Nov 2, 2026
Merged

AnthonyRonning merged 4 commits into
masterfrom
ci/audit-fixes-1102

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Follow-ups from the 11-02 CI audit. This needs to merge before today's scheduled ci.yml run, which GitHub has been starting between 10:26 and 11:21Z.

  1. The Windows ARM64 packaging cache gets its own key family (ci-v1-agent-package-ARM64-Windows-…).
    • Agent: add native Windows ARM64 builds and updates #1401's ARM64 key shared the x64 lane's restore prefix, and both cache the same paths. Once tonight's nightly saves the first ARM64 entry, an x64 run that misses its exact key could restore it.
    • No ARM64 entry exists yet, so nothing is lost. The x64 keys are unchanged.
    • A new C4 contract test fails if any packaging cache family's key or restore prefix could match another cache's keys, or another prefix could match it.
    • If an entry named ci-v1-agent-package-Windows-ARM64-… gets saved before this merges, delete it with gh cache delete.
  2. The nightly report waits for ci.yml.
    • GitHub starts scheduled runs 5–7 hours late. On 10-30 the report ran before ci.yml finished and said "still in_progress".
    • The Report job now polls once a minute for up to 120 minutes until today's scheduled ci.yml run finishes, with a 60 s timeout on each API call. Then it decides as before.
    • No new trigger, permission, workflow or required check.
    • Tests cover waiting, a red or cancelled run, retries, the bound, and that the job timeout outlasts the wait.
    • The cron comments and docs no longer quote exact times.
  3. Docs left stale by Agent: add native Windows ARM64 builds and updates #1401 and ci(agent): one dispatch builds, signs and publishes a Maple Work release #1420:
    • the ci.yml step names;
    • the nightly Dev build "builds every platform and signs macOS/Windows";
    • ci:package includes the ARM64 installer;
    • the Agent PR long pole is usually agent-macos or agent-test;
    • the Windows runner comments;
    • the windows-11-arm runner and ci-v1-agent-arm64-release- are listed.

Expect after merge: one comment line in agent-desktop-build.yml changes, so the merge starts a normal signed Agent Prod build. It is not published. The nightly report's wait is first exercised by tonight's nightly.

Local checks pass: plan.py lint, and the scripts/ci suite (542) via the root flake checks, plus the release gates and actionlint.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

AnthonyRonning and others added 4 commits November 2, 2026 03:28
The x64 Windows rehearsal restores by the prefix
`ci-v1-agent-package-Windows-`, which also matched the ARM64 lane's
`ci-v1-agent-package-Windows-ARM64-<hash>` keys (same paths, same store),
so once the nightly run saved an ARM64 entry the x64 rehearsal could
restore ARM64 objects. The ARM64 family is now
`ci-v1-agent-package-ARM64-Windows-`; no ARM64 entry has been saved yet,
and the x64 keys are unchanged, so nothing goes cold.

C4 now checks behaviour instead of only pinning the text: with each job's
runner.os filled in, no Agent packaging family's key or restore prefix can
match another cache's keys, and no other cache's prefix can match a
packaging key. It fails on the old ARM64 key in both directions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub creates the scheduled runs 5-6.5 hours after their cron times, and
nightly.yml's Report job starts only about an hour after ci.yml's run
does, while that run takes 35-60 minutes. On 2026-10-30 the report ran at
11:49:49, ci.yml's run finished at 11:52:23, and the ci-nightly issue said
"still in_progress".

The Report job now polls the API (the token's existing actions: read) once
a minute until today's scheduled ci.yml run has finished, for at most
CI_WAIT_MINUTES (120 on schedule, 0 for dispatched dry runs), then decides
as before; a run still missing or unfinished after the wait is reported as
it was. API errors while waiting are retried. Its timeout grows to 135
minutes. No trigger, required check or permission changes.

The cron comments and the docs no longer present cron times as start
times or rely on one schedule starting before another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#1420 removed the verification and smoke steps from `just
package-rehearsal` and the Agent's post-build verify jobs, and #1401
added the native ARM64 lane, but some names and docs still said
otherwise:

- the Linux and macOS rehearsal step names no longer claim to verify and
  smoke-test;
- docs/ci.md: the Dev nightly builds and signs (no verify), for every
  platform including Windows ARM64; ci:package includes the ARM64
  installer (the skill's label table too);
- lanes.py: the 16-core GitHub Windows runner now serves only packaging,
  and the free runner the updater suites;
- the skill: the Agent PR long pole is agent-macos or agent-test (28 Agent
  PR runs since 10-29: agent-macos 11, agent-test 11, agent-windows 3),
  the ARM64 runner constant and its release cache.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Report job now waits up to two hours, so a hung `gh api` call could
hold it until its 135-minute timeout and leave the night unreported. Every
call now times out after 60 seconds, and a timed-out poll is retried like
a failed one.

Tests now cover what the review found untested: a red or cancelled ci.yml
run ends the wait at once; CI_WAIT_MINUTES is read as minutes (the 10-30
replay needs three polls, more than 120 seconds allows); nightly.yml's
Report job outlasts its longest wait, and a dispatched dry run does not
wait; and every API call carries a timeout.

Docs: the Agent Dev nightly signs only the macOS and Windows packages (the
Linux bundle is attested only when published); GitHub has started the
scheduled runs 5-7 hours late; and `ci-v1-agent-arm64-release-` joins the
release-reserved prefixes ci.yml must never write.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AnthonyRonning
AnthonyRonning merged commit e4bc54d into master Nov 2, 2026
39 checks passed
@AnthonyRonning
AnthonyRonning deleted the ci/audit-fixes-1102 branch November 2, 2026 03:36
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