Skip to content

perf(release): reuse immutable inventories during discovery - #766

Merged
blove merged 3 commits into
mainfrom
blove/discovery-read-reuse
Sep 21, 2026
Merged

blove merged 3 commits into
mainfrom
blove/discovery-read-reuse

Conversation

@blove

@blove blove commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Release discovery repeatedly reads the same commit-bound package inventories while comparing current/parent commits and verifying terminal releases. Reuse those inventories within one resolution call, including concurrent reads, while keeping mutable refs, external evidence and later authorization calls fresh.

The cache holds at most 2048 entries, retains only valid results as frozen copies, and drops failed reads so they can retry. Publishing order, deadlines and workflows are unchanged.

A local real-Git inventory replay over 100 first-parent commits requests 200 inventories for 101 SHAs. Git calls drop from 6222 to 3142; two-sample mean time drops from 22.392s to 14.039s with identical inventory digests. This isolates inventory work and is not a complete discovery/release speedup claim. The runbook contains reproduction and limits; complete hosted timing remains for the next ordinary release.

Validation: six new regressions exercised red/green; 133 production-observation tests, 33 release-integrity tests and 166 workflow-contract tests pass. Scoped Biome, workspace build, docs and whitespace checks pass. Independent spec and code reviews found no blocking issues. All 3,923 local controller tests pass. Exact-head hosted CI validate, CopilotKit examples and real Vercel checks pass (run 35549232754). The optional Claude Review preflight failed with HTTP 400 because the Anthropic account has insufficient credit; independent spec and code reviews approved this change.

Refs #668.

@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
b4-run Ready Ready Preview Sep 21, 2026 12:56am UTC

Request Review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated approval: this PR received an intelligent (AI) code review. See the review comments on this PR.

@blove
blove merged commit 49cb44e into main Sep 21, 2026
30 of 31 checks passed
@blove
blove deleted the blove/discovery-read-reuse branch September 21, 2026 01:12

This branch was successfully deployed

1 active and 1 inactive deployments
Preview — a3fb9e0e Deployed Sep 21, 2026 by vercel[bot]
vercel-preview — a3fb9e0e Deployed Sep 21, 2026 by blove via vercel-native #2151
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