Skip to content

perf(ci): narrow cache retention checkouts - #14402

Merged
vincentkoc merged 1 commit into
mainfrom
perf/ci-cache-retention-checkout
Nov 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf/ci-cache-retention-checkout

Conversation

@vincentkoc

Copy link
Copy Markdown
Collaborator

Summary

Cache retention runs after eligible default-branch CI completions. Its two checkouts took a combined median of 13 seconds across eight successful runs. Each checkout materialized the project tree.

Change and scope

Fetch the Node pin and CI scripts at the workflow revision. Fetch root files at the triggering revision, where the workflow computes the static, deep-static, and Knip cache keys. Each checkout retains its existing revision, path, and credential settings.

Evidence and regression coverage

  • Checked the workflow patterns with Git at 26cb5b53c and the older lockfile at 417beaf3a. All three key digests matched the corresponding complete tree in both cases.
  • At 26cb5b53c, the checkouts selected 49 trusted files (294,511 bytes) and 37 triggering files (1,211,041 bytes). Each complete tree contained 118,572,937 bytes of tracked blobs. These are uncompressed source sizes.
  • The cache-policy test also checks that the key expressions use root files and that both checkouts use the intended sparse patterns.

Validation performed

  • ciCachePolicy.test.ts and ciCacheRetention.test.ts passed all 34 tests under Node 24.22.1.
  • actionlint, oxfmt --check, and git diff --check passed.
  • Hosted timing for the new patterns will be observable after an eligible CI completion.

Author readiness

Human owner: @vincentkoc

@vincentkoc
vincentkoc marked this pull request as ready for review November 25, 2026 00:20
@vincentkoc
vincentkoc enabled auto-merge (squash) November 25, 2026 00:20
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-25T00:20:15.156847Z
We couldn’t complete this review. Comment @codex review to try again.
e35bcc3 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Summary

This PR narrows both checkouts in the cache-retention workflow.

  • Cache retention fetches only the files its helper and keys need.

No actionable correctness or security issues were found. The trusted revision, event checks, and credential settings remain unchanged.

Supersession could not be checked because GitHub access required authentication. Tests were not rerun during this review; hosted timing remains unmeasured.

Reviews (1) · Last reviewed commit: "perf(ci): narrow cache retention checkou..." · Reviewed by Greptile

@vincentkoc
vincentkoc merged commit 8e4c1c5 into main Nov 25, 2026
52 checks passed
@vincentkoc
vincentkoc deleted the perf/ci-cache-retention-checkout branch November 25, 2026 00:42
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