DocsWhen something is off

Reference

When something is off

What you do

  1. On CI, read the job summary: it counts hits and misses and says when the cache was off.

  2. On a Mac, ask the CLI why the hit rate is low.

    Terminal
    warmbuild doctor
  3. To turn it off, remove the step on CI, or run warmbuild stop on a Mac.

What you get

When the cache is unreachable or the account is not approved, builds run without it, as before. Nothing fails.

On CI

  • No hits at all: the default branch has to build once with the Action first. Until then pull requests find the cache empty, and the job summary says so.
  • The pull request that adds the Action finds nothing: expected. Pull requests only read, so its own build fills nothing. Merge it; later pull requests hit.
  • One target misses that used to hit: run warmbuild why-miss <target>. It compares recent jobs and names what changed since the last job without misses: Xcode, runner, ref, event or commit.
  • The targets a pull request changes miss: on pull requests the Action times Swift type-checking in those targets, and they compile without the cache in that job. typecheck: false turns the timing off.
  • The Action warns that the job has no OIDC token: add id-token: write to the job's or the workflow's permissions.
  • A pull request from a fork runs without the cache: GitHub gives it no OIDC token. The Action prints a notice, the job summary says the cache was not used, and the job stays green.

On a Mac

Run warmbuild doctor first. It checks each cause below and prints the fix.

  • Swift files never hit: Swift hits what CI compiled only on Xcode 27. On Xcode 26 only C and Objective-C modules do.
  • Few hits: build with the same Xcode version, configuration and destination as CI. A branch far from the default branch shares less.
  • The Xcode app gets no hits, xcodebuild does: Xcode was open before warmbuild start. Quit and reopen it once.
  • DerivedData or a worktree under /tmp: those builds miss. Use Xcode's default DerivedData and keep worktrees in your home directory.
  • Not signed in, or the token expired: run warmbuild login. Without it the Mac uses only its own cache.

Unreachable, or turned off

  • The cache is unreachable or the account is not approved: builds run without it, as before. warmbuild status on a Mac says which.
  • Turn it off on CI: remove the warmbuild/action step.
  • Turn it off on a Mac: warmbuild stop.
  • Remove it from a Mac: run warmbuild stop, then rm -rf ~/.warmbuild ~/.local/bin/warmbuild, and delete the XCODE_XCCONFIG_FILE line from ~/.zshrc if start added it.