Skip to content

CI: caches only on main, smoke on debug builds; releases save no cache, Windows builds each architecture on its own runner - #297

Merged
fylorn merged 3 commits into
mainfrom
ci/cache-and-smoke
Oct 8, 2026
Merged

fylorn merged 3 commits into
mainfrom
ci/cache-and-smoke

Conversation

@fylorn

@fylorn fylorn commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

CI saves caches only on main, releases save none, Windows release builds each architecture on its own runner

  • ci.yml: rust-cache saves only on pushes to main. A PR can read its own
    caches, its base branch's and the default branch's, never another PR's, so
    a cache saved on a PR served only a later push to that same PR while taking
    as much of the 10 GB quota as main's and pushing main's out.
  • release.yml: no cache is saved. A tag run's cache is filed under that tag
    and no later tag can read it; v0.64.0 and v0.64.1 left about 1.5 GB each.
  • release.yml: the Windows job becomes a matrix, x64 on windows-latest and
    arm64 natively on windows-11-arm, in parallel. It built both in a row and
    took about twice as long as any other platform, holding up the release; the
    arm64 binary is now also run, not only checked by its PE header.
  • ci.yml: the Windows start-up check uses a debug build: it proves the binary
    starts and answers only after the handshake, which does not depend on the
    optimisation level, and the release build added about four minutes to the
    slowest job. The macOS and Linux smoke runs keep the release build, since
    their memory and latency targets only hold for it (a debug build sits at
    about 55 MB against the 30 MB target).

Smoke runs on a debug build everywhere, with a 150 MB memory ceiling instead of a 30 MB target

The macOS and Linux smoke runs built the release binary only so the memory
figure would sit under 30 MB, which cost three to four minutes per platform on
every PR. The memory check now only catches runaway growth (a leak, a request
history read into memory): a debug build after a round of requests sits at
about 55 MB, the ceiling is 150 MB. The warning tier that existed only for
that figure goes too. The released binary is still run by release.yml.

CI: the platform-independent checks get their own Linux job, macOS gets a job like Linux and Windows

check ran on macOS and held format, the sandbox guest's clippy, the
TypeScript export and the macOS clippy, tests and smoke in one job, so the
platform-independent steps took a macOS runner and lengthened the slowest
job. check now runs those steps on ubuntu-22.04, with the release page text
check moved in from linux; the new macos job runs clippy, tests and smoke
like the other two platforms.

Release rehearsal on this branch: https://github.com/ThinkWatchProject/ThinkWatch-Core/actions/runs/37721062709

🤖 Generated with Claude Code

…lds each architecture on its own runner

- ci.yml: `rust-cache` saves only on pushes to main. A PR can read its own
  caches, its base branch's and the default branch's, never another PR's, so
  a cache saved on a PR served only a later push to that same PR while taking
  as much of the 10 GB quota as main's and pushing main's out.
- release.yml: no cache is saved. A tag run's cache is filed under that tag
  and no later tag can read it; v0.64.0 and v0.64.1 left about 1.5 GB each.
- release.yml: the Windows job becomes a matrix, x64 on windows-latest and
  arm64 natively on windows-11-arm, in parallel. It built both in a row and
  took about twice as long as any other platform, holding up the release; the
  arm64 binary is now also run, not only checked by its PE header.
- ci.yml: the Windows start-up check uses a debug build: it proves the binary
  starts and answers only after the handshake, which does not depend on the
  optimisation level, and the release build added about four minutes to the
  slowest job. The macOS and Linux smoke runs keep the release build, since
  their memory and latency targets only hold for it (a debug build sits at
  about 55 MB against the 30 MB target).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn

fylorn commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

…instead of a 30 MB target

The macOS and Linux smoke runs built the release binary only so the memory
figure would sit under 30 MB, which cost three to four minutes per platform on
every PR. The memory check now only catches runaway growth (a leak, a request
history read into memory): a debug build after a round of requests sits at
about 55 MB, the ceiling is 150 MB. The warning tier that existed only for
that figure goes too. The released binary is still run by release.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn fylorn changed the title CI saves caches only on main, releases save none, Windows release builds each architecture on its own runner CI: caches only on main, smoke on debug builds; releases save no cache, Windows builds each architecture on its own runner Oct 8, 2026
…ts a job like Linux and Windows

`check` ran on macOS and held format, the sandbox guest's clippy, the
TypeScript export and the macOS clippy, tests and smoke in one job, so the
platform-independent steps took a macOS runner and lengthened the slowest
job. `check` now runs those steps on ubuntu-22.04, with the release page text
check moved in from `linux`; the new `macos` job runs clippy, tests and smoke
like the other two platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fylorn
fylorn merged commit 4fcd0c3 into main Oct 8, 2026
5 checks passed
@fylorn
fylorn deleted the ci/cache-and-smoke branch October 8, 2026 03:39
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