[PM Fixer] Add pnpm 12.x case to TestPnpmVersionValidation - #553
Conversation
TestPnpmVersionValidation already asserts pnpm 10.x and 11.x meet minSupportedPnpmVersion's floor (documented as having no upper bound). pnpm 12.x is now the actual latest tested version (jfrog/jfrog-cli#3692 fixed a real pnpm 12 compatibility bug in a test helper), so extend the same pattern to it explicitly for reviewer clarity, even though it's implied by the existing no-upper-bound cases.
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe pnpm test suite adds validation coverage for version 12.2.1. The case confirms that the version meets the minimum supported pnpm version without an upper-version restriction. Changespnpm version validation
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This test-only change confirms pnpm 12.2.1 satisfies the existing minimum-version rule and is ready to merge. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Closing - this was based on a misread of what was actually needed. The real gap is jfrog-cli's own CI test matrix (hardcoded to pnpm 10/11, never testing 12 on regular PR merges), not this floor-check test, which is redundant with the existing 'no upper bound' pnpm11 case. Fixed properly in jfrog/jfrog-cli#3705. |
Summary
TestPnpmVersionValidationalready asserts pnpm 10.x and 11.x meetminSupportedPnpmVersion's floor, explicitly documenting "no upper bound" for the 11.x case. pnpm 12.x is now the actual latest tested version (jfrog/jfrog-cli#3692 fixed a real pnpm 12 compatibility bug), so this extends the same explicit pattern to 12.x.Fix
Added a
pnpm12 := version.NewVersion("12.2.1")case toTestPnpmVersionValidation, mirroring the existing pnpm10/pnpm11 cases exactly.Compatibility impact
Test-only change. No production code touched, no exported symbols changed.
Test plan
go test ./artifactory/commands/pnpm/... -run TestPnpmVersionValidation -v— passesgo test ./artifactory/commands/pnpm/...(full package) — passesgofmt -l,go vet ./...,go build ./...— all cleanOpened by PM Compat Fixer follow-up, prompted by review of jfrog/jfrog-cli#3692.
Summary by CodeRabbit