feat: TRAC-926 upgrade: project resolution, download, and base ref - #3065
Merged
chanceaclark merged 4 commits intoJun 26, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 4d381b2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Bundle Size ReportComparing against baseline from No bundle size changes detected. |
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 25, 2026 20:50
8130e49 to
1c9aa30
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 25, 2026 20:52
4f7b90b to
666048e
Compare
Contributor
Unlighthouse Performance Comparison — VercelComparing PR preview deployment Unlighthouse scores vs production Unlighthouse scores. Summary ScoreAggregate score across all categories as reported by Unlighthouse.
Category Scores
Core Web Vitals
|
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 25, 2026 21:03
1c9aa30 to
cceeb22
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 25, 2026 21:04
666048e to
0b71de1
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 25, 2026 21:10
0b71de1 to
553fbbf
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 25, 2026 21:14
cceeb22 to
da9ca32
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 25, 2026 21:14
553fbbf to
e5f27fd
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 25, 2026 22:51
e5aa299 to
85368ef
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 25, 2026 22:51
cb51038 to
11a56c8
Compare
chanceaclark
marked this pull request as ready for review
June 25, 2026 22:53
jairo-bc
approved these changes
Jun 26, 2026
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 26, 2026 16:15
85368ef to
39f5903
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 26, 2026 16:15
11a56c8 to
2957611
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 26, 2026 18:29
39f5903 to
1ed7139
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 26, 2026 18:29
1644903 to
ecded38
Compare
chanceaclark
force-pushed
the
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
branch
from
June 26, 2026 19:00
1ed7139 to
127c5ac
Compare
Base automatically changed from
chancellorclark/ltrac-958-upgrade-whole-tree-index-staging
to
alpha
June 26, 2026 19:00
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
chanceaclark
force-pushed
the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
from
June 26, 2026 19:01
c815131 to
4d381b2
Compare
chanceaclark
deleted the
chancellorclark/ltrac-959-upgrade-project-resolution-download
branch
June 26, 2026 19:01
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.
Jira: TRAC-926
PR 3 of 4 for
catalyst upgrade(LTRAC-956). Stacks on TRAC-925 (#3064).What/Why?
Adds project layout detection, tarball download/cache, and base ref resolution — the infrastructure the CLI command action (PR 4) builds on.
Non-obvious decisions:
resolveProject: probes<gitRoot>/core → <gitRoot> → <cwd>/core → <cwd>in that order, preferring thepackage.jsonthat already hascatalyst.ref. AJSON.parseguard is added so a malformed candidate file is skipped rather than crashing the whole probe.downloadCore: cache key usesrepo__ref(double underscore) sobigcommerce/catalystand a hypotheticalbigcommerce_catalystfork don't collide. Moving tags (latest,canary,alpha) are never cached. Thecore/extraction has a flat-tarball fallback (insurance — all current tags are monorepo-shaped).resolveBaseRef: theconfirm()error is swallowed (.catch(() => false)) so a closed TTY in CI fails cleanly with the--fromhint rather than a stack trace. Always pass--yesin non-interactive environments.Testing
pnpm test upgrade.spec upgrade.actionupgrade.spec.tsadditions:resolveProject(flat, nested, outside-git-repo),resolveBaseRef(catalyst.ref present,--fromwins, inferred under--yes, unknown name defaults to catalyst-core family).upgrade.action.spec.ts(new): action-level tests viaupgrade.parseAsync()with mocked telemetry/logger/spinner. Covers: already-up-to-date short-circuit, dirty worktree rejects, invalid tag 404,--dry-runleaves project unchanged, missing ref with--yes, run-from-core/, dirty +--dry-runproceeds, staged-but-uncommitted rejects,--frombypasses prompt,--refmakeswift family.Migration
No user-visible changes yet.