Repository navigation
setup: auto-install Playwright Linux deps - #11
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
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 chromiumafter 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 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.