Skip to content

test: fix convergence harness CI settings and bundle paths - #17172

Merged
zkochan merged 1 commit into
mainfrom
fix-17150-convergence-harness
Oct 20, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix-17150-convergence-harness

Conversation

@zkochan

@zkochan zkochan commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Follow up on the test-harness suggestions from #17150, which merged while this commit's push hooks were running.

Resolve relative PNPM_V11_BUNDLE paths before the convergence harnesses switch to temporary project directories. Explicitly enable pnpm's CI setting in the CI scenario, overriding the shared command helper's non-CI default.

Validation: the CI/auto-dedupe scenario and the satisfied-peer convergence scenario pass through v11 and v12 with a relative bundle path. Rust workspace checks and pre-push checks pass.

Squash Commit Body

Share bundle-path resolution between the repeat-install and peer-convergence
harnesses so child working directories do not change the meaning of
PNPM_V11_BUNDLE.

The command environment helper sets PNPM_CONFIG_CI=false. Override it in
the explicit CI scenario as well as setting CI=true, so that scenario
exercises pnpm's CI configuration.

Follow-up to pnpm/pnpm#17150.

Checklist

  • Checked the review suggestions against the current implementation.
  • Added or updated tests.

Written by an agent (Codex, GPT-6).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Tests
    • Improved test support for locating and using the pnpm v11 bundle through an absolute path.
    • v11-specific checks now run only when the bundle is available.
    • Updated CI test execution to explicitly enable CI configuration behavior.
    • Improved compatibility for running installation tests both inside and outside CI environments.

@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: pnpm/pnpm/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec56cb79-5377-4472-af51-71c1d2f78367
📥 Commits

Reviewing files that changed from the base of the PR and between 7164fc7 and a87dd11.

📒 Files selected for processing: 3
  • pnpm/crates/cli/tests/suite/_utils/mod.rs
  • pnpm/crates/cli/tests/suite/peer_convergence/harness.rs
  • pnpm/crates/cli/tests/suite/repeat_install_oracle.rs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

📝 Walkthrough

The test suite now resolves the V11 bundle path through a shared helper. Peer convergence and repeat-install checks use the helper, and CI command execution sets PNPM_CONFIG_CI=true.

Changes: V11 bundle path handling

Layer / File(s) Summary
Resolve the V11 bundle path
pnpm/crates/cli/tests/suite/_utils/mod.rs
The new helper returns None when PNPM_V11_BUNDLE is unset. Otherwise, it resolves the path to an absolute path and returns it as an OsString.
Use the shared path helper
pnpm/crates/cli/tests/suite/peer_convergence/harness.rs, pnpm/crates/cli/tests/suite/repeat_install_oracle.rs
The V11 checks use the helper to locate the bundle. CI command execution also sets PNPM_CONFIG_CI to true.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to a87dd

No concrete merge-blocking risk was found in the changed harness configuration.

✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                    pr
-----                                            ----                                    --
lockfile/parse_pnpm_lock                         1.09     17.9±1.43ms    21.0 MB/sec     1.00     16.4±0.90ms    22.8 MB/sec
packument/parse                                  1.20    62.0±11.50µs  1070.7 MB/sec     1.00     51.8±3.60µs  1280.8 MB/sec
tarball/download_dependency                      1.43  1537.2±220.03µs     2.8 MB/sec    1.00  1075.3±201.76µs     3.9 MB/sec
tarball_batch/cold_store_many_medium_tarballs    1.32   331.1±17.85ms 48.3 KElem/sec     1.00   251.7±28.64ms 63.6 KElem/sec
version_pick/repeated_ranges_file                1.08      5.5±0.32ms  5.6 KElem/sec     1.00      5.1±0.21ms  6.1 KElem/sec
version_pick/repeated_ranges_raw                 1.05      5.4±0.33ms  5.8 KElem/sec     1.00      5.2±0.19ms  6.0 KElem/sec
workspace_resolution/hoist_heavy                 1.00   373.4±40.29ms        ? ?/sec     1.01   378.7±46.94ms        ? ?/sec
workspace_sort/chained_projects                  1.00     20.8±3.49ms        ? ?/sec     1.21     25.3±3.46ms        ? ?/sec

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.48%. Comparing base (7164fc7) to head (a87dd11).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #17172   +/-   ##
=======================================
  Coverage   92.47%   92.48%           
=======================================
  Files        1852     1852           
  Lines      238278   238278           
=======================================
+ Hits       220350   220364   +14     
+ Misses      17928    17914   -14     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zkochan

zkochan commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

Validation status for a87dd11:

  • Both targeted convergence scenarios passed locally through v11 and v12 with a relative bundle path. Workspace Rust checks and all pre-push hooks passed.
  • 29 CI checks passed, including Linux tests, the full v11/v12 convergence job, coverage, WebContainers, and benchmark comparison. Four checks were skipped.
  • Windows Rust tests are still running.
  • Both macOS jobs have been queued since 18:36 UTC with no runner assigned (blacksmith-12vcpu-macos-latest).

No check has failed. The branch is mergeable and the working tree is clean. Keeping this PR in draft until the remaining checks finish; marking it ready and completing its review round remain pending.


Written by an agent (Codex, GPT-6).

@zkochan
zkochan marked this pull request as ready for review October 20, 2026 23:13
Copilot AI balanced review requested due to automatic review settings October 20, 2026 23:13

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your trial has ended. Reactivate Greptile to resume code reviews.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Fix convergence harness bundle paths and CI configuration

🐞 Bug fix 🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Resolve relative v11 bundle paths before convergence tests enter temporary workspaces.
• Explicitly enable pnpm’s CI configuration so the CI scenario tests CI behavior.
Diagram

graph TD
  Bundle["Bundle environment"] --> Resolver["Path resolver"] --> Peer["Peer convergence"] --> Cli["v11 and v12"]
  Resolver --> Repeat["Repeat install"] --> Cli
  Ci["CI config override"] --> Repeat
Loading
High-Level Assessment

The shared resolver is appropriate for the two harnesses, and overriding CI only in the CI scenario preserves the command helper’s non-CI default. Changing that default or duplicating path resolution would broaden the change without benefiting these tests.

Files changed (3) +14 / -9

Bug fix (3) +14 / -9
mod.rsAdd shared v11 bundle-path resolver +8/-1

Add shared v11 bundle-path resolver

• Adds a helper that reads PNPM_V11_BUNDLE and converts it to an absolute path while the test is still in its original working directory.

pnpm/crates/cli/tests/suite/_utils/mod.rs

harness.rsUse resolved bundle path for peer convergence +2/-2

Use resolved bundle path for peer convergence

• Uses the shared path helper before running the optional v11 convergence checks in temporary workspaces.

pnpm/crates/cli/tests/suite/peer_convergence/harness.rs

repeat_install_oracle.rsCorrect bundle paths and CI setting in repeat-install tests +4/-6

Correct bundle paths and CI setting in repeat-install tests

• Uses the shared resolver for v11 and mixed-driver runs, including the CI scenario. Sets PNPM_CONFIG_CI=true alongside CI=true so the scenario overrides the command helper’s non-CI default.

pnpm/crates/cli/tests/suite/repeat_install_oracle.rs

@qodo-code-review

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can open the rule or relationship behind a finding in one click

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown

PR Code Suggestions ✨

Warning

/improve is deprecated. Use /agentic_review instead (removal date not yet scheduled).

No code suggestions found for the PR.

@github-actions github-actions Bot added the reviewed: coderabbit CodeRabbit submitted an approving review label Oct 20, 2026
@zkochan
zkochan merged commit 99958f3 into main Oct 20, 2026
40 checks passed
@zkochan
zkochan deleted the fix-17150-convergence-harness branch October 20, 2026 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed: coderabbit CodeRabbit submitted an approving review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants