Skip to content

fix: re-enable and update Playwright CI workflow - #328

Merged
anchapin merged 4 commits into
NatLabRockies:developfrom
wnykuang:fix/playwright-ci-290
Oct 15, 2026
Merged

anchapin merged 4 commits into
NatLabRockies:developfrom
wnykuang:fix/playwright-ci-290

Conversation

@wnykuang

@wnykuang wnykuang commented Feb 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #290 — Playwright CI tests were broken and the workflow was disabled.

Root causes and fixes:

  • Node 17 → 18: package.json requires "engines": {"node": "^18"}, but the workflow specified Node 17. Updated to Node 18.
  • Ubuntu 22.04 → 24.04: manifest.json targets Ubuntu 24.04 binaries (Ruby, MongoDB, OpenStudio). Updated the runner to match.
  • Electron system dependencies: Electron 21 requires GTK3, NSS, ALSA, and other system libraries that aren't pre-installed on Ubuntu 24.04 runners. Added explicit apt-get install step with the correct t64 package names for Noble.
  • Electron sandbox: Electron's Chrome sandbox fails on CI runners. Added --no-sandbox flag when process.env.CI is set (in playwright/App.ts).
  • Workflow triggers: Scoped from branches: "*" to develop + tags + PRs, matching the build_pat.yaml pattern.

Serial server tests skipped in CI:

The serial test suite includes integration tests that start/stop the actual OpenStudio server (MongoDB + Ruby + EnergyPlus). These require a fully configured runtime stack and time out in GitHub Actions — the stopServerTests were already skipped in CI for this reason. Extended the same !process.env.CI guard to startServerTests, serverPageTests, and runPageTests, which all depend on a running server. The saveProjectTests still runs in CI since it doesn't need the server.

Changes

  • .github/workflows/playwright.yml.disable → .github/workflows/playwright.yml (re-enabled)
  • playwright/App.ts — pass --no-sandbox to Electron in CI
  • playwright/tests/serial/serial.list.ts — skip server-dependent tests in CI

Test plan

@anchapin
anchapin requested a balanced review from Copilot October 14, 2026 20:41
Alex Chapin and others added 2 commits October 14, 2026 16:51
…ency & dispatch

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

1 open finding
What changed in this PR

Re-enables the Playwright CI workflow and updates it to run reliably on the current project/runtime requirements (Node 18, Ubuntu 24.04, Electron sandbox/deps), while skipping server-dependent serial tests in CI.

Changes:

  • Updated Playwright serial test list to skip server-dependent suites when running in CI.
  • Updated Playwright Electron launch args to disable the sandbox in CI.
  • Updated the Playwright GitHub Actions workflow (runner, Node version, deps install, caching, triggers, concurrency).
File Description
playwright/​tests/​serial/​serial.list.ts Skips server-dependent serial tests under CI to prevent timeouts.
playwright/​App.ts Adds --no-sandbox to Electron launch args in CI to avoid sandbox failures.
.github/​workflows/​playwright.yml.disable Updates workflow configuration for Node 18/Ubuntu 24.04 and installs Electron system dependencies.

🧠 Review effort: Lite


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread playwright/App.ts
@anchapin
anchapin merged commit 3c8a973 into NatLabRockies:develop Oct 15, 2026
4 checks passed
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.

playwright tests are broken

3 participants