Skip to content

Skip unused Playwright browser downloads in CI - #229

Merged
Dan Marshall (danmarshall) merged 1 commit into
mainfrom
fix/ci-skip-browser-download
Nov 12, 2026
Merged

Dan Marshall (danmarshall) merged 1 commit into
mainfrom
fix/ci-skip-browser-download

Conversation

@danmarshall

Copy link
Copy Markdown
Collaborator

Description

Skip Playwright browser downloads during CI dependency installation. Build-only CI does not need Chromium; the pinned browser package fails on Ubuntu 26.04.

Related Issues

Relates to #221. Failed installation: https://github.com/microsoft/chartifact/actions/runs/43281235533

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • ♻️ Code refactoring (no functional changes)
  • 🎨 Style/formatting changes
  • 🧪 Test additions or updates
  • 🔧 Build/tooling changes

Changes Made

  • Set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' only on the CI install step.
  • Preserve local VS Code browser-development commands and all dependency versions.

Testing

  • I have tested these changes locally
  • All existing tests pass
  • I have added new tests (if applicable)
  • I have manually verified the changes work as expected

Test Details

  • git diff --check — passed.
  • $env:PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = '1'; npm rebuild @playwright/browser-chromium --foreground-scripts — passed; the actual installer printed that browser downloads were skipped. Existing npm allowScripts warnings remain.
  • YAML parsing and install-step assertions — passed:
node --input-type=module -e "import fs from 'node:fs'; import yaml from 'js-yaml'; import assert from 'node:assert/strict'; const w=yaml.load(fs.readFileSync('.github/workflows/ci.yml','utf8')); const s=w.jobs['build-and-test'].steps.find(s=>s.name==='Install dependencies'); assert.equal(s.env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD,'1'); assert.equal(s.run,'npm install'); console.log('CI install configuration passed');"

Full build not run locally for this workflow-only change; the PR's CI will verify installation and build on Linux.

Screenshots/Recordings

Not applicable.

Documentation

  • I have updated the documentation (if applicable)
  • I have updated examples (if applicable)
  • Code comments are clear and helpful

Checklist

  • My code follows the project's coding guidelines
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings or errors
  • I have checked for security issues in my changes
  • I have not committed secrets, credentials, or sensitive data
  • I have kept changes minimal and focused on the issue being addressed
  • I have updated CONTRIBUTING.md if I added new development workflows

Additional Context

@vscode/test-web pulls in @playwright/browser-chromium. CI runs builds and bundle checks, not the VS Code browser test commands. After merging, update #221 with main to apply this fix and trigger fresh CI.

For Maintainers

  • Code review completed
  • All CI checks passing
  • Documentation reviewed
  • Ready to merge

Keep local VS Code browser tooling unchanged while avoiding unsupported Chromium installation on Ubuntu 26.04 build runners.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eca2adda-c35b-4e8c-9fdb-5da48c2ae88e
@danmarshall
Dan Marshall (danmarshall) merged commit 03086d2 into main Nov 12, 2026
6 checks passed
@danmarshall
Dan Marshall (danmarshall) deleted the fix/ci-skip-browser-download branch November 12, 2026 19:01
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