ci: add cross-platform E2E and smoke test support (Linux/macOS/Windows)#411
Merged
ci: add cross-platform E2E and smoke test support (Linux/macOS/Windows)#411
Conversation
Make headed browser tests (E2E and smoke) runnable on Linux, macOS, and Windows: - setup-chrome action: only install xvfb on Linux (macOS/Windows have native GUI sessions and don't need a virtual display) - e2e-headed.yml: add OS matrix, use xvfb-run wrapper only on Linux - ci.yml smoke-test: add OS matrix, use xvfb-run wrapper only on Linux The browser-actions/setup-chrome action already supports all three platforms natively.
browser-actions/setup-chrome hangs indefinitely during Chrome MSI installation on Windows runners (observed 10+ min with no progress). This is a known limitation of Windows CI runners. Keep Linux + macOS for headed browser tests. Windows is still covered by build, unit-test, and adapter-test jobs.
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.
Description
Add cross-platform support for headed browser tests (E2E and smoke tests) across Linux, macOS, and Windows.
Previously these tests only ran on Linux via
xvfb, a Linux-only virtual display. macOS and Windows CI runners have native GUI desktop sessions, so Chrome can run headed mode directly without any virtual display wrapper.Related issue: #392
Type of Change
Changes
.github/actions/setup-chrome/action.ymlxvfbinstallation conditional: only runs on Linux (if: runner.os == 'Linux').github/workflows/e2e-headed.yml[ubuntu-latest, macos-latest, windows-latest]xvfb-run.github/workflows/ci.yml(smoke-test job)[ubuntu-latest, macos-latest, windows-latest]Checklist
Notes
browser-actions/setup-chrome@v1already supports all three platforms nativelyxvfbunnecessaryfail-fast: falseensures all platforms are tested even if one fails