Skip to content

ci: drop install and cache work the CI tasks never use - #508

Merged
Mearman merged 1 commit into
mainfrom
ci-setup-overhead
Oct 18, 2026
Merged

Mearman merged 1 commit into
mainfrom
ci-setup-overhead

Conversation

@Mearman

@Mearman Mearman commented Oct 18, 2026

Copy link
Copy Markdown
Member

ci: drop install and cache work the CI tasks never use

The CI jobs' cost is dominated by setup, not the tasks themselves, and
three pieces of that setup buy nothing:

The build jobs persisted and restored the whole dist tree as their
Turbo cache entry. Moving that entry through the runner cache costs
more than the build it would skip, a restored entry was routinely a
miss anyway (the PR's own source change is what invalidated it), and
every such write evicts pnpm-store entries the other tasks actually
restore from. The build jobs now run uncached through Turbo in CI;
local turbo run _build keeps its cache.

pnpm install in CI now passes --ignore-scripts: the package's
prepare script runs husky and an esbuild bundle of the CLI, and no CI
task consumes that bundle (lint, typecheck, test and knip read the
sources; the build and publish jobs bundle explicitly). Runners have
no use for the git hooks.

The audit job installs nothing: pnpm audit reads the lockfile alone.

The composite action gains install and cache-turbo inputs, both
defaulting to the previous behaviour, so only the jobs named above
change what they do.

The CI jobs' cost is dominated by setup, not the tasks themselves, and
three pieces of that setup buy nothing:

The build jobs persisted and restored the whole dist tree as their
Turbo cache entry. Moving that entry through the runner cache costs
more than the build it would skip, a restored entry was routinely a
miss anyway (the PR's own source change is what invalidated it), and
every such write evicts pnpm-store entries the other tasks actually
restore from. The build jobs now run uncached through Turbo in CI;
local `turbo run _build` keeps its cache.

`pnpm install` in CI now passes --ignore-scripts: the package's
prepare script runs husky and an esbuild bundle of the CLI, and no CI
task consumes that bundle (lint, typecheck, test and knip read the
sources; the build and publish jobs bundle explicitly). Runners have
no use for the git hooks.

The audit job installs nothing: pnpm audit reads the lockfile alone.

The composite action gains `install` and `cache-turbo` inputs, both
defaulting to the previous behaviour, so only the jobs named above
change what they do.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-10-18T11:28:50.675310Z 71d9064 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Mearman
Mearman merged commit e935b65 into main Oct 18, 2026
32 checks passed
@Mearman
Mearman deleted the ci-setup-overhead branch October 18, 2026 12:24
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