You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
candidate.yml installs the full workspace dependency tree on the host, then scripts/prepare-core-release.sh runs npm ci again inside a digest-pinned container over the bind-mounted checkout. The host npm cache is not mounted into the container. The host source guard imports release.ts dependencies, so simply removing installation would break it.
Isolate a minimal source-check bootstrap or otherwise remove unnecessary host dependency work; provide a dedicated container npm download cache with appropriate identity and permissions. Keep locked clean installs, the pinned environment, and the rule that no GitHub credentials enter the build container. Measure before/after. Host installation was 4 seconds; full candidate preparation was 7m40s, without finer attribution. Priority: next.
Update the matching repository documentation with any behavior/workflow changes. Preserve required checks and deliberate reproducibility validation. No implementation or deployment changes were made by this audit.
Findings for #232: no workflow change is justified
Attribution from step and in-container log timestamps. Run 35489873917 is the audited run at ea05148. Run 35491237703 is a newer candidate run on 0.4.1 (736365e).
Phase
Run 35489873917
Run 35491237703
Whole "Prepare core" step
7m40s (04:44:06 to 04:51:46)
about 7m30s
Host npm ci --ignore-scripts
4s
about 4s
Container apt-get update and package install for the test tool
The duplicate install is about 4 to 5s of about 460s, roughly 1%. The host install is a similar 4s, so both installs together are under 2.5%.
About 80% of the step is the test suites run inside npm run verify. They are the release gate, so they are not removable here.
A container download cache could save at most a few seconds. That is the download share of a 4 to 5s install, and the runner-to-registry network is already fast at 244 packages.
Each install still verifies the lockfile integrity hashes, so a cache would not weaken npm ci on its own.
A cache that persists between runs would still add trust surface. It would be another mutable input to a release build, and it would need a run-unique or read-only-after-fill design and the correct container UID.
Removing the host install would also break release.ts candidate-source, which imports the release dependencies. A separate minimal bootstrap would add a second install path to maintain and buy at most 4s.
Decision: I made no code change. The locked clean installs, the digest-pinned image, and the no-credentials-in-container rule stay as they are. If candidate time matters, the leverage is the test suites, especially root npm test at about 3.7 to 4 minutes and auth at about 1.5 minutes. That is a different issue from this one.
What I could not establish:
Only two successful candidate runs were measured, and neither is a controlled benchmark.
I cannot run candidate.yml itself from here, so I did not measure the actual effect of a cache.
I did not test registry, OIDC or attestation behavior.
Closing as answered by measurement, with no change made. Findings: #232 (comment). The duplicate dependency install is about 1% of the ~7m30s candidate-preparation step; about 80% of it is the test suites inside npm run verify. A cache that persists between runs would add a mutable input to a release build to save a few seconds. Reopen if candidate preparation time is revisited, targeting the test suites.
Activity
jimhoyd commentedon Sep 20, 2026
Findings for #232: no workflow change is justified
Attribution from step and in-container log timestamps. Run 35489873917 is the audited run at ea05148. Run 35491237703 is a newer candidate run on 0.4.1 (736365e).
npm ci --ignore-scriptsapt-get updateand package install for the test toolnpm ci --ignore-scriptsnpm testverify:workspaces(ui, auth, admin tests)npm run verify. They are the release gate, so they are not removable here.npm cion its own.release.ts candidate-source, which imports the release dependencies. A separate minimal bootstrap would add a second install path to maintain and buy at most 4s.Decision: I made no code change. The locked clean installs, the digest-pinned image, and the no-credentials-in-container rule stay as they are. If candidate time matters, the leverage is the test suites, especially root
npm testat about 3.7 to 4 minutes and auth at about 1.5 minutes. That is a different issue from this one.What I could not establish:
jimhoyd commentedon Sep 20, 2026
Closing as answered by measurement, with no change made. Findings: #232 (comment). The duplicate dependency install is about 1% of the ~7m30s candidate-preparation step; about 80% of it is the test suites inside
npm run verify. A cache that persists between runs would add a mutable input to a release build to save a few seconds. Reopen if candidate preparation time is revisited, targeting the test suites.