Repository navigation
Closed
pnpm/pnpm
#17150Description
Follow-up to pnpm/pnpm#17030 and pnpm/pnpm#17034, and item 3 of #141.
pnpm/pnpm#17030 added repeat_install_oracle.rs, which checks every gate against a full install across lockfile layouts, linkers, and injected packages. Its pnpm binary is v12 only. pnpm/pnpm#17034 made v11 write the same validation records in the workspace state, so each CLI reuses the records the other wrote. Nothing tests that interop beyond one pinned manifest digest per stack (a_manifest_digest_matches_the_one_pnpm_v11_computes in Rust, manifestDigest() matches the digest pnpm v12 computes in TypeScript).
What to test
Run the oracle scenarios with the steps split between the two CLIs, and compare:
- Mixed writers. Install with one CLI and run the gates with the other, in both directions: the full install, a filtered install, and a filtered command after a pull. A tree one CLI proved must pass the other's run gate, and a stale project must be held by both.
- Same verdict. For each step, both CLIs' run gates (
verifyDepsBeforeRun: error) agree on up to date or outdated. - Record round-trip. A state one CLI wrote, refreshed by the other's passing check, keeps the records of the projects that check did not vouch for (
configDependenciesand the shared inputs carried). - Signatures. On Windows both record the NTFS change time as
ctimeNs. A signature one CLI recorded is trusted by the other, so neither reads the lockfile again. - Lockfiles and requests. As item 3 of Test shortcuts against the full path: equivalence, convergence, and v11/v12 differential harnesses #141 proposes, compare the wanted and current lockfiles a v11 and a v12 install write for the same tree, not only the node_modules layout
pnpm_compatibility.rscompares.
Harness
pnpm_compatibility.rsruns whateverpnpmis onPATH, usually a released v11, so it cannot catch a parity break in the v11 source. The differential should run this repository's bundle (pnpm11/pnpm/dist/pnpm.mjs), for example through an environment variable that CI sets after building it.- Both suites need the same registry. The Rust suite's mock registry and the v11 e2e setup both run on pnpr.
- Known differences to encode rather than fail on:
- v11 writes no records under
sharedWorkspaceLockfile: false. - v12 refuses its install fast path when a dedicated lockfile injects a workspace package (Read injected dependencies from the lockfile and stop inverting the resolver in the frozen check #145).
- With
mergeGitBranchLockfiles, v12 refuses its fast path, while v11 holds every project while a branch lockfile waits to be merged.
- v11 writes no records under
Written by an agent (Claude Code, claude-opus-5-5).
Metadata
Metadata
Assignees
Labels
No labels
Activity
zkochan commentedon Oct 20, 2026
Opened pnpm/pnpm#17150 covering the full scope of this issue: extended
repeat_install_oracle.rsto run all scenarios acrossV12,V11, andMixedv11↔v12 drivers (plusci_and_auto_dedupe_gate_converges_across_v11_and_v12andverify_deps_install_forwards_lockfile_dir_and_converges) and enabledrepeat_install_oraclein the CIconvergencejob alongsidepeer_convergence.Generated by Antigravity (Claude Opus 4.6)
fix: finish repeat-install and verifyDepsBeforeRun unification across…
fix: finish repeat-install and verifyDepsBeforeRun unification across…
fix: finish repeat-install and verifyDepsBeforeRun unification across…
fix: finish repeat-install and verifyDepsBeforeRun unification across…
fix: finish repeat-install and verifyDepsBeforeRun unification across…
test: expand equivalence, convergence, and v11/v12 differential harne…