Repository navigation
fix(list): monorepo output — one row per package, priority tiers, names never truncated - #34
Merged
Merged
Conversation
…ated Found on supabase/supabase (pnpm, 28 workspaces): - One row per package: workspaces on different versions share it (`5.0.52, 7.0.59 → 7.0.128`, `2 versions in 3 workspaces`), usage counted once. JSON `packages[].versions`. - Version drift (different majors across workspaces) is a priority signal, below unsupported and above blocking. - PRIORITIES: Urgent (advisories, deprecations) with a count, then Worth planning collapsed to its count until --all. JSON `priorities[].tier`. - The name column fits the longest name up to 45 characters, then the name gets its own line; narrow terminals drop trailing columns instead of truncating names. - `major ×2` reads `2 majors behind` in list and check. - Compilers and bundlers are tooling even when a script imports them; a major on one shows under the collapsed TOOLING with why. - Group headings keep their target, and a family reaching several majors no longer prints the same label twice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
…inst supabase/supabase at 53a637a (list on a large pnpm monorepo) and documenso/documenso at 80823ed (check pino, #31). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
A synthetic fixture installs invented packages at different versions across three workspaces (fixtures/repos/list-accuracy/version-drift). Against it: - list --json, the terminal and the HTML report: one row per package, with versions[]; - check --group: each member checked once; - plan: one row per installed version, as before; - telemetry: each package counted once; - smoke: the list assertions move to check-output.mjs (listReportFailures), so the container and a fast test run the same check, now also one entry per package and a coherent versions[]. The GitHub Action never reads list's report (it takes names from the PR), so it is unaffected. The changeset lists the JSON shape change under "Breaking for JSON consumers", with how to expand entries back to one per installed version. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
7 tasks done
lucasbraum
added a commit
that referenced
this pull request
Oct 7, 2026
… writing to /repo (#40) ## What and why Two tests failed in a cloud container, which runs as root with `NODE_PATH` set, but not in CI. **CI on `main` is green.** The latest run on 3e7f744 (#37) passed, and the last red run on `main` was 089f7b9 (#34), already followed by green runs. So no merge let a red `main` through. Both failures were environment-dependent: CI passes them by accident rather than by design. 1. **`fix.test.ts` › checks workspace source under its own resolution mode** — a code bug. `resolveCompiler` loaded `typescript` with `createRequire(...)`, and Node's resolution also searches `NODE_PATH` and the global folders. In the container `NODE_PATH` holds a global TypeScript 6.0.2, so a repository without its own compiler was verified with TS 6, which reports TS5107 (`moduleResolution: node10` deprecated). In CI `NODE_PATH` is unset and the bundled 5.9 compiler is used, so the test passes there. The same thing would happen to any user with a global TypeScript on `NODE_PATH`. Now `consumerCompilerDir` takes `node_modules/typescript` from the repository or the nearest ancestor that has one, else the bundled compiler. 2. **`cli.test.ts` › uptide verify › ends with the summary and the next commands** — a test bug. `fixReport()` set `prBody: '/repo/.uptide/pr-body.md'`, and `fix` writes `report.html` next to the stored run. On a CI runner (non-root) creating `/repo` fails silently, so the engine's `html` path survives. As root the write succeeds, replaces `html`, the assertion fails, and `/repo/.uptide/` is left behind. Now each report gets a fresh temporary directory. The test asserts the absolute path of its own stored run outside the working directory. One formatter assertion now matches its line regardless of column padding, since the padding depends on path lengths. No test was skipped. ## How it was verified - New `compiler.test.ts` cases: a workspace finds the root's `node_modules/typescript`; a repository without TypeScript gets the bundled compiler. The second case fails on the old `resolveCompiler` in the container (where it got the global 6.0.2) and passes now. - In the container, which has `NODE_PATH` and runs as root: core 852 passed (3 files skipped, as before), CLI 343/343, `pnpm lint` and `pnpm typecheck` clean. `/repo/.uptide/report.html` kept its old timestamp across the CLI run, so nothing writes there anymore. ## Checklist - [x] Tests for the change (the compiler fix starts with a test that fails) - [x] `pnpm lint && pnpm typecheck && pnpm test` pass - [x] README and docs updated if behavior changed (no doc describes compiler resolution beyond "the consumer's TypeScript", which is now what it does) - [x] Changeset added (`.changeset/consumer-compiler-only.md`, patch) - [x] No new dependency - [x] No private code, names or paths in fixtures, tests or docs - [x] The rules in CONTRIBUTING.md ("Rules that do not bend") still hold 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01B2T8GmEVnZwfNrugajEMqi --- _Generated by [Claude Code](https://claude.ai/code/session_01B2T8GmEVnZwfNrugajEMqi)_ --------- Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[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.
Monorepo fixes for
list, found on supabase/supabase at53a637a(pnpm, 28 workspaces). Supabase is a public repo, so its real output is pasted below. Builds on #33.What changed
1. Names are never truncated. The name column fits the longest name, up to 45 characters. A longer name gets its own line, and the row continues under it. On a narrow terminal, trailing columns are dropped instead of names being cut, and the same rule applies to
check, which shares the table code. The HTML report never truncated names. Group headings always keep their target and move the command to the next line when the line is too long. On supabase,@tanstack/*previously lost both its target and its command.2. One row per package. When workspaces are on different versions, the package still gets one row:
ai 5.0.52, 7.0.59 → 7.0.128 … 2 versions in 2 workspaces. Usage is counted once across the repo.1.6.0 … 4.2.0 → 4.5.0), and the note gives the count.versions: [{ version, workspaces }].currentis the oldest outdated version, andchange,majorGapandtierdescribe it.planstill has one row per installed version, so saved check results keep matching.next(15.x and 16.x across 7 workspaces),@next/*,libpg-queryand@ai-sdk/openai.3.
major ×2→2 majors behindinlistandcheck, in the terminal and HTML. JSON keeps the numericmajorGap.4. Compilers and bundlers are tooling.
typescript,@swc/core,esbuild,@babel/core,viteandwebpackcount as tooling even when a script imports them. A major on one of them shows under TOOLING even while the section is collapsed:For
viteandwebpackthe reason readsbundler major: check build config.5. PRIORITIES has two tiers.
--all.JSON gets
priorities[].tier. The HTML report shows Urgent open and Worth planning in a collapsed<details>.6. Corpus. The repo had no corpus list, so this PR adds
fixtures/corpus.json. It lists public repos at pinned commits: supabase at53a637a359ece4777e699292b3bb83421f1d63adforlist, and documenso at80823edforcheck pino(from #31).Not requested, fixed along the way:
→ @supabase/* 2 · @supabase/* 0. It now prints the majors alone,→ 2.x · 0.x, as it also does when the per-package label would run past 64 characters.check'smajor ×9also reads9 majors behind, for consistency withlist.supabase/supabase, before → after (
COLUMNS=120)PRIORITIES:
A group: every installed version was a row, and every name was truncated to 12 characters:
Packages:
next,lucide-react,openaiandshikieach had several rows:Totals: 296 → 272 outdated rows (24 duplicate rows merged), 122 → 116 major.
Full output, before
Full output, after
Checks
aiat 5.x and 7.x across 3 workspaces andtypescriptimported by a codegen script, plus unit tests for drift, tiers and security across several installed versions.--all, a build-tool major under collapsed TOOLING, and group labels that collide.8 majors behind.pnpm test: core 849 passed, cli 327 passed. Typecheck and biome are clean.uptideminor, because the JSON shape changes (one entry per package).🤖 Generated with Claude Code