Skip to content

chore(CI): speed up playwright browser setup#6877

Merged
chenjiahan merged 8 commits intomainfrom
speed_up_playwright_0101
Jan 1, 2026
Merged

chore(CI): speed up playwright browser setup#6877
chenjiahan merged 8 commits intomainfrom
speed_up_playwright_0101

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

@chenjiahan chenjiahan commented Jan 1, 2026

Summary

On GitHub Actions, Chrome is preinstalled on the runner. Using channel: 'chrome' in CI avoids an extra browser installation step and reduces workflow time by several minutes on Windows.

Local runs remain unchanged and do not require contributors to install Chrome manually.

Before

image

After

image

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings January 1, 2026 02:05
@netlify
Copy link
Copy Markdown

netlify bot commented Jan 1, 2026

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 460e650
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/695637095eb5290008884418
😎 Deploy Preview https://deploy-preview-6877--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 72 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR optimizes CI performance by configuring Playwright to use the system-installed Chrome browser instead of downloading and installing Chromium separately, reducing setup time in CI pipelines.

  • Configures Playwright to use the 'chrome' channel in CI environments
  • Removes the "Install Playwright Browsers" workflow steps from both E2E test jobs

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
e2e/playwright.config.ts Adds use.channel configuration to use system Chrome in CI while maintaining default behavior locally
.github/workflows/test.yml Removes "Install Playwright Browsers" steps from both e2e and e2e-webpack jobs, eliminating redundant browser installation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit 0a68025 into main Jan 1, 2026
10 checks passed
@chenjiahan chenjiahan deleted the speed_up_playwright_0101 branch January 1, 2026 09:08
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