Repository navigation
fix(setup): persist GitHub Actions env files - #12841
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds GitHub Actions env-file persistence to ChangesGitHub Actions setup persistence
Estimated code review effort: 4 (Complex) | ~45 minutes Assessment against linked issues
Out-of-scope changes
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
PR Summary by Qodofix(setup): persist PNPM_HOME and bin dir via GitHub Actions env/path files
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
Context used 1. GITHUB_ENV may miss newline
|
|
Code review by qodo was updated up to the latest commit 66cb11a |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
pnpm11/engine/pm/commands/src/setup/setup.ts (1)
141-149: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse async fs APIs instead of
appendFileSync.The handler is already
async; this helper uses synchronousfs.appendFileSync, blocking the event loop unnecessarily during setup.As per coding guidelines, "Use async filesystem APIs and
async/await; run independent work withPromise.allorPromise.any, and hoist invariant work out of loops."♻️ Proposed fix
-function writeGitHubActionsEnvironmentFiles (pnpmHomeDir: string, binDir: string): void { +async function writeGitHubActionsEnvironmentFiles (pnpmHomeDir: string, binDir: string): Promise<void> { const githubEnv = process.env.GITHUB_ENV const githubPath = process.env.GITHUB_PATH if (githubEnv == null || githubPath == null) { return } - fs.appendFileSync(githubEnv, `PNPM_HOME=${pnpmHomeDir}\n`) - fs.appendFileSync(githubPath, `${binDir}\n`) + await Promise.all([ + fs.promises.appendFile(githubEnv, `PNPM_HOME=${pnpmHomeDir}\n`), + fs.promises.appendFile(githubPath, `${binDir}\n`), + ]) }And update the call site:
- writeGitHubActionsEnvironmentFiles(opts.pnpmHomeDir, binDir) + await writeGitHubActionsEnvironmentFiles(opts.pnpmHomeDir, binDir)🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pnpm11/engine/pm/commands/src/setup/setup.ts` around lines 141 - 149, The helper writeGitHubActionsEnvironmentFiles is blocking the event loop by using synchronous fs.appendFileSync even though the surrounding setup flow is async. Update writeGitHubActionsEnvironmentFiles to use the async filesystem API with await, and make sure the caller in setup uses the returned promise appropriately so the environment file writes complete before continuing; keep the existing GITHUB_ENV and GITHUB_PATH checks and preserve the same PNPM_HOME and binDir content being written.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pacquet/crates/cli/src/cli_args/setup.rs`:
- Around line 79-90: `persist_github_actions_environment` should not read
`GITHUB_ENV` and `GITHUB_PATH` from `std::env` internally; pass those optional
paths in as parameters instead and let the caller fetch them once. Update the
`persist_github_actions_environment` flow in `setup.rs` to use the injected
values so the present/absent branches can be tested deterministically,
consistent with the existing `Host`-based DI pattern used by
`default_pnpm_home_dir::<Host>()` and `write_github_actions_environment_files`.
In `@pnpm11/engine/pm/commands/src/setup/setup.ts`:
- Around line 141-149: The writeGitHubActionsEnvironmentFiles helper writes
pnpmHomeDir and binDir directly into GITHUB_ENV and GITHUB_PATH, so reject or
escape any CR/LF characters before appending to avoid injecting extra entries.
Update the writeGitHubActionsEnvironmentFiles function to sanitize both values
before fs.appendFileSync, and add a regression test covering a
newline-containing pnpmHomeDir (and binDir if needed) to verify the unsafe input
is blocked.
---
Nitpick comments:
In `@pnpm11/engine/pm/commands/src/setup/setup.ts`:
- Around line 141-149: The helper writeGitHubActionsEnvironmentFiles is blocking
the event loop by using synchronous fs.appendFileSync even though the
surrounding setup flow is async. Update writeGitHubActionsEnvironmentFiles to
use the async filesystem API with await, and make sure the caller in setup uses
the returned promise appropriately so the environment file writes complete
before continuing; keep the existing GITHUB_ENV and GITHUB_PATH checks and
preserve the same PNPM_HOME and binDir content being written.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: c2bd4edb-2651-416a-83a9-d1d381a78201
📒 Files selected for processing (5)
.changeset/pnpm-setup-github-actions.mdpacquet/crates/cli/src/cli_args/setup.rspacquet/crates/cli/src/cli_args/setup/tests.rspnpm11/engine/pm/commands/src/setup/setup.tspnpm11/engine/pm/commands/test/setup/setup.test.ts
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12841 +/- ##
==========================================
- Coverage 86.91% 86.90% -0.02%
==========================================
Files 528 529 +1
Lines 90605 90730 +125
==========================================
+ Hits 78752 78848 +96
- Misses 11853 11882 +29 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Code review by qodo was updated up to the latest commit 83ba18e |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pacquet/crates/cli/src/cli_args/setup.rs`:
- Around line 99-150: The GitHub Actions environment file writes are currently
coupled in write_github_actions_environment_files, so a failure appending
GITHUB_ENV can prevent GITHUB_PATH from being written. Update
persist_github_actions_environment_to_files and
write_github_actions_environment_files so each target is attempted
independently, handling errors per append_existing_regular_file call instead of
chaining with ?; include the specific path or target name in each warning for
better context. You can use the existing warn::<Reporter> and
validate_github_actions_environment_file_value helpers to locate the affected
flow, and remove the outer single error check once per-file failures are
reported locally.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: d14a3921-d084-4d96-bf5f-83aa181c1276
📒 Files selected for processing (4)
pacquet/crates/cli/src/cli_args/setup.rspacquet/crates/cli/src/cli_args/setup/tests.rspnpm11/engine/pm/commands/src/setup/setup.tspnpm11/engine/pm/commands/test/setup/setup.test.ts
📜 Review details
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
**/*.{ts,tsx}: Use Standard Style with trailing commas in TypeScript code.
Prefer functions over classes in TypeScript code.
Declare functions after they are used in TypeScript code, relying on hoisting.
Keep TypeScript functions to no more than two or three arguments; use a single options object when more parameters are needed.
Use the import orderfs/pathstandard libraries first, then external dependencies in alphabetical order, then relative imports.
ThrowPnpmErrorfor user-reachable errors; use plainErrorfor programmer errors, type-guard failures, and unreachable states. Catch only specific expected errors, never swallow errors, and include context such as offending paths in error messages.
Use existing project terminology in names, keep function names verb-driven, and avoid generic or invented names.
Reuse existing repository libraries and shared utilities instead of hand-rolling logic or adding duplicate dependencies.
Prefer plain string operations over custom regular expressions; use the existing parser-combinator pattern when structured parsing with backtracking is required.
Keep shared infrastructure dependencies at the appropriate level, with shared infrastructure such as the logger treated as a peer dependency.
Pass configurable values through@pnpm/configand command options, avoid hardcoding them, and have command handlers return data rather than printing directly when possible.
Use async filesystem APIs andasync/await; run independent work withPromise.allorPromise.any, and hoist invariant work out of loops.
Files:
pnpm11/engine/pm/commands/test/setup/setup.test.tspnpm11/engine/pm/commands/src/setup/setup.ts
**/*.test.{ts,tsx}
📄 CodeRabbit inference engine (AGENTS.md)
In Jest tests, do not use
instanceof Errorfor caught error checks; useutil.types.isNativeError()instead.
Files:
pnpm11/engine/pm/commands/test/setup/setup.test.ts
🧠 Learnings (13)
📚 Learning: 2026-05-14T09:04:00.133Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 11622
File: resolving/npm-resolver/test/publishedBy.test.ts:350-354
Timestamp: 2026-05-14T09:04:00.133Z
Learning: In the pnpm/pnpm repository, ESLint is the authoritative style linter. Do not raise review findings for missing trailing commas in multiline function calls (e.g., `fs.writeFileSync(...)`) when this repo’s ESLint configuration does not report them and lint passes. Prefer deferring to the ESLint results for this specific trailing-comma rule rather than enforcing it manually in code review.
Applied to files:
pnpm11/engine/pm/commands/test/setup/setup.test.tspnpm11/engine/pm/commands/src/setup/setup.ts
📚 Learning: 2026-06-05T13:47:05.929Z
Learnt from: vsumner
Repo: pnpm/pnpm PR: 12190
File: installing/deps-installer/test/install/frozenStore.ts:2-17
Timestamp: 2026-06-05T13:47:05.929Z
Learning: In the pnpm/pnpm repository, the shared Jest preset keeps `injectGlobals` at its default (`true`), so `test` and `expect` are available as Jest globals. Therefore, reviewers should not flag (or treat as TypeScript/compilation errors) missing `import { test, expect } from 'jest/globals'` when a test file uses `test`/`expect` without importing them. Importing from `jest/globals` may still be used for consistency with sibling files, but it is not required for execution in this repo unless a Jest preset is explicitly configured with `injectGlobals: false`.
Applied to files:
pnpm11/engine/pm/commands/test/setup/setup.test.ts
📚 Learning: 2026-06-05T13:47:26.046Z
Learnt from: vsumner
Repo: pnpm/pnpm PR: 12190
File: installing/deps-installer/src/install/index.ts:2337-2343
Timestamp: 2026-06-05T13:47:26.046Z
Learning: In the pnpm/pnpm codebase, `PnpmError` automatically prefixes `err.code` with `ERR_PNPM_` when you pass a code that does not already start with `ERR_PNPM_` (it normalizes `this.code` via `code.startsWith('ERR_PNPM_') ? code : `ERR_PNPM_${code}``). Therefore, during code review you should NOT flag `new PnpmError(...)` call sites for passing a bare error code (e.g., `new PnpmError('FROZEN_STORE_INCOMPATIBLE_WITH_PNPR', ...)`); the resulting `err.code` will still be `ERR_PNPM_FROZEN_STORE_INCOMPATIBLE_WITH_PNPR`.
Applied to files:
pnpm11/engine/pm/commands/test/setup/setup.test.tspnpm11/engine/pm/commands/src/setup/setup.ts
📚 Learning: 2026-05-20T19:40:55.051Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 11774
File: pacquet/crates/resolving-deps-resolver/src/resolve_peers.rs:0-0
Timestamp: 2026-05-20T19:40:55.051Z
Learning: In the pacquet Rust code, ensure the semver implementation uses the `node-semver` crate (not `nodejs-semver`). `node-semver`’s public API does not include a `satisfies_with_prerelease`-style method; prerelease-tolerant matching should be implemented inline by first calling `Range::satisfies`, and when it rejects a prerelease version, retry matching against a stripped `MAJOR.MINOR.PATCH` base of the prerelease version.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-05-22T00:08:44.646Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 11837
File: pacquet/crates/resolving-npm-resolver/src/pick_package.rs:33-51
Timestamp: 2026-05-22T00:08:44.646Z
Learning: In the pnpm/pnpm repo’s pacquet Rust crates, do not flag Unicode ellipsis characters (U+2026, `…`) in Rust doc comments (`///` / `/** */`) as a lint violation. The pacquet crate’s `dylint.toml` only enables `perfectionist::derive_ordering`, and the Dylint `unicode-ellipsis` rule is not enabled for this project—so `…` in doc comments is an intentional, repo-consistent style.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-05-20T23:07:58.444Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 11784
File: pacquet/crates/resolving-deps-resolver/src/hoist_peers.rs:120-133
Timestamp: 2026-05-20T23:07:58.444Z
Learning: When reviewing code in this pacquet Rust port, follow the upstream pnpm compatibility rule: only match pnpm’s behavior exactly. Do not propose review changes that intentionally deviate from pnpm’s documented/observed behavior, even if pnpm appears buggy. If you identify a real bug in pnpm behavior, the review should prioritize fixing it upstream in pnpm first, and avoid implementing a pnpm-behavior workaround here unless the same fix has already landed upstream.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-06-06T18:58:37.156Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 12243
File: pacquet/crates/package-manager/src/install_package_by_snapshot.rs:319-322
Timestamp: 2026-06-06T18:58:37.156Z
Learning: When reviewing Rust code, do not assume `matches!(expr, Pattern(_))` will move out of `expr` if `Pattern(_)` contains no by-value bindings. `matches!` desugars to a `match` that auto-borrows the scrutinee for discrimination, so even if `expr` is a non-`Copy` value behind a shared reference (e.g., `&T`), the macro should not move-out of the borrowed data purely due to `matches!`. Treat `matches!(&expr, Pattern(_))` as a readability/clarity improvement, not a correctness requirement. Only flag potential move-out-of-borrow risks when the pattern includes by-value bindings that would require moving the matched value.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-06-12T20:41:57.558Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 12364
File: pacquet/crates/package-manager/src/install/tests.rs:5717-5717
Timestamp: 2026-06-12T20:41:57.558Z
Learning: In the pnpm/pnpm Rust workspace (toolchain Rust 1.95.0), keep using `std::time::Duration::from_mins(...)` and `std::time::Duration::from_hours(...)` as-is. Do not flag these as invalid or suggest replacing them with `Duration::from_secs(...)`, because Clippy’s `clippy::duration_suboptimal_units` lint is denied by `-D warnings` in CI, and changing to seconds may trigger CI failures.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-06-29T10:07:32.128Z
Learnt from: KSXGitHub
Repo: pnpm/pnpm PR: 12719
File: pacquet/crates/cli/tests/update.rs:56-56
Timestamp: 2026-06-29T10:07:32.128Z
Learning: When reviewing Rust code, do not flag `format!`, `write!`, or `writeln!` calls as having “missing format arguments” if the format string is a raw string literal (e.g., `r#"...{name}..."#`, `br#"...{spec}..."#`) that uses Rust’s captured-format-argument syntax (`{name}`, `{spec}`, etc.). Raw string literals still support captured-format placeholders, so the code is valid as long as those captured names correspond to in-scope variables and compiles.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-06-19T14:23:52.915Z
Learnt from: KSXGitHub
Repo: pnpm/pnpm PR: 12510
File: pacquet/crates/real-hoist/src/tests.rs:1098-1098
Timestamp: 2026-06-19T14:23:52.915Z
Learning: In the pnpm/pnpm Pacquet Rust codebase, treat `dbg!` calls that appear immediately before an `assert!` (but not `assert_eq!`)—especially when checking complex values like `HashMap<..., VecDeque<...>>`—as intentional, per `CODE_STYLE_GUIDE.md` ("When or when not to log during tests?"). Do not flag these `dbg!` statements as debugging noise or recommend removing them. This is meant to ensure that if the test fails, the actual logged value is visible; `just test` runs tests via `cargo nextest run`, which keeps output from passing tests and only surfaces it on failures.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rs
📚 Learning: 2026-06-24T14:12:19.207Z
Learnt from: exidniy
Repo: pnpm/pnpm PR: 12632
File: pacquet/crates/cli/src/cli_args/root.rs:29-31
Timestamp: 2026-06-24T14:12:19.207Z
Learning: In the pacquet Rust CLI, do NOT flag “not supported yet” / unsupported-flag refusals (e.g., update/outdated/root with flags like --global/--workspace/--recursive that are known to be accepted upstream) just because they use raw `miette::miette!(...)` instead of a dedicated `pacquet-diagnostics` error type. There is currently no corresponding “not supported yet” diagnostic in `pacquet-diagnostics` and there is no pnpm-defined error code for these cases, so the established, consistent pattern across all unported-feature refusals is to use `miette::miette!(...)`. If this behavior ever needs to change, it should be done as a cross-command refactor (introducing/using a diagnostics type across all such refusals), not handled piecemeal per command.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-06-25T16:51:27.373Z
Learnt from: zkochan
Repo: pnpm/pnpm PR: 12567
File: pacquet/crates/cli/src/cli_args/pack.rs:111-151
Timestamp: 2026-06-25T16:51:27.373Z
Learning: In the pacquet CLI, `Config::filter` / `Config::filter_prod` may exist for parity but are not (yet) applied to recursive commands. When reviewing selector handling for `run -r`, `exec -r`, and `pack -r`, do not ask for a `pack -r`-only fix. Any support for `--filter` / `--filter-prod` must be implemented as a cross-cutting change in the shared recursive selection path that all `*-r` commands use (the path that iterates workspace projects), so selectors are applied consistently.
Applied to files:
pacquet/crates/cli/src/cli_args/setup/tests.rspacquet/crates/cli/src/cli_args/setup.rs
📚 Learning: 2026-06-26T01:25:59.891Z
Learnt from: spencer17x
Repo: pnpm/pnpm PR: 12661
File: pacquet/crates/cli/src/cli_args/completion.rs:51-65
Timestamp: 2026-06-26T01:25:59.891Z
Learning: In the pnpm/pnpm Pacquet CLI, keep command-specific, user-facing diagnostic enums in their local module under `pacquet/crates/cli/src/cli_args/` (e.g., `pacquet/crates/cli/src/cli_args/*`) rather than moving them into a shared diagnostics crate. When reviewing changes, only suggest moving/introducing a shared diagnostics API (e.g., `pacquet-diagnostics`) if the enum is reused across multiple commands or there is an established shared API pattern that provides a real boundary and avoids duplication.
Applied to files:
pacquet/crates/cli/src/cli_args/setup.rs
🪛 ast-grep (0.44.1)
pnpm11/engine/pm/commands/src/setup/setup.ts
[warning] Importing child_process exposes a command-execution surface; ensure any command/argument built from input is validated, and prefer execFile/spawn with an argument array over exec.
Context: import { spawnSync } from 'node:child_process'
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(detect-child-process-typescript)
[warning] Importing child_process exposes a command-execution surface; ensure any command/argument built from input is validated, and prefer execFile/spawn with an argument array over exec.
Context: import { spawnSync } from 'node:child_process'
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(detect-child-process-typescript)
[warning] Importing child_process exposes a command-execution surface; ensure any command/argument built from input is validated, and prefer execFile/spawn with an argument array over exec.
Context: import { spawnSync } from 'node:child_process'
Note: [CWE-78] Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
(detect-child-process-typescript)
🔇 Additional comments (5)
pacquet/crates/cli/src/cli_args/setup.rs (2)
152-161: LGTM!Also applies to: 17-23, 299-314
46-78: 🔒 Security & PrivacyValidate GitHub Actions env-file values before setup side effects.
The GitHub Actions file-value check should run beforeinstall_cli_globally,create_alias_scripts, andadd_dir_to_env_path; otherwise a malformedPNPM_HOMEmay already mutate the system before setup aborts.pnpm11/engine/pm/commands/src/setup/setup.ts (1)
142-230: LGTM!pnpm11/engine/pm/commands/test/setup/setup.test.ts (1)
41-64: LGTM!Also applies to: 106-212
pacquet/crates/cli/src/cli_args/setup/tests.rs (1)
79-198: LGTM!
|
Code review by qodo was updated up to the latest commit 83ba18e |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. The tables below show mean ± σ; Bencher thresholds on the minimum latency, which is far less perturbed by shared-runner contention (noise only adds time). Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.5452472962600003,
"stddev": 0.1381529417816067,
"median": 2.53932990156,
"user": 1.6642485399999998,
"system": 1.3062119600000002,
"min": 2.34732413856,
"max": 2.74592571856,
"times": [
2.61693803756,
2.72001229056,
2.42372463756,
2.55322686956,
2.38081136956,
2.74592571856,
2.34732413856,
2.6507942835600002,
2.52543293356,
2.48828268356
]
},
{
"command": "pacquet@main",
"mean": 2.5037939918600003,
"stddev": 0.14506973357816794,
"median": 2.4396444980600003,
"user": 1.6556515400000003,
"system": 1.28938676,
"min": 2.3517104745600004,
"max": 2.75496695156,
"times": [
2.37258617056,
2.42999794656,
2.5634775635600002,
2.3517104745600004,
2.4429181895600003,
2.75496695156,
2.4363708065600003,
2.67723314356,
2.6433228525600003,
2.36535581956
]
},
{
"command": "pnpr@HEAD",
"mean": 1.6379832720600003,
"stddev": 0.10487696912298436,
"median": 1.6436513700600002,
"user": 1.1890347399999999,
"system": 1.15512436,
"min": 1.48346813256,
"max": 1.76106511956,
"times": [
1.60685181856,
1.7017341835600002,
1.56016287456,
1.75973452256,
1.76106511956,
1.48346813256,
1.6804509215600003,
1.5828060495600003,
1.74153484656,
1.5020242515600002
]
},
{
"command": "pnpr@main",
"mean": 1.50690199076,
"stddev": 0.1410350059821617,
"median": 1.5005615310600002,
"user": 1.23091544,
"system": 1.1027757599999999,
"min": 1.34826985256,
"max": 1.72537223556,
"times": [
1.3716500745600002,
1.5491516285600002,
1.34826985256,
1.68714572856,
1.72537223556,
1.3840859545600002,
1.3631759225600002,
1.51229348756,
1.6390454485600001,
1.4888295745600002
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.24805495752000004,
"stddev": 0.004728795102761315,
"median": 0.24595524292000004,
"user": 0.20583456,
"system": 0.49112132,
"min": 0.24368291492000002,
"max": 0.25806130192000004,
"times": [
0.25279799792,
0.24530808492000003,
0.24574313392000002,
0.24368291492000002,
0.24616735192000003,
0.25248397192,
0.24506353992000002,
0.24677084692,
0.25806130192000004,
0.24447043092
]
},
{
"command": "pacquet@main",
"mean": 0.25005125142000006,
"stddev": 0.004113956469522122,
"median": 0.24925801542000003,
"user": 0.19617055999999997,
"system": 0.50285622,
"min": 0.24502084692000003,
"max": 0.25809794192,
"times": [
0.24867588192,
0.24955321692000004,
0.24502084692000003,
0.24554089292000003,
0.25253649892,
0.24896281392000003,
0.25212108192000005,
0.25809794192,
0.25375228692,
0.24625105192000002
]
},
{
"command": "pnpr@HEAD",
"mean": 0.26888380252000005,
"stddev": 0.008630397116987421,
"median": 0.26944958242000006,
"user": 0.20328706,
"system": 0.5167447199999999,
"min": 0.25903230792000004,
"max": 0.28145892192000005,
"times": [
0.26840093392000003,
0.26031662392000005,
0.28145892192000005,
0.26141502292,
0.27256692592000004,
0.25903230792000004,
0.27607536392000004,
0.27995348192,
0.25912021192,
0.27049823092
]
},
{
"command": "pnpr@main",
"mean": 0.27165268722,
"stddev": 0.012772524269681234,
"median": 0.26818747092,
"user": 0.21434065999999996,
"system": 0.5117119199999999,
"min": 0.26289996392000003,
"max": 0.30653212192,
"times": [
0.27039963992000005,
0.26303918192000003,
0.27240909392,
0.26289996392000003,
0.26781118892,
0.30653212192,
0.26645091392000003,
0.26500153192000003,
0.27341948292,
0.26856375292
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 2.7391186153200002,
"stddev": 0.017757428683962056,
"median": 2.73456009472,
"user": 1.8411629599999995,
"system": 1.33051684,
"min": 2.70997846572,
"max": 2.76700380872,
"times": [
2.73669422972,
2.76700380872,
2.75920930472,
2.70997846572,
2.72382872372,
2.7311028997199998,
2.72801972672,
2.74752535272,
2.73242595972,
2.75539768172
]
},
{
"command": "pacquet@main",
"mean": 2.7439596462199995,
"stddev": 0.01480992022637871,
"median": 2.74435356622,
"user": 1.8129415599999998,
"system": 1.3250338400000001,
"min": 2.70914262972,
"max": 2.76501953072,
"times": [
2.74235993372,
2.73717099772,
2.7577481007199998,
2.74242462572,
2.74628250672,
2.74139198472,
2.76501953072,
2.75165211272,
2.74640403972,
2.70914262972
]
},
{
"command": "pnpr@HEAD",
"mean": 1.56547841772,
"stddev": 0.14202166973622815,
"median": 1.50857099772,
"user": 1.1655402599999998,
"system": 1.1898850400000003,
"min": 1.42278317172,
"max": 1.79063376372,
"times": [
1.53999215172,
1.4463479397199999,
1.60354829672,
1.47714984372,
1.79063376372,
1.46335276772,
1.43603247372,
1.42278317172,
1.7334562927200001,
1.74148747572
]
},
{
"command": "pnpr@main",
"mean": 1.60476110002,
"stddev": 0.12656159102626105,
"median": 1.54882677772,
"user": 1.1870868599999997,
"system": 1.15431924,
"min": 1.46026569772,
"max": 1.8561791217199999,
"times": [
1.68413036872,
1.51796529472,
1.8561791217199999,
1.77334230572,
1.55232657472,
1.46026569772,
1.59853721172,
1.51859455072,
1.54532698072,
1.54094289372
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.5861045545000001,
"stddev": 0.010543016839855998,
"median": 0.5845727542000001,
"user": 0.71023542,
"system": 0.69383392,
"min": 0.5693774052,
"max": 0.6063940822,
"times": [
0.5693774052,
0.5890081072000001,
0.5980771792,
0.5851721702,
0.5898196422,
0.5839733382000001,
0.6063940822,
0.5803795402,
0.5766061092,
0.5822379712000001
]
},
{
"command": "pacquet@main",
"mean": 0.5683258905,
"stddev": 0.009508685255057815,
"median": 0.5676300042,
"user": 0.6828245200000002,
"system": 0.67389022,
"min": 0.5579255762,
"max": 0.5847281182,
"times": [
0.5798366572,
0.5622049922000001,
0.5684972102,
0.5580172732,
0.5773086662000001,
0.5847281182,
0.5680628662,
0.5671971422000001,
0.5594804032,
0.5579255762
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29951107200000004,
"stddev": 0.004491078343829157,
"median": 0.29970922870000005,
"user": 0.20218482,
"system": 0.5015925199999999,
"min": 0.2921531102,
"max": 0.3056466862,
"times": [
0.3024168942,
0.2921531102,
0.29309557220000004,
0.3024044992,
0.29819508520000004,
0.29769196020000005,
0.3056466862,
0.3041812622,
0.2981022782,
0.3012233722
]
},
{
"command": "pnpr@main",
"mean": 0.29789250030000003,
"stddev": 0.007419061331630259,
"median": 0.29646052920000004,
"user": 0.20160342,
"system": 0.48851132,
"min": 0.2875657452,
"max": 0.3080405162,
"times": [
0.29368278020000005,
0.3039776932,
0.2875657452,
0.3063225242,
0.29365444820000003,
0.3080405162,
0.2890814762,
0.29923827820000004,
0.2931448682,
0.3042166732
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.8988457308800002,
"stddev": 0.012505208200999962,
"median": 1.89931356388,
"user": 0.9363474599999998,
"system": 0.76304266,
"min": 1.88047236388,
"max": 1.91469328088,
"times": [
1.91234981488,
1.91151046288,
1.91469328088,
1.90694960888,
1.8842835228800001,
1.88047236388,
1.90138954788,
1.8862514618800001,
1.89331966488,
1.89723757988
]
},
{
"command": "pacquet@main",
"mean": 1.8847912697799998,
"stddev": 0.008467469187868356,
"median": 1.88500126638,
"user": 0.90576536,
"system": 0.75912696,
"min": 1.87056907288,
"max": 1.9005212788799999,
"times": [
1.87737595188,
1.88747510688,
1.88221070888,
1.88421211588,
1.8916921818799999,
1.88579041688,
1.87056907288,
1.8902225428800001,
1.87784332088,
1.9005212788799999
]
},
{
"command": "pnpr@HEAD",
"mean": 0.29989449138,
"stddev": 0.004431673086744233,
"median": 0.29939858188,
"user": 0.18404095999999998,
"system": 0.51654346,
"min": 0.29207784888000005,
"max": 0.30565062488000005,
"times": [
0.30556794288000005,
0.29924205488000005,
0.30416355888,
0.30063551588000004,
0.29456920888000004,
0.29878792888000005,
0.29207784888000005,
0.30565062488000005,
0.29869512088000005,
0.29955510888000003
]
},
{
"command": "pnpr@main",
"mean": 0.29982735198000005,
"stddev": 0.007482308369721885,
"median": 0.30013419488000004,
"user": 0.19229636,
"system": 0.49168925999999996,
"min": 0.28740882688,
"max": 0.31312843288000003,
"times": [
0.30321840088,
0.30111350288000005,
0.29839187788000004,
0.28740882688,
0.31312843288000003,
0.29577224488000003,
0.29111771788,
0.29958971288,
0.30067867688000005,
0.30785412588000005
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.36106753736,
"stddev": 0.008128778435081653,
"median": 0.36071022556000004,
"user": 0.34760724,
"system": 0.07331557999999999,
"min": 0.35114559906000004,
"max": 0.37753035606,
"times": [
0.37753035606,
0.36115731006,
0.35405982206000003,
0.37177145606,
0.35833532706000004,
0.36042886506000005,
0.35375531206000005,
0.36149974006,
0.35114559906000004,
0.36099158606000004
]
},
{
"command": "pacquet@main",
"mean": 0.35933278806,
"stddev": 0.005608318403240833,
"median": 0.35841433006,
"user": 0.34481404,
"system": 0.07261418,
"min": 0.35215204506000003,
"max": 0.37092123806000005,
"times": [
0.37092123806000005,
0.35535915706000004,
0.35530221906000004,
0.36284636906,
0.35215204506000003,
0.36448143206000005,
0.35923642406,
0.35471143606000005,
0.36072532406,
0.35759223606
]
},
{
"command": "pnpr@HEAD",
"mean": 0.08915781531806456,
"stddev": 0.003738288341671636,
"median": 0.08731524606000002,
"user": 0.020965672258064515,
"system": 0.011265557419354841,
"min": 0.08482187506000001,
"max": 0.09853798906000001,
"times": [
0.09122683306000001,
0.08496726506,
0.08682867206000001,
0.08665120606000001,
0.08731524606000002,
0.09853798906000001,
0.08826288506000002,
0.08988478606000001,
0.08482187506000001,
0.09651026506000002,
0.08661316906000001,
0.08720679206000001,
0.08763570406000001,
0.08654091706000001,
0.08988031206000001,
0.08708433306000002,
0.09507070706000001,
0.09331530806000002,
0.09265653206000002,
0.08551427506,
0.08630830706,
0.08651657106,
0.08714209006000001,
0.08610276006,
0.08610490206000002,
0.08762309106,
0.08623317206000002,
0.09598895406,
0.09276567406000001,
0.09183384606000002,
0.09074783506000002
]
},
{
"command": "pnpr@main",
"mean": 0.08809923544709677,
"stddev": 0.002461579597430732,
"median": 0.08722836706,
"user": 0.020578898064516134,
"system": 0.010484984516129033,
"min": 0.08456928406000001,
"max": 0.09507628706000001,
"times": [
0.08906311406000002,
0.08632355306000002,
0.08686491806000002,
0.08558217506000002,
0.09507628706000001,
0.08846182606000001,
0.08619166806000002,
0.08677363106000001,
0.08628626406,
0.08835731106000001,
0.09012241406000002,
0.08626324406000001,
0.08837410706000001,
0.08477187106000002,
0.08665014106000002,
0.08653450706000002,
0.09056043406000001,
0.08649721306000001,
0.08456928406000001,
0.08709344006000001,
0.09117585606000002,
0.08966031106000001,
0.08826428606000002,
0.08606812206000002,
0.08822779606000002,
0.08501600206000001,
0.09158171006000002,
0.09152500606000001,
0.09145836406,
0.08722836706,
0.09045307506000001
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.45443662478,
"stddev": 0.04929239172081618,
"median": 4.4418995602799995,
"user": 1.82180824,
"system": 1.4044280599999999,
"min": 4.4041335647799995,
"max": 4.58266880678,
"times": [
4.4360037627799995,
4.44730674478,
4.58266880678,
4.47630573178,
4.43566101778,
4.43649237578,
4.417986390779999,
4.4041335647799995,
4.45715958078,
4.4506482717799996
]
},
{
"command": "pacquet@main",
"mean": 4.608640711880001,
"stddev": 0.19123398168890793,
"median": 4.57593179528,
"user": 1.8047602399999998,
"system": 1.41481096,
"min": 4.41498062978,
"max": 4.85722074078,
"times": [
4.41498062978,
4.44499788978,
4.70686570078,
4.85722074078,
4.80784014378,
4.43584254878,
4.41819048778,
4.7958670437799995,
4.44033561378,
4.76426631978
]
},
{
"command": "pnpr@HEAD",
"mean": 3.62536518728,
"stddev": 0.15566256545089077,
"median": 3.57321877528,
"user": 1.29658834,
"system": 1.24751136,
"min": 3.4583644047799997,
"max": 3.83683211878,
"times": [
3.52563186478,
3.83683211878,
3.46240733278,
3.4676857977799997,
3.58851641978,
3.81524100578,
3.76939165078,
3.55792113078,
3.77166014678,
3.4583644047799997
]
},
{
"command": "pnpr@main",
"mean": 3.53785106048,
"stddev": 0.10357954585339109,
"median": 3.5154921867799995,
"user": 1.32835034,
"system": 1.2274233599999997,
"min": 3.45051130378,
"max": 3.81263488478,
"times": [
3.54275530978,
3.47576619278,
3.45680024678,
3.5248099477799997,
3.5019197477799997,
3.50617442578,
3.45051130378,
3.81263488478,
3.55059964478,
3.5565389007799997
]
}
]
} |
|
| Branch | pr/12841 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,651.63 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 255.44 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 263.51 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 83.83 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,582.86 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,531.15 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 239.74 ms |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
pacquet/crates/cli/src/cli_args/setup/tests.rs (1)
211-212: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueConsider logging the captured warning before the non-scalar assertions.
assert!(warnings[0].contains(...))isn't a simple scalar equality check, so per the style guide these benefit from aneprintln!/dbg!ofwarnings[0]beforehand to aid failure diagnosis.As per path instructions (
pacquet/CODE_STYLE_GUIDE.md): "when assertions aren't simple scalar equality, log before asserting (use eprintln!/dbg! patterns)."🔧 Suggested addition
let warnings = WARNINGS.lock().expect("lock warnings"); assert_eq!(warnings.len(), 1); + eprintln!("captured warning: {}", warnings[0]); assert!(warnings[0].contains("GITHUB_ENV")); assert!(warnings[0].contains(&github_env.display().to_string()));🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pacquet/crates/cli/src/cli_args/setup/tests.rs` around lines 211 - 212, The warning checks in the setup tests use contains-based assertions on warnings[0], so add a debug log of the captured warning before those assertions to make failures easier to diagnose. Update the relevant test in setup/tests.rs near the warnings[0] checks by printing or dbg-ing warnings[0] first, then keep the existing contains assertions against GITHUB_ENV and the github_env path.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pacquet/crates/cli/src/cli_args/setup/tests.rs`:
- Around line 172-213: The test in
github_actions_environment_file_failures_do_not_skip_other_targets relies on
make_file_readonly, which can fail to trigger on root-run GitHub Actions runners
because permission bits alone may still allow writes. Replace that setup with a
deterministic root-agnostic failure mechanism for the GITHUB_ENV path in
persist_github_actions_environment_to_files, while keeping the GITHUB_PATH file
writable so the test still verifies other targets continue processing and the
warning is recorded.
---
Nitpick comments:
In `@pacquet/crates/cli/src/cli_args/setup/tests.rs`:
- Around line 211-212: The warning checks in the setup tests use contains-based
assertions on warnings[0], so add a debug log of the captured warning before
those assertions to make failures easier to diagnose. Update the relevant test
in setup/tests.rs near the warnings[0] checks by printing or dbg-ing warnings[0]
first, then keep the existing contains assertions against GITHUB_ENV and the
github_env path.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 82822651-2728-47e4-99e0-78d23566b0af
📒 Files selected for processing (2)
pacquet/crates/cli/src/cli_args/setup.rspacquet/crates/cli/src/cli_args/setup/tests.rs
🚧 Files skipped from review as they are similar to previous changes (1)
- pacquet/crates/cli/src/cli_args/setup.rs
3cdc656 to
3f57e2b
Compare
Confidence Score: 5/5Safe to merge. The change is additive, well-guarded, and tested end-to-end in both the TypeScript CLI and the Rust port. Both implementations validate inputs before touching any state, write only after the primary setup operation succeeds, and handle every error path (missing file, non-regular file, symlink, disk errors) by warning rather than crashing. Test coverage is thorough with no obvious gaps. No files require special attention. Reviews (8): Last reviewed commit: "refactor(setup): spell the GitHub Action..." | Re-trigger Greptile |
|
| Branch | pr/12841 |
| Testbed | pacquet |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result milliseconds (ms) (Result Δ%) | Upper Boundary milliseconds (ms) (Limit %) |
|---|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot 🚷 view threshold | 2,709.98 ms(-5.91%)Baseline: 2,880.22 ms | 3,456.27 ms (78.41%) |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot 🚷 view threshold | 1,880.47 ms(-6.02%)Baseline: 2,000.99 ms | 2,401.19 ms (78.31%) |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot 🚷 view threshold | 569.38 ms(-14.15%)Baseline: 663.26 ms | 795.91 ms (71.54%) |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot 🚷 view threshold | 351.15 ms(-14.65%)Baseline: 411.43 ms | 493.72 ms (71.12%) |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot 🚷 view threshold | 2,347.32 ms(-3.88%)Baseline: 2,442.09 ms | 2,930.51 ms (80.10%) |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot 🚷 view threshold | 4,404.13 ms(-2.48%)Baseline: 4,516.35 ms | 5,419.62 ms (81.26%) |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot 🚷 view threshold | 243.68 ms(-15.38%)Baseline: 287.96 ms | 345.56 ms (70.52%) |
|
| Branch | pr/12841 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 1,422.78 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 292.08 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 292.15 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 84.82 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 1,483.47 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 3,458.36 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 259.03 ms |
Write PNPM_HOME to the GitHub Actions environment file. Add the setup bin directory to the workflow path file. Later workflow steps can use global pnpm commands. Keep TypeScript setup and pacquet setup behavior aligned. Refs pnpm#9191.
Validate the persisted values before any side effect in pacquet, matching the TypeScript CLI, which already validated ahead of the global install. Raise the pacquet validation failure as ERR_PNPM_BAD_GITHUB_ACTIONS_ENVIRONMENT_VALUE with the same message the TypeScript CLI throws. Reject symlinked targets on Windows in the TypeScript CLI, and skip non-regular targets silently in both stacks. Name the failing target in the write-failure warning on both stacks. Detect ENOENT with util.types.isNativeError instead of instanceof Error, which is unreliable across Jest realms. Add pacquet to the changeset and bump it to minor.
2879d84 to
65754c1
Compare
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Windows symlink TOCTOU
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Route the GITHUB_ACTIONS, GITHUB_ENV, and GITHUB_PATH lookups through the EnvVarOs capability seam instead of calling std::env::var_os in library code, per the "Reading process state" section of the pacquet code style guide. Tests can now drive the inside-a-workflow and outside-a-workflow branches with a fake provider rather than only the write helpers. Put the pacquet side in cli_args/setup/github_actions_env.rs with its unit tests in the external tests submodule, and the TypeScript side in setup/githubActionsEnv.ts, so setup.rs and setup.ts are back to the install-and-extend-PATH flow alone.
|
Code review by qodo was updated up to the latest commit c3433ac |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…mments Let the module carry the context the names were repeating, so validateGitHubActionsEnvironmentFileValues becomes validateValues and writeGitHubActionsEnvironmentFiles becomes persist, matching the pacquet side. The TypeScript caller imports the module as a namespace, the way self-updater/index.ts already does, so the call sites still read as githubActionsEnv.persist. State the why once in the module doc instead of re-deriving it on each helper, drop the doc comments that only restated a name or narrated a scenario a test already asserts, and restructure the prose that leaned on mid-sentence em dashes.
"unwritable" is not in the repo dictionary, and the phrase reads better spelled out.
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 2550571 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
…and Env Restore self-describing names for every function that touches the workflow env files, abbreviating GitHubActions to GHActions and Environment to Env so they stay readable. The TypeScript caller goes back to named imports, since the names no longer lean on the module prefix for meaning. Rename the modules to match: gh_actions_env.rs and ghActionsEnv.ts.
|
Code review by qodo was updated up to the latest commit e97a233 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Fixes #9191.
PNPM_HOMEto the GitHub Actions environment file duringpnpm setup.pacquet/setup behavior aligned.Squash Commit Body
Checklist
pacquet/port.Disclosure: I used AI-assisted coding tools while preparing this PR. I reviewed the changes myself, tested them, and take responsibility for the implementation and any follow-up revisions needed.
If this project does not accept AI-assisted contributions, please let us know up front so we can avoid spending time on a contribution that the project is unwilling to consider.
Summary by CodeRabbit
pnpm setupnow persistsPNPM_HOMEand the pnpm global bin directory to GitHub ActionsGITHUB_ENV/GITHUB_PATHfiles when running under GitHub Actions and those targets are provided.pacquet setup.