Skip to content

Add Ubuntu 24 Linux Desktop E2E automation (PR, scheduled, cache seed) - #18081

Merged
ronblum merged 4 commits into
mainfrom
test/ron/add-linux-desktop-e2e-workflow
Jun 29, 2026
Merged

ronblum merged 4 commits into
mainfrom
test/ron/add-linux-desktop-e2e-workflow

Conversation

@ronblum

@ronblum ronblum commented Jun 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds Linux Desktop (Electron, Ubuntu 24) to the E2E Playwright suite, bringing it to parity with the existing macOS Desktop, Windows Desktop, and Linux Server platforms.

New engine os-test-e2e-rstudio-desktop-os-ubuntu-24.yml (rewritten from the previous daily-only stub, which had no callers and had never run):

  • Builds RStudio Desktop from this PR's source via make-electron-package DEB, with shared rstudio-tools / R-libs caches, a desktop-specific GWT cache, and GHA-backed sccache.
  • Falls back to the latest daily .deb (electron noble-amd64) when no compiled-binary source changed.
  • Runs across 2 shards under xvfb, merges blob reports, and posts a sticky PR comment.

PR orchestrator os-test-e2e-rstudio-pr.yml: adds a linux-desktop caller and a linux_desktop_build_from_source decision via decide noble-amd64 (the path the existing detect-changes comment anticipated). Manifest gaps fall back to a source build.

Companions: ...-ubuntu-24-scheduled.yml (nightly) and os-cache-seed-...-ubuntu-24.yml (warms main's caches), mirroring the other platforms.

Linux Server artifact rename: its blob / test-results / sandbox / merged-report names move from -linux-* to -linux-server-* (and its merge glob with them), so the Server merge job no longer sweeps in the new Desktop blobs when both run in the same PR.

Note: the Linux Desktop build-from-source path has no prior CI analog; it mirrors the proven Linux Server build plus the documented packaging script, and is exercised for the first time by this PR's own run.

Linux Server and dailies: Switch Linux Server to use decide() to avoid using stale dailies, similar to desktop checks.

Cancellation: Make cancellation reach Playwright on Linux end-to-end jobs. Cancellation requests were sent, but Playwright jobs had to fully complete. Switched to use exec which cancels the Playwright jobs.

@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
404 0 16 0
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · macos-26 ARM64 · commit aba52f11e01882842f00785faa7eedb05e9d37ac · Run #19

@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

🐧 Linux Server E2E · Ubuntu 24

❌ 1 test(s) failed

███████████████████░ 99% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
392 1 21 1
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · ubuntu-24.04 · commit aba52f11e01882842f00785faa7eedb05e9d37ac · Run #19

@ronblum

ronblum commented Jun 26, 2026

Copy link
Copy Markdown
Contributor Author

Review

/pr-review-toolkit:review-pr with three agents (code-reviewer, silent-failure-hunter, comment-analyzer), scoped to this PR's diff. The diff is entirely .github/workflows/ YAML, so the Playwright-skill rule didn't apply. No Critical findings.

code-reviewer -- no Critical/Important. Suggestions:

  1. The new manual-Xvfb block (os-test-e2e-rstudio-desktop-os-ubuntu-24.yml and the identical block in os-test-e2e-rstudio-server-os-ubuntu-24.yml) waits for the X socket but never asserts it appeared, then execs Playwright -- a failed Xvfb start would surface as an opaque browser-launch error.
  2. The Desktop engine's direct-dispatch daily-resolve isn't gated on the manifest commit (matches the Server engine; the PR-triggered path is gated by decide()). Awareness only.

Confirmed-OK: cache key sharing/scoping, GWT success-gated save, distinct cron offsets and concurrency groups, and the decide() generalization.

silent-failure-hunter -- no Critical. One Important: same Xvfb block -- under bash -eo pipefail the wait loop falls through on failure and execs against a dead display, and /tmp/xvfb.log is written but never surfaced or uploaded. Confirmed safe: the generalized decide() product argument is fail-closed (every failure path falls back to building from source; no path silently tests a wrong/stale daily), exec propagates Playwright's exit code, the .deb discovery and SHA-verify are guarded, and || true on sccache stats / the optional Connect reporter are intentional, documented, non-load-bearing.

comment-analyzer -- no Critical/Important. Every added/changed comment verified accurate (the decide() doc + call-site, the detect-changes header, GWT/cache rationale, cron offsets, and all artifact-namespacing cross-references). One Suggestion: the Xvfb comment didn't mention the -nolisten tcp flag.

Assessment

  1. Xvfb socket-wait has no failure check (both engines) -- agreed; verified in context. Calibrated as low-Important: a diagnostic-quality gap, not a correctness bug (the run still fails red, and Xvfb starting on a fresh hosted runner is highly reliable), but cheap to fix and appropriate since we took over Xvfb management manually. Both blocks were introduced by this PR, so both are in-scope. Take.
  2. Desktop daily-resolve not gated on commit at the engine level -- accurate but by-design and identical to the Server/macOS/Windows engines; the PR-triggered path is correctly gated by decide(). Skip (awareness only).
  3. Comment omits -nolisten tcp -- agreed (omission, not inaccuracy). Take, folded into the same edit.

Awareness, no action: decide() is fail-closed on the new product argument, and decide server noble-amd64 makes Linux Server a stricter (safer) gate than before -- both intended.

Actions Taken

  1. Fixed the Xvfb startup gap in both Linux engines (commit aba52f11e0): after the socket-wait loop, assert the X socket exists; if not, emit ::error::, dump /tmp/xvfb.log inline, and exit 1 rather than exec-ing Playwright against a dead display. Also documented -nolisten tcp and the fail-loud behavior in the comment (Assessment 1 and 3).
  2. Skipped the engine-level commit gate (Assessment 2) as by-design and consistent with the sibling engines.

@github-actions

github-actions Bot commented Jun 26, 2026 •

Copy link
Copy Markdown

🐧 Linux Desktop E2E · Ubuntu 24

❌ 2 test(s) failed

███████████████████░ 99% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
408 2 8 2
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · ubuntu-24.04 · commit aba52f11e01882842f00785faa7eedb05e9d37ac · Run #19

@github-actions

Copy link
Copy Markdown

🪟 Windows Desktop E2E · Server 2025 x64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
409 0 11 2
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · Windows Server 2025 x64 · commit aba52f11e01882842f00785faa7eedb05e9d37ac · Run #19

@ronblum
ronblum merged commit 438f318 into main Jun 29, 2026
20 of 23 checks passed
@ronblum
ronblum deleted the test/ron/add-linux-desktop-e2e-workflow branch June 29, 2026 17:23
kevinushey added a commit that referenced this pull request Jun 30, 2026
HtmlMessageListener.registerThemeOriginImpl reads pUserState_.get(), but the
Provider<UserState> field was never injected (the @Inject constructor took only
Provider<UserPrefs>), so it was null since 2019. When an r2d3 widget iframe
posts its 'ontheme' message the handler threw an uncaught TypeError, which also
meant r2d3 widgets never received the editor theme. Inject Provider<UserState>
and assign pUserState_.

Also enable GWT_STYLE=PRETTY for the Ubuntu Desktop and Server e2e build
workflows (folded into the GWT output cache key) so Linux client-exception
stacks are decodable, matching the macOS and Windows workflows; the Linux
workflows added in #18081 had been missing it. Remove the now-obsolete
test.fixme guard on the r2d3 consent test so it verifies the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant