Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (43)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughThe root package and package manifests now specify version 1.2.0 instead of 1.1.1. The ChangesRelease metadata
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~2 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The release metadata is consistent with the documented version-selection and propagation flow; no merge-blocking issue is identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 3 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Project | vltpkg |
| Branch | release |
| Testbed | ubuntu-latest |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result milliseconds (ms) (Result Δ%) | Upper Boundary milliseconds (ms) (Limit %) |
|---|---|---|---|
| vlt install: vue & cache-lockfile | 📈 view plot 🚷 view threshold | 1,045.52 ms(-18.82%)Baseline: 1,287.84 ms | 1,416.62 ms (73.80%) |
| vlt install: vue & cache-lockfile-node-modules | 📈 view plot 🚷 view threshold | 383.74 ms(+1.72%)Baseline: 377.26 ms | 414.99 ms (92.47%) |
| vlt install: vue & clean | 📈 view plot 🚷 view threshold | 9,096.26 ms(-18.22%)Baseline: 11,122.68 ms | 12,234.95 ms (74.35%) |
| vlt install: vue & lockfile | 📈 view plot 🚷 view threshold | 3,631.75 ms(-0.10%)Baseline: 3,635.22 ms | 3,998.74 ms (90.82%) |
…atrix] (#1897) ## What `Test - macOS - 22.x` has been red on every `release` PR run since Sep 23 (#1894 is the fifth in a row) and on 2 of the last 5 pushes to `main`, always with the same shape: ``` # error thrown in teardown not ok N - ENOTEMPTY: directory not empty, rmdir '…/.tap/fixtures/<subtest>/registry-client' ``` A different subtest loses the race each time — 7 distinct ones so far across `package-info/test/{index,capabilities}.ts` and `registry-client/test/{index,revalidate-entry}.ts`, once on Ubuntu too. It is not a macOS regression and not the release bump: `release` is `main` + version strings, and the passing `main` run and the failing #1894 run had the same runner image (`macos-26-arm64` 20260907.0351.1), Node 22.23.3, vlt and lockfile. ## Why `RegistryClient.request()` hands the response to `cache.set()`, which writes to disk in the background (`mkdir` → `writeFile tmp` → `rename`, tracked in `Cache#pending`; `cache.promise()` awaits it). The subtest returns without flushing, `@tapjs/fixture`'s cleanup runs `rimraf(dir)` — native `fs.rm` with `maxRetries: 0` — and when a write lands between its `readdir` and the final `rmdir`, the `rmdir` throws `ENOTEMPTY`. tap rethrows EOF-hook errors onto the parent test, which is where the duplicated subtests and off-by-N `movingRequests` assertions further down the log come from. The slow disks on the arm64 macOS runners just make the interleaving common. #1593 fixed the same thing in the integrity tests in April. #1876 added ~10 subtests that each `client(t)` → fetch → return without flushing, and never ran on macOS before merging (macOS is excluded from the matrix on ordinary PRs). ## The non-obvious part Checked against the repo's tap (`@tapjs/core` 4.5.9, `@tapjs/fixture` / `@tapjs/after` / `@tapjs/after-each` 4.3.11): both `t.testdir()` and `t.teardown()` wrap `t.onEOF` by calling the previous hook first, so hooks run in **registration order**. A `t.teardown()` added after `t.testdir()` runs after the dir is already gone, and so does a parent `t.afterEach()`. That is why `registry-client/test/index.ts`'s `afterEach` flush ("always wait for the cache to resolve before trying to clean up") was not protecting anything — its `forceRevalidate bypasses fresh cache entries` hit the same `ENOTEMPTY` on the v1.1.1 release PR on Sep 20. ## Changes - `package-info/test/index.ts` — the `?stable` block's `client(t)` helper hooks the flush *before* `t.testdir()`, covering all of its subtests at once. - `package-info/test/capabilities.ts` — same helper shape; `client()` now takes the test. The shared-cache test flushes its second client explicitly. - `registry-client/test/index.ts` — the `afterEach` flush moves into a `t.teardown()` hooked before `t.testdir()` in `beforeEach`, so it actually runs first. - `registry-client/test/revalidate-entry.ts` — explicit `await rc.cache.promise()` in the one test there that didn't have it. `[ci full-matrix]` in the title so macOS runs on this PR. ## Verified - `tap` for `package-info` (291/291) and `registry-client` (843/843), `tsc --noEmit`, eslint and prettier on the touched files — on Linux. - Hook ordering, with a 3-case tap test against the same tap version: teardown after `testdir()` → dir already removed; teardown before `testdir()` → dir still present; parent `afterEach` → dir already removed. - Not reproduced on macOS locally (this was investigated from a Linux box); the macOS job on this PR is the real check. ## Evidence — macOS job on code that includes #1876 | run | branch | subtest that hit `ENOTEMPTY` | |---|---|---| | 35929530891 | release | stable › an exact version asks for it too | | 35934073950 | main (#1881) | registry-client `revalidate-entry.ts` › re-requests the representation it was given | | 35934257337 | release | stable › selectors a prerelease can answer… › a dist tag | | 36025411630 | main (#1879) | stable › asks optimistically before the document lands | | 36025652117 | release | stable › selectors… › the any range — and Ubuntu: `capabilities.ts` › reset clears the settled document too | | 36043038907 | release | stable › an exact version asks for it too; stable › selectors… › a bare name | | 36054844431 | release (#1894) | stable › packument() answers with every version | macOS: `main` 3 ✓ / 2 ✗, `release` 0 ✓ / 5 ✗. Unblocks #1894 — `release.yml` re-cuts the release branch on the next push to `main`. Co-authored-by: Ruy Adorno <[email protected]>
Release v1.2.0
🚨 Merging this PR will publish these packages 🚨
Compare to v1.1.1
CLI
[email protected](...)@vltpkg/[email protected](...)Workspaces
@vltpkg/[email protected](sha512-diLfHMHgF8/lb...)@vltpkg/[email protected](sha512-HbeAY3hJq2K5M...)@vltpkg/[email protected](sha512-ydPcEloRM8ZRp...)@vltpkg/[email protected](sha512-Ebz3/i8V7CarJ...)@vltpkg/[email protected](sha512-kgLA4mzvJIUHp...)@vltpkg/[email protected](sha512-gCDP2hlrGF9/Y...)@vltpkg/[email protected](sha512-U148LrsVt9AG3...)@vltpkg/[email protected](sha512-3KfNAFRahGcjL...)@vltpkg/[email protected](sha512-auYFmVj62jhVO...)@vltpkg/[email protected](sha512-/OjwLTC17xr+R...)@vltpkg/[email protected](sha512-8DgcBFr/Iwz78...)@vltpkg/[email protected](sha512-OmenVOUI80Ta/...)@vltpkg/[email protected](sha512-bglT0s09s9qfc...)@vltpkg/[email protected](sha512-pEUsPNpE8UD1F...)@vltpkg/[email protected](sha512-IuAAmfesljwZ3...)@vltpkg/[email protected](sha512-umYHAOKcVxkqX...)@vltpkg/[email protected](sha512-TbPWt46AkxDvB...)@vltpkg/[email protected](sha512-W1oEqWrNSZ557...)@vltpkg/[email protected](sha512-t1KFLWUdQWD9o...)@vltpkg/[email protected](sha512-f4Wv4+hdbIahk...)@vltpkg/[email protected](sha512-c8my5aykxWGx3...)@vltpkg/[email protected](sha512-60ojYuHFYwtqd...)@vltpkg/[email protected](sha512-yGzjyFivI8xm0...)@vltpkg/[email protected](sha512-vYe38IdBvFN+5...)@vltpkg/[email protected](sha512-/Blj3NAdDq5oP...)@vltpkg/[email protected](sha512-B7/XoB5XsgIrq...)@vltpkg/[email protected](sha512-zFr+rKmayIhMg...)@vltpkg/[email protected](sha512-LYsrEmljjPsHt...)@vltpkg/[email protected](sha512-rlCLoY9P6JLqC...)@vltpkg/[email protected](sha512-k5Fu77PBHyxIY...)@vltpkg/[email protected](sha512-3IKO/bJQLoT+A...)@vltpkg/[email protected](sha512-nOc7LQqO5WVzs...)@vltpkg/[email protected](sha512-tUzEGjSxiCgPM...)@vltpkg/[email protected](sha512-tK+EuQ6+mBLVf...)@vltpkg/[email protected](sha512-HTUGD0ub3pic/...)@vltpkg/[email protected](sha512-9+YbOTzb+bjkC...)@vltpkg/[email protected](sha512-jzuuuNdc6fGBt...)@vltpkg/[email protected](sha512-N4p8vKbZRiak2...)@vltpkg/[email protected](sha512-JUn52xdO7ZMuS...)Integrity
Steps to merge:
Summary by CodeRabbit