Repository navigation
Description
PR #17939 brought RStudio Server (Ubuntu 24) under the E2E Playwright
automation lifecycle. To land the suite green, several tests that fail on
Server were tagged @desktop_only (each marked with a TODO(aza) comment)
because the failures look test-side rather than product-side. This issue
tracks re-enabling them on Server. It replaces the per-test follow-up TODOs;
each TODO(aza) comment can be updated to reference this issue.
The skips fall into three groups by suspected cause.
Group 1 -- post-restart console output unreadable on Server
e2e/rstudio/tests/panes/misc/session_restart.test.ts(guards .rs.api.restartSession() Command no longer allows variables to be referenced #14636)e2e/rstudio/tests/panes/console/r_session_restart.test.tse2e/rstudio/tests/panes/console/package_installation.test.ts
After an R session restart on Server, the post-restart console fills with
escape-sequence glyphs (long runs of ה/X) instead of the marker the
helper prints via afterRestart's cat(), so the console text match never
succeeds. All three suites share ConsolePaneActions.restartSession() and
read the restart result off console text.
Note for session_restart.test.ts: it guards #14636 (variables defined
before a restart survive into the after-restart command). The skip comment
attributes the failure to save_workspace=never, but that preference is set
on Desktop too (where the test passes), so it is likely not the cause. When
re-enabling, confirm workspace survival through a sentinel file
(file.exists) or the automation bridge rather than scraping console text,
so the harness fix also rules out a genuine Server-side regression.
Group 2 -- GWT null dereference during preview consent
e2e/rstudio/tests/panes/editor/sql_preview_security.test.tse2e/rstudio/tests/panes/editor/r2d3_preview_security.test.ts(already
test.fixmeon Server)
The preview consent and render flow raises an uncaught client exception
(Cannot read properties of null, obfuscated symbol WXc on Linux Server
and VXc on Windows CI). This looks like a src/gwt/ product issue rather
than a test issue; decoding the stack needs a build with -DGWT_STYLE=PRETTY.
For consistency, sql_preview_security.test.ts would ideally use the same
test.fixme(... mode === 'server') treatment as r2d3_preview_security.test.ts
so it stays visible in reports and re-enables automatically once the GWT bug
is fixed.
Group 3 -- other Server-specific UI timing
e2e/rstudio/tests/panes/debugger/debugger.test.ts-- clicking a call
frame to switch the Environment context.e2e/rstudio/tests/preferences/global_prefs_panels.test.ts-- the Python
interpreter selector modal does not open within the timeout on Server.e2e/rstudio/tests/projects/project_id.test.ts-- the second
restartSessionWithSentinel(after clearingproject_user_data_directory)
times out waiting forwindow.rstudio.ready. Server logs show the session
restarts cleanly (event stream up ~2s,client_init1-3s), so this is the
bridge readiness signal not re-arming across a Server restart, not a slow or
failed session -- distinct from Group 1's console-text problem. Intermittent;
the first restart in the same test passes, and Desktop passes.
Done when
- Each test above runs on Server or carries a
test.fixmetied to a tracked
product issue, with no bareTODO(aza)markers remaining. - The .rs.api.restartSession() Command no longer allows variables to be referenced #14636 guard confirms workspace survival without relying on console text.
See PR #17939.
Activity
Track Server-mode test skips in #18064 and #18065 and fixme the SQL skip
Skip project_id on Server for a restart-readiness flake tracked in #1…
Add Linux Server E2E automation (PR, scheduled, cache seed) + Server-…
e2e: fix four flakes from the pr-18229 all-platforms report (#18234)