Skip to content

Conversation

@snomiao
Copy link
Member

@snomiao snomiao commented Sep 4, 2025

Summary

  • Migrated all npx commands to pnpx to align with the pnpm ecosystem
  • Updated all occurrences across the codebase for consistency

Changes

  • Package.json scripts: Updated test:browser, preinstall, and collect-i18n scripts
  • GitHub Actions workflows: Updated all workflow files that use npx (test-ui, i18n, update-manager-types, etc.)
  • Documentation: Updated browser_tests/README.md and docs/extensions/development.md
  • Husky pre-commit hook: Updated lint-staged and tsx commands
  • MCP configuration: Updated .mcp.json to use pnpx

Test Plan

  • CI tests pass
  • Local development commands work with pnpx
  • GitHub Actions workflows execute successfully

🤖 Generated with Claude Code

┆Issue is synchronized with this Notion page by Unito

@github-actions
Copy link

github-actions bot commented Sep 4, 2025

🎭 Playwright Test Results

⚠️ Tests passed with flaky tests

⏰ Completed at: 09/26/2025, 07:36:47 AM UTC

📈 Summary

  • Total Tests: 463
  • Passed: 433 ✅
  • Failed: 0
  • Flaky: 1 ⚠️
  • Skipped: 29 ⏭️

📊 Test Reports by Browser

  • chromium: View Report • ✅ 426 / ❌ 0 / ⚠️ 1 / ⏭️ 29
  • chromium-2x: View Report • ✅ 2 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • chromium-0.5x: View Report • ✅ 1 / ❌ 0 / ⚠️ 0 / ⏭️ 0
  • mobile-chrome: View Report • ✅ 4 / ❌ 0 / ⚠️ 0 / ⏭️ 0

🎉 Click on the links above to view detailed test results for each browser configuration.

@snomiao snomiao requested a review from DrJKL September 4, 2025 21:34
@snomiao snomiao self-assigned this Sep 4, 2025
@snomiao snomiao marked this pull request as ready for review September 4, 2025 21:34
@snomiao snomiao requested review from a team as code owners September 4, 2025 21:34
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Sep 4, 2025
@DrJKL DrJKL self-assigned this Sep 4, 2025
DrJKL
DrJKL previously approved these changes Sep 4, 2025
Copy link
Contributor

@DrJKL DrJKL left a comment

Choose a reason for hiding this comment

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

👍🏻

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Sep 23, 2025
@snomiao snomiao requested a review from DrJKL September 23, 2025 01:58
@snomiao
Copy link
Member Author

snomiao commented Sep 23, 2025

Added reusable workflow for cached playwright browser installation, its ready for review again now :D

@DrJKL

benceruleanlu
benceruleanlu previously approved these changes Sep 24, 2025
Copy link
Contributor

@DrJKL DrJKL left a comment

Choose a reason for hiding this comment

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

Would you mind splitting this into two PRs, one that just does the pnpm exec / pnpm dlx and another for the Playwright composite action?

I'm very excited to have less duplication across the actions.

Comment on lines 8 to 11
browsers:
description: 'Browsers to install (chromium, firefox, webkit, or "all")'
required: false
default: 'chromium'
Copy link
Contributor

Choose a reason for hiding this comment

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

I would start with just extracting the current behavior from the actions we're using.
We can always add features later, as we need them.

Copy link
Member Author

Choose a reason for hiding this comment

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

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Sep 26, 2025
@DrJKL
Copy link
Contributor

DrJKL commented Sep 26, 2025

Clean, I like it, but most of these should probably be pnpm exec instead of pnpm dlx, if it's a case where we've already done a pnpm install for the dep.

@DrJKL DrJKL self-requested a review September 26, 2025 06:22
DrJKL
DrJKL previously approved these changes Sep 26, 2025
- Use 'pnpm exec' for dependencies that are installed (playwright, tsx, lint-staged, nx)
- Use 'pnpm dlx' for packages that are run once without installation (wrangler, openapi-typescript, only-allow)
- Update MCP config to use 'pnpm dlx' instead of 'pnpx -y'
- Resolved merge conflicts by taking main branch changes
- Reapplied npx -> pnpm exec conversions for installed deps
- Removed .mcp.json as it was deleted in main
@snomiao
Copy link
Member Author

snomiao commented Sep 26, 2025

Clean, I like it, but most of these should probably be pnpm exec instead of pnpm dlx, if it's a case where we've already done a pnpm install for the dep.

@DrJKL Done!

already set auto-merge.

will merge if everything works fine

@snomiao snomiao enabled auto-merge (squash) September 26, 2025 07:32
@snomiao snomiao merged commit 49f373c into main Sep 26, 2025
21 checks passed
@snomiao snomiao deleted the sno-pnpx branch September 26, 2025 17:06
christian-byrne pushed a commit that referenced this pull request Sep 27, 2025
## Summary
- Migrated all `npx` commands to `pnpx` to align with the pnpm ecosystem
- Updated all occurrences across the codebase for consistency

## Changes
- **Package.json scripts**: Updated test:browser, preinstall, and
collect-i18n scripts
- **GitHub Actions workflows**: Updated all workflow files that use npx
(test-ui, i18n, update-manager-types, etc.)
- **Documentation**: Updated browser_tests/README.md and
docs/extensions/development.md
- **Husky pre-commit hook**: Updated lint-staged and tsx commands
- **MCP configuration**: Updated .mcp.json to use pnpx

## Test Plan
- [ ] CI tests pass
- [ ] Local development commands work with pnpx
- [ ] GitHub Actions workflows execute successfully

🤖 Generated with Claude Code

┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5329-chore-Replace-npx-with-pnpx-across-the-codebase-2646d73d36508127bd43d14b8364aeb1)
by [Unito](https://www.unito.io)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants