Skip to content

fix(cli): honor pipeline package-manager pin flags - #14637

Merged
zkochan merged 1 commit into
mainfrom
fix/pipeline-pin-flags
Sep 6, 2026
Merged

zkochan merged 1 commit into
mainfrom
fix/pipeline-pin-flags

Conversation

@zkochan

@zkochan zkochan commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Fix pnpm pipeline ignoring --lockfile-dir, --offline, and --prefer-offline during package-manager pinning by passing its install options through the existing PinFlags::of_install helper.

This addresses the main-branch CI failure. The existing pin_flags_cover_every_command_declaring_them regression test catches the omission; all 31 pre-command tests pass with the fix.

Clarify in AGENTS.md that bug fixes for unreleased features do not need changesets. Pipeline is unreleased, so this PR has no changeset. This bug only affects the Rust v12 CLI; v11 has no pipeline command.

Validation: just ready passed (formatting, workspace compile checks, all 10,461 Rust tests, and Clippy).

Squash Commit Body

Route pipeline's install options through the shared pin flag extraction so
package-manager pinning honors the requested lockfile directory and offline
settings. The existing command-coverage regression test catches this omission.

Document the changeset exemption for bug fixes in unreleased features for
both TypeScript and Rust products.

Checklist

  • New features are implemented only in the Rust pnpm v12 CLI. Bug fixes
    are implemented in every affected version.
  • Updated the documentation if needed.

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. Autofix is disabled.

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 74965b01-b718-4f8b-b9b9-81e73e3db59d

📥 Commits

Reviewing files that changed from the base of the PR and between 2d51946 and 4af7f76.

📒 Files selected for processing (2)
  • AGENTS.md
  • pnpm/crates/cli/src/cli_args/pre_command.rs

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.

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Honor pipeline package-manager pin flags

🐞 Bug fix 📝 Documentation 🕐 Less than 10 minutes

Grey Divider

AI Description

• Honor pipeline lockfile and offline flags during package-manager pinning.
• Reuse shared install flag extraction for consistent command behavior.
• Document changeset exemptions for fixes to unreleased TypeScript and Rust features.
Diagram

graph TD
    A["Pipeline CLI"] --> B["Install Options"] --> C["PinFlags Extractor"] --> D["Runtime Config"] --> E["Package Pinning"]
Loading
High-Level Assessment

The PR uses the appropriate existing abstraction: mapping Pipeline to PinFlags::of_install keeps behavior aligned with other install-family commands and lets the command-coverage regression test prevent future omissions. Duplicating flag extraction inside the pipeline path would add unnecessary divergence.

Files changed (2) +5 / -2

Bug fix (1) +1 / -0
pre_command.rsExtract package-manager pin flags from pipeline options +1/-0

Extract package-manager pin flags from pipeline options

• Routes Pipeline install arguments through PinFlags::of_install so lockfile directory, offline, and prefer-offline overrides affect package-manager pinning. The existing command-coverage regression test now recognizes Pipeline as correctly handling its declared flags.

pnpm/crates/cli/src/cli_args/pre_command.rs

Documentation (1) +4 / -2
AGENTS.mdClarify changeset exemptions for unreleased features +4/-2

Clarify changeset exemptions for unreleased features

• Documents that bug fixes for unreleased TypeScript or Rust features do not require changesets. Updates the Rust release guidance to reflect the same exemption.

AGENTS.md

@zkochan
zkochan merged commit b444394 into main Sep 6, 2026
31 checks passed
@zkochan
zkochan deleted the fix/pipeline-pin-flags branch September 6, 2026 23:22
@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 show, collapse, or hide each part of a finding: code, evidence, and all

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.

@greptile-apps

greptile-apps Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Confidence Score: 4/5

The code fix appears correct, but the contradictory changeset policy must be reconciled before merging.

Pipeline exposes the same install arguments consumed by the shared helper, so the behavioral fix is sound; the remaining issue is that the new exemption permits omitting release metadata where the repository review framework still requires it.

Files Needing Attention: AGENTS.md

Reviews (1): Last reviewed commit: "fix(cli): honor pipeline package-manager..." | Re-trigger Greptile

Comment thread AGENTS.md
## Changesets

If your changes affect published packages, you MUST create a changeset file in the `.changeset` directory (`pnpm change` records one interactively; `pnpm change status` shows the pending release plan). The file describes the change and specifies the affected packages with their pending version bump types: patch, minor, or major. Write the description for pnpm users and keep it concise — it becomes a release note. Implementation rationale belongs in the commit message, not the changeset. The bare `pnpm version -r` consumes the pending changesets at release time; there is no separate `@changesets/cli` dependency.
Bug fixes for features that have not yet been released do not need a changeset. This exemption applies to both TypeScript and Rust products. Check whether the affected feature has shipped before adding a changeset for a bug fix.

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.

P2 Conflicting changeset requirements

This exemption says that bug fixes for unreleased features do not need changesets, but the repository review framework requires a changeset for every user-visible pacquet change and exempts only test-only or internal changes. The root guide requires contributors to follow that framework, so these instructions now conflict and can cause user-visible fixes such as this one to omit release metadata. Reconcile the review guide with this policy change or add the required pacquet changeset before merging.

Context Used: CLAUDE.md (source)

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Micro-Benchmark Results

Linux

group                                            main                                   pr
-----                                            ----                                   --
lockfile/parse_pnpm_lock                         1.01     11.9±0.02ms    31.5 MB/sec    1.00     11.8±0.04ms    31.7 MB/sec
packument/parse                                  1.00     37.4±0.13µs  1774.8 MB/sec    1.00     37.3±0.84µs  1776.0 MB/sec
tarball/download_dependency                      1.00      3.9±0.10ms  1098.3 KB/sec    1.01      4.0±0.08ms  1092.3 KB/sec
tarball_batch/cold_store_many_medium_tarballs    1.00    178.3±3.01ms 89.8 KElem/sec    1.00    178.4±1.63ms 89.7 KElem/sec
workspace_resolution/hoist_heavy                 1.04    241.7±1.06ms        ? ?/sec    1.00    232.8±0.86ms        ? ?/sec
workspace_sort/chained_projects                  1.05     13.7±0.71ms        ? ?/sec    1.00     13.1±1.21ms        ? ?/sec

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.32%. Comparing base (39dcf56) to head (4af7f76).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14637      +/-   ##
==========================================
+ Coverage   89.28%   89.32%   +0.03%     
==========================================
  Files         765      765              
  Lines      137992   137887     -105     
==========================================
- Hits       123210   123167      -43     
+ Misses      14782    14720      -62     

☔ 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants