Skip to content

Pin Bun in the half-upgraded v3 project upgrade test - #20616

Closed
otarampinelli wants to merge 1 commit into
tailwindlabs:mainfrom
otarampinelli:fix/pin-bun-upgrade-test
Closed

otarampinelli wants to merge 1 commit into
tailwindlabs:mainfrom
otarampinelli:fix/pin-bun-upgrade-test

Conversation

@otarampinelli

@otarampinelli otarampinelli commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

tThis PR pins Bun to 1.4.3 in the upgrades half-upgraded v3 project to v4 (bun) integration test, that test currently fails on every run that actually executes.

the test installs "bun": "^1.0.0", so it picked up Bun 1.4.4 when it came out on Oct 22, bun 1.4.4 copies the overrides from pnpm-workspace.yaml into package.json during bun install, the test harness puts pnpm-style keys like @tailwindcss/node>tailwindcss there. The next npx @tailwindcss/upgrade then fails because npm can't parse those keys:

npm error Override without name: @tailwindcss/node>tailwindcss

Test plan

I reproduced the behavior change with a minimal project (one dependency plus a pnpm-workspace.yaml with an a>b override):

  • npx bun@1.4.3 install leaves package.json unchanged.
  • npx bun@1.4.4 install adds an overrides field with the pnpm-style key.

The Linux / upgrade integration job should pass on this PR

This small change was made using claude code

@otarampinelli
otarampinelli requested a review from a team as a code owner October 25, 2026 10:56
@greptile-apps

greptile-apps Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge.

Reviews (3) · Last reviewed commit: "Pin Bun in the half-upgraded v3 project ..." · Reviewed by Greptile

@otarampinelli
otarampinelli force-pushed the fix/pin-bun-upgrade-test branch from 8c52dba to d1e8fe5 Compare October 25, 2026 10:59
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5ffa123e-6201-4f64-9b99-84b780231a28
Commits

Reviewing files that changed from the base of the PR and between d1e8fe5 and 2e177f2.

Files selected for processing: 1
  • integrations/upgrade/upgrade-errors.test.ts
Files skipped from review as they are similar to previous changes: 1
  • integrations/upgrade/upgrade-errors.test.ts

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

Walkthrough

The Bun fixture in the upgrade test now pins the version to 1.4.3 instead of using the ^1.0.0 constraint. A setup comment explains that Bun 1.4.4 copies pnpm-style override keys into package.json, which npm cannot parse during later npx calls.

Priority: Low

Severity of issue fixed: Low

Merge Risk: Minimal · up to 2e177

No merge-blocking issue is identified. The reported upgrade-job result is not provided, so normal test checks remain appropriate.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: pinning Bun to a specific version in the half-upgraded v3 project upgrade test.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states that the PR pins Bun to 1.4.3 in the half-upgraded v3 project integration test. It explains the cause: Bun 1.4.4 copies pnpm-style overrides into package.json, which makes npx @…
Full details: Description check

Explanation

The description states that the PR pins Bun to 1.4.3 in the half-upgraded v3 project integration test. It explains the cause: Bun 1.4.4 copies pnpm-style overrides into package.json, which makes npx @tailwindcss/upgrade fail. It also includes a reproduction and test plan. This matches the changeset and the PR objectives.

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

Bun 1.4.4 copies the overrides from pnpm-workspace.yaml into package.json.
npm cannot parse the pnpm-style `a>b` keys, so the following `npx` calls
fail with "Override without name".
@otarampinelli
otarampinelli force-pushed the fix/pin-bun-upgrade-test branch from 46179b3 to 2e177f2 Compare October 25, 2026 11:16
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.

1 participant