Repository navigation
ci(packs): packs/queue.json keeps a pull request pack-only (UPT-60) - #158
Merged
Merged
Conversation
A pack PR that also updates its queue entry still tests only that pack. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
added a commit
that referenced
this pull request
Oct 15, 2026
…che (UPT-60) (#159) UPT-60, PR 2. Stacked on #158 (its one commit comes first here). Merge #158 first, or this PR on its own. Full `Pack test` runs went past 60 min. The goal is to make them fast, not to raise the timeout. ## What - **Matrix.** `Pack scope` prints the packs as JSON: every registered pack on a push to main or an engine PR, just the changed ones on a pack-only PR. There's one `pack <id>` job per pack, in parallel, `fail-fast: false`, each with the 60-min timeout. - **Per-pack cache, with installs.** Each job points `UPTIDE_CACHE_DIR` at its own directory, which holds only that pack's ground-truth repos (installed), its registry tarballs and its fixtures. The key is `pack.<id>.<hash of ground-truth.json>.<hash of pnpm-lock.yaml>`. Restore falls back to the same pack with older keys. **Saved only on pushes to main**, so PRs restore main's caches. - **`Pack test`** (required name kept) is now the aggregate job. It fails if the scope or any pack job didn't succeed, and passes without running when nothing relevant changed. Its summary merges every job's report. - **Timings.** `pack test --json` adds `timing` to each repo: `fetchMs`, `installMs`, `checkMs`, and `peakRssMb`, the pack-test process's peak memory after that repo (installs run in child processes, so their memory isn't counted). Fetch and install are timed apart by calling `ensureRepo` with `install: false` first, so `truth.ts` is unchanged. Each job summary and the aggregate summary show a per-repo table, slowest first. Changeset included. ## Proof This PR edits the workflow, so its own run is a full one. It runs **cold**: no per-pack cache exists until a push to main saves one, so every job fetches and installs everything. That makes it the worst case for wall time. The first push to main after merge writes the caches. Wall time and the three slowest repos will be in the `Pack test` job summary of this PR's run. ## Not in this PR - A per-pack cache keeps repos a pack no longer lists until its key changes completely. That's fine at today's sizes. - The GitHub repo cache limit is 10 GB. The old single cache plus about 15 per-pack caches may evict each other. If that happens, drop the old `~/.cache/uptide` key: the matrix no longer uses it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Lucas Braum <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UPT-60 follow-up. Adds
packs/queue.jsonto the pack-only allowlist inscripts/pack-test-scope.mjs. A PR that changes a pack's own directory plus the queue now tests only that pack. A PR that changes only the queue still runs every pack, the same asregistry.tsalone. Two new cases inpack-test-scope.test.ts. It changes only CI and a test, sono-changeset.🤖 Generated with Claude Code