Skip to content

Test the repeat-install gates across pnpm v11 and v12 with a differential harness #148

Closed
pnpm/pnpm
#17150

Description

@zkochan

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 (configDependencies and 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.rs compares.

Harness

  • pnpm_compatibility.rs runs whatever pnpm is on PATH, 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:

Written by an agent (Claude Code, claude-opus-5-5).

Activity

  1. zkochan commented on Oct 20, 2026

    @zkochan
    MemberAuthor

    Opened pnpm/pnpm#17150 covering the full scope of this issue: extended repeat_install_oracle.rs to run all scenarios across V12, V11, and Mixed v11↔v12 drivers (plus ci_and_auto_dedupe_gate_converges_across_v11_and_v12 and verify_deps_install_forwards_lockfile_dir_and_converges) and enabled repeat_install_oracle in the CI convergence job alongside peer_convergence.


    Generated by Antigravity (Claude Opus 4.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions