- All playbooks
- Unnecessary work
- Skip repeated npm advisory lookups inside CI image builds
Skip repeated npm advisory lookups inside CI image builds
The image build stops repeating advisory requests that the host install already reports.
Company examples
How OpenClaw used this technique
Read what OpenClaw changed and follow the original sources.
Skip repeated npm advisory lookups inside CI image builds
The image build stops repeating advisory requests that the host install already reports.
In the PR's Docker builds from the same Worker source, the original Dockerfile took 242.8 seconds to install and 423.4 seconds to build and prune; with --no-audit, install took 10.4 seconds and build and prune 3.1 seconds. Source
- Use it when
- A CI job already runs npm ci with audit on the host and also builds a Docker image whose npm install and prune layers repeat the audit.
- Before applying it
- Audit reporting stays on the host install; only the image build's install and prune pass --no-audit.
Company Playbooks
- Read Anthropic’s playbookRun only affected tests
- Read DoorDash’s playbookRun build and test in parallel, sharded across CI agents
- Read Linear’s playbookBenchmark the same job on faster hardware
- Read Mastra’s playbookStarSling runners for the slowest test workflow
- Read OpenAI’s playbookRank CI fixes by the minutes they save
- Read Ramp’s playbookType-check with a native checker
- Read Shopify’s playbookLet an agent iterate against one CI metric
- Read Spotify’s playbookBuild arm64 on native arm64 runners
- Read Stripe’s playbookRun only the tests a change can reach
- Read Uber’s playbookBuild the merge-queue speculations most likely to be needed
- Read OpenClaw’s playbookSelect only the tests and proofs a change can affect