Skip to content

setup: auto-install Playwright Linux deps - #11

Merged
adamtasteslikegood merged 1 commit into
dev/mainfrom
patch/setup-playwright-linux-deps
Jul 18, 2026
Merged

adamtasteslikegood merged 1 commit into
dev/mainfrom
patch/setup-playwright-linux-deps

Conversation

@adamtasteslikegood

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 18, 2026 13:54
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@adamtasteslikegood
adamtasteslikegood merged commit e6c147e into dev/main Jul 18, 2026
1 of 5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

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 updates the setup bootstrap script to automatically attempt installing Playwright’s Linux system dependencies when Chromium still fails to launch, and adds a regression test that pins the expected fallback behavior.

Changes:

  • Add a Linux-only fallback path to run bunx playwright install-deps chromium after installing the Playwright Chromium browser but before failing setup.
  • Add a Linux failure hint + opt-out env var (GSTACK_SKIP_PLAYWRIGHT_DEPS) messaging to guide manual remediation.
  • Add a test that asserts the presence and ordering of the new Linux dependency fallback logic in setup.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
setup Adds Linux dependency auto-install fallback and failure-time remediation hints for Playwright Chromium launch failures.
test/setup-playwright-linux-deps.test.ts Adds static assertions to ensure the setup script contains the Linux fallback behavior and expected messaging.

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

Comment thread setup
Comment on lines 430 to +434
echo "gstack setup failed: Playwright Chromium could not be launched" >&2
if [ "$(uname -s)" = "Linux" ] && [ "$PLAYWRIGHT_LINUX_DEPS_ATTEMPTED" -eq 0 ] && [ "${GSTACK_SKIP_PLAYWRIGHT_DEPS:-0}" != "1" ]; then
echo " Hint: try 'cd $SOURCE_GSTACK_DIR && bunx playwright install-deps chromium'" >&2
echo " Set GSTACK_SKIP_PLAYWRIGHT_DEPS=1 to skip the automatic Linux dependency install." >&2
fi
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