Skip to content

ci(packs): packs/queue.json keeps a pull request pack-only (UPT-60) - #158

Merged
lucasbraum merged 1 commit into
mainfrom
lucasbraum/upt-60-queue-scope
Oct 15, 2026
Merged

lucasbraum merged 1 commit into
mainfrom
lucasbraum/upt-60-queue-scope

Conversation

@lucasbraum

Copy link
Copy Markdown
Collaborator

UPT-60 follow-up. Adds packs/queue.json to the pack-only allowlist in scripts/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 as registry.ts alone. Two new cases in pack-test-scope.test.ts. It changes only CI and a test, so no-changeset.

🤖 Generated with Claude Code

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 lucasbraum added the no-changeset Change needs no release note label Oct 15, 2026
@lucasbraum
lucasbraum merged commit 481678e into main Oct 15, 2026
11 checks passed
@lucasbraum
lucasbraum deleted the lucasbraum/upt-60-queue-scope branch October 15, 2026 20:16
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changeset Change needs no release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant