Skip to content

Add Linux Server E2E automation (PR, scheduled, cache seed) + Server-mode test fixes - #17939

Merged
ronblum merged 30 commits into
mainfrom
aza/linux-automation
Jun 26, 2026
Merged

ronblum merged 30 commits into
mainfrom
aza/linux-automation

Conversation

@aza-torshko

@aza-torshko aza-torshko commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Reverts the previous change that replaced sudo cp -R with sudo ditto for installing RStudio.app in the macOS arm64 e2e workflow.

Intent

Undo the ditto-based installation change in .github/workflows/os-test-e2e-rstudio-desktop-os-macos-26-arm64.yml, restoring the original cp -R approach.

Approach

Straight revert of the prior commit. Both affected steps (tarball install and DMG install paths) are restored to their original form:

  • sudo cp -R "${{ github.workspace }}/RStudio.app" /Applications/
  • sudo cp -R "$MOUNT/RStudio.app" /Applications/ (with the pre-existing rm -rf removed)

Automated Tests

No logic changes; covered by existing e2e CI runs.

QA Notes

N/A

Documentation

No documentation changes required.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@aza-torshko
aza-torshko marked this pull request as draft June 11, 2026 17:03
@github-actions

github-actions Bot commented Jun 11, 2026 •

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

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

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
411 0 8 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 · macos-26 ARM64 · commit 019eb9b59a4304f3399214cea5f1217e754b001f · Run #12

@github-actions

github-actions Bot commented Jun 11, 2026 •

Copy link
Copy Markdown

🐧 Linux Server E2E · Ubuntu 24

✅ All tests passed!

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

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
393 0 20 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 019eb9b59a4304f3399214cea5f1217e754b001f · Run #12

aza-torshko added a commit that referenced this pull request Jun 13, 2026
Comparing playwright reports against PR #17939 (aza/linux-automation,
same merged main HEAD including #17950) shows the 3 macOS visual-mode
tests pass cleanly on the original ensureVisualMode -- so #17950 is
not the regression source. Our own additions in 27d470e were.

The dismissAllModals call after clickConfirmIfVisible is the most
likely culprit: it fires r.dialogs.dismissAll() right after the visual
mode confirmation is closed, which can also dismiss a follow-up
panmirror init dialog (or interrupt its setup chain). Removing it.

Also reverting the selectedTab.click() pre-toggle "focus race" fix
since the diagnosis it was built on (Kevin's #17950 reset breaking
visual mode) turns out to be wrong, and PR #17939 confirms the toggle
click alone is sufficient on the same merged main.

Restoring the timeout to 90s (PR baseline) -- 180s was masking a
self-inflicted hang.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
aza-torshko added a commit that referenced this pull request Jun 13, 2026
The macOS workflow's GWT output cache was keyed on
hashFiles('src/gwt/src/**/*.java', 'src/gwt/build.xml',
'src/gwt/conf/**') only -- which misses .ui.xml, .css, JS resources
under src/gwt/src, and src/gwt/acesupport/** / src/gwt/lib/**. The
Windows workflow already uses the broader pattern (review feedback);
the macOS side was overlooked in that fix.

Effect: a recent main change to a non-Java GWT input still produced
the same hash, so the cache hit a stale compiled GWT bundle. The
build then linked with old JS, and panmirror visual mode failed to
initialize in the editor tests (quarto render, rmarkdown spellcheck,
rmd templates display) -- editor stays on the loading spinner because
the cached bundle is missing the recent panmirror/UI changes pulled
in by the main merge.

Compared the same merge ref against PR #17939 (aza/linux-automation),
which builds without our macOS GWT cache step; those three tests pass
cleanly there.

Bumped the prefix to v2 so the existing stale cache entries don't get
restored via the restore-keys fallback.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
kevinushey pushed a commit that referenced this pull request Jun 15, 2026
* windows automation

* add MSVC build tools to PATH before Windows build

* move MSVC PATH step before install-dependencies

* work around Enterprise vs BuildTools MSVC detection

* install yarn for GWT build

* install yarn in bundled node dir

* use system npm to install yarn into bundled node directory

* install yarn to temp dir to avoid polluting bundled node

* Increase Windows e2e job timeout to 180 minutes

* add second shard

* Pin Windows e2e R to 4.5.3 to avoid R 4.6.0 startup crash

* Add R PATH fix and RStudio log upload for Windows e2e diagnostics

* remove concurrency block from Windows PR workflow to prevent stuck runs blocking new ones

* fix rig bin subcommand not found on Windows-construct R bin path directly

* Fix Windows RStudio crash and add GWT caching with cache seeder

- Switch from broken zip-of-electron-output to NSIS installer: the old
  approach packaged only the Electron shell, missing rsession.exe, GWT
  output, and vcredist DLLs, causing RStudio to crash immediately on
  startup. The NSIS installer includes all cmake-installed resources.
- Add GWT output cache (src/gwt/www, bin, extras) keyed on GWT sources.
  When the cache hits, the build uses nogwt to skip Ant compilation and
  goes straight to C++ + NSIS packaging.
- Add Windows cache seeder workflow that seeds rstudio-tools, sccache,
  and GWT caches on main so PR builds start warm.
- Fix R library caching: set PW_RSTUDIO_R_LIBS_USER so the sandbox uses
  the same path that e2e-deps installs and caches, stopping packages
  from being re-downloaded on every run.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* adding nsis to choco install

* Add e2e-merge sticky comment job to Windows workflow

* Fix Windows path separator and CRLF test failures; add report zip link to PR comment

* Fix Windows test flakiness: active-editor marker, completion popup wait, dataset preview timeout

* Fix Windows reformat trailing newline, readr path separators, and python completion skip

* Fix trimEnd TypeError and soft-skip readr preview on Windows CI

* Fix sccache on Windows CI by reading SCCACHE_ENABLED from env var

* Auto-detect C++ changes on Windows PR CI; build from source only when needed

* Use add_compile_options to force /Z7 for all targets including FetchContent deps

* Replace manual sccache setup with mozilla-actions/sccache-action (GHA backend)

* Replace manual sccache setup with mozilla-actions/sccache-action on macOS too

* Add detect-changes job to macOS PR workflow; align macOS reusable workflow with Windows (build_from_source input, daily auto-resolve, SHA-256, installer cache)

* Combine Windows and macOS PR workflows into one orchestrator; suppress npm build log noise

* Add GWT output cache for macOS and suppress npm noise on both platforms

* resolve macOS conflict markers,  alias bug, seed overlap/permissions, yarn comment, extract preview soft-skip helper

* scheduled pull-requests permission, winget non-interactive, pin sccache-action SHA, align build_from_source default

* Document workflow_call build_from_source default asymmetry between Windows and macOS

* split save-always caches, test.fixme soft-skips, CONNECT_API_KEY scheduled, rstudio_installer_url build guard, winget non-interactive, shard total from strategy

* Increase ensureVisualMode ProseMirror timeout 15s→30s to fix macOS CI flakiness

* add pull-requests: write to top-level permissions, pass GITHUB_TOKEN explicitly; bump ensureVisualMode timeout to 45s

* bump autocomplete popup timeout 5s→15s; resolve ignorefiles merge conflict

* address code review

* address code review: expand GWT cache key, gate rstudio-tools save on install success, add CI guard to test.fixme

* fix environment pane beforeEach click timeout; resolve shiny merge conflict

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>

* add Windows CI test.fixme guards for shiny interrupt, markdown preview, and r2d3 consent GWT failures

* Fix Windows build: fall back to msvc143 Boost/SOCI when runner toolset upgrades

* Increase ensureVisualMode timeout to 90s for slow CI runners

* Fix Windows build for VS 2026 and quarantine macOS preview flakes

- Override @electron/node-gyp with upstream node-gyp@^12 so the Electron
  native rebuild detects VS 2026 on the windows-2025 runner; the bundled
  fork (pinned by @electron/[email protected]) still only knows VS 2017-2022
  and was failing with "unsupported version: 18" after GitHub's
  runner-images#14017 rollout.
- Extend the cross-origin SecurityError test.fixme guards in markdown and
  rnotebook previews to cover darwin CI; same product bug, same fix.
- Bump ensureVisualMode ProseMirror visibility timeout 90s -> 120s to
  cover slow pandoc conversion on macOS 26 ARM64.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Override CMake generator to "Visual Studio 18 2026" for SOCI build

install-soci.R defaults its generator to "Visual Studio 17 2022", which
isn't installed on the new windows-2025 image. CMake aborts with
"could not find any instance of Visual Studio", install-soci leaves no
prebuilts on disk, and the main CMake build then dies on the missing
soci-msvc{143,145}-4.0.3 directory.

Pass CMAKE_GENERATOR=Visual Studio 18 2026 on the Install build
dependencies step. install-soci.R reads it via Sys.getenv and uses it
for every per-arch configure call. The resulting libs link cleanly
against the msvc143 Boost prebuilts the C++ build falls back to (MSVC
14.x is binary-compatible).

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Install node-gyp v12 and point npm at it for VS 2026

The Electron packaging step runs `npm ci && electron-forge package` in
desktop-build-AMD64. src/node/desktop ships a binding.gyp, so npm
triggers the rstudio package's install lifecycle and runs
`node-gyp rebuild` -- using npm's bundled node-gyp (v11.5.0 in
dependencies/common/node/22.22.2/.../npm/node_modules/node-gyp). v11
only knows VS 2017-2022 and aborts on VS 2026.

The earlier @electron/node-gyp override only fixes the @electron/rebuild
path. This is a separate spawn from npm's own lifecycle, so it needs a
separate override: install node-gyp@^12 to a throwaway dir and set
npm_config_node_gyp so npm uses it for the install lifecycle.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Replace bundled node-gyp inside the bundled npm tree instead of env var

The previous attempt set npm_config_node_gyp, but npm's docs are
explicit that this env var is the fallback used when node-gyp isn't in
PATH. For lifecycle scripts (the rstudio package's auto-generated
`node-gyp rebuild` install script driven by its binding.gyp), npm
pre-injects the bundled node-gyp into PATH, so the env var is silently
ignored and v11.5.0 still wins.

Surgical fix: install node-gyp v12 using the bundled npm, then copy it
on top of dependencies/common/node/.../node_modules/npm/node_modules/node-gyp.
Same pattern the workflow already uses to drop yarn into the bundled
node tree. Adds a sanity check that the replacement version really is
12.x before letting the build continue.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Install node-gyp v12 with --install-strategy=nested so deps come along

The previous replacement step copied node-gyp v12 over the bundled v11
correctly (verified: node-gyp -v reported 12.4.0 in the failed run),
but the build then died with "Cannot find module 'undici'". node-gyp
v12 added undici@^6 as a transitive dep, and the default hoisted
install strategy had landed undici/semver/tar/etc. in the temp dir's
top-level node_modules -- the Copy-Item only picked up node-gyp itself
and left its deps behind.

--install-strategy=nested forces npm to disable hoisting, so all of
node-gyp's transitive deps land inside node-gyp/node_modules/. The
copy then carries the full closure into the bundled npm tree, and
Node's require() resolves undici from node-gyp/node_modules/undici as
expected. Adds a pre-copy and post-copy assertion that undici is
actually present so we fail fast if the install layout ever changes
again.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Fix macOS e2e visual-mode tests broken by per-test reset activations

Three editor tests on macOS shard 1 -- render quarto document,
spellcheck in visual mode, rmd templates display -- regressed when
#17950 added activateEnvironment + activateFiles to the per-test reset
in test-reset.ts. The screenshots in playwright-report show the source
pane in the foreground with the Visual button selected, but the editor
area stays empty with a spinner: panmirror never finishes mounting.

Three targeted changes, each addressing a distinct concrete observation:

1. ensureVisualMode now clicks the active source tab before toggling.
   The reset's activations leave Files / Environment in the foreground;
   on macOS 26 the visual toggle then races the IDE's focus reconcile
   and panmirror's mount never starts. A short tab click puts the
   source pane up front; .catch swallows the no-active-tab case.

2. After the existing clickConfirmIfVisible, ensureVisualMode now also
   calls dismissAllModals as a sweep. The visual toggle can stack a
   secondary dialog under the confirmation; dismissAll is a no-op when
   nothing is showing, so it's safe on the happy path.

3. ProseMirror visibility timeout 120s -> 180s. macOS 26 ARM64 has been
   pushing the upper bound and 120s no longer covers the slowest runs.

Separately, the rmd templates display test was hitting a non-modal
"Package thematic required but is not installed" banner on opening the
"Theming with bslib and thematic" template (visible in the failure
screenshot). The banner is a notification, not a dialog, so neither
installDepIfPrompted nor clickConfirmIfVisible touches it. Pre-install
thematic and bslib alongside rmarkdown / remotes in beforeAll so the
template renders directly.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Skip Windows-only data viewer End-scroll assertion from #17958

The new End-scrolls-to-the-last-row test added in #17961 fails on
windows-2025 with cellBox.y + cellBox.height = 332.25 vs viewportBox.y +
viewportBox.height + 0.5 = 308.5 -- the last row lands ~24 px below the
viewport's bottom even though visibleBodyHeight already subtracts the
10 px custom horizontal scrollbar overlay. The overshoot matches
neither the header height nor the scrollbar height, so it's likely a
row-height or viewport-clientHeight delta on Windows Chromium/Electron
that ensureActiveCellVisible (rowBottom - bodyHeight) doesn't yet
model. The product fix in #17961 was developed on macOS with overlay
scrollbars and never exercised on Windows.

Skip on win32 CI with a comment that points at the originating issue
and PR so the next person (with a Windows box to repro on) can tune
visibleBodyHeight -- or the test's tolerance -- without re-deriving the
diagnosis.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Skip 3 macOS visual-mode tests broken by #17950 per-test reset

After bumping the ensureVisualMode timeout to 180s, refocusing the
source pane before the toggle, sweeping modals after OK, and
pre-installing thematic+bslib so the package banner doesn't appear,
the editor still sits on the loading spinner on macOS 26 ARM64 for the
full timeout. The pattern is identical across all three: panmirror
never mounts after the visual toggle is clicked. The regression
started landing after #17950 added activateEnvironment + activateFiles
to the per-test reset; runs on the prior main HEAD (sha 86a96b0 at
12:18 UTC) had these three tests passing cleanly.

Skip on darwin CI with the diagnostic notes inline so the reset PR
owner has a starting point. Windows and Linux paths are unaffected.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Revert "Skip 3 macOS visual-mode tests broken by #17950 per-test reset"

This reverts commit 4ba7dfa.

* Revert ensureVisualMode resilience changes -- they were the bug

Comparing playwright reports against PR #17939 (aza/linux-automation,
same merged main HEAD including #17950) shows the 3 macOS visual-mode
tests pass cleanly on the original ensureVisualMode -- so #17950 is
not the regression source. Our own additions in 27d470e were.

The dismissAllModals call after clickConfirmIfVisible is the most
likely culprit: it fires r.dialogs.dismissAll() right after the visual
mode confirmation is closed, which can also dismiss a follow-up
panmirror init dialog (or interrupt its setup chain). Removing it.

Also reverting the selectedTab.click() pre-toggle "focus race" fix
since the diagnosis it was built on (Kevin's #17950 reset breaking
visual mode) turns out to be wrong, and PR #17939 confirms the toggle
click alone is sufficient on the same merged main.

Restoring the timeout to 90s (PR baseline) -- 180s was masking a
self-inflicted hang.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Expand macOS GWT cache key to non-Java sources; bump prefix to v2

The macOS workflow's GWT output cache was keyed on
hashFiles('src/gwt/src/**/*.java', 'src/gwt/build.xml',
'src/gwt/conf/**') only -- which misses .ui.xml, .css, JS resources
under src/gwt/src, and src/gwt/acesupport/** / src/gwt/lib/**. The
Windows workflow already uses the broader pattern (review feedback);
the macOS side was overlooked in that fix.

Effect: a recent main change to a non-Java GWT input still produced
the same hash, so the cache hit a stale compiled GWT bundle. The
build then linked with old JS, and panmirror visual mode failed to
initialize in the editor tests (quarto render, rmarkdown spellcheck,
rmd templates display) -- editor stays on the loading spinner because
the cached bundle is missing the recent panmirror/UI changes pulled
in by the main merge.

Compared the same merge ref against PR #17939 (aza/linux-automation),
which builds without our macOS GWT cache step; those three tests pass
cleanly there.

Bumped the prefix to v2 so the existing stale cache entries don't get
restored via the restore-keys fallback.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Broaden detect-changes regex to all of package/

The workflow trigger paths include package/** but the detect-changes
regex only matched package/win32/ and package/osx/. A change to
package/CMakeLists.txt (the parent packaging cmake, consumed by every
platform build) or package/linux/ would trigger the workflow yet set
build_from_source=false, so CI would run tests against the daily
installer instead of the PR's actual changes -- false green on
packaging-script PRs.

Match all of package/ instead.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* Namespace playwright artifacts per platform; cover root CMakeLists.txt

Two CI logic fixes from re-review:

1. Artifact-name collisions across the macOS + Windows fan-out.
   Both reusable workflows uploaded playwright-blob-report-${shard}
   and playwright-report under identical names. With both running in
   the same PR run, the e2e-merge job that ran second downloaded
   playwright-blob-report-* (merge-multiple: true) and would mix
   blob reports from both platforms into a single merged report.
   Confirmed in the most recent run: two artifacts each named
   playwright-blob-report-1, playwright-blob-report-2, and
   playwright-report -- one per platform. Whichever merge ran last
   pulled both sets via the wildcard pattern.

   Fix: prefix per-shard blob report names and the merged-report
   names with the platform (-win-, -mac-) and tighten each merge
   job's download pattern to match only its own platform's blobs.

2. Repo-root CMakeLists.txt was missing from both the workflow
   pull_request.paths trigger and the detect-changes regex. A PR
   touching only the root CMakeLists.txt wouldn't trigger this
   workflow; if combined with another trigger path it could still
   route to a daily installer instead of the PR build.

   Fix: add CMakeLists.txt to paths and ^CMakeLists\.txt$ to the
   detector regex so any root-cmake change forces a source build.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

---------

Co-authored-by: Claude Sonnet 4.6 <[email protected]>
@github-actions

github-actions Bot commented Jun 15, 2026 •

Copy link
Copy Markdown

🪟 Windows Desktop E2E · Server 2025 x64

✅ All tests passed!

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

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
410 0 11 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 · Windows Server 2025 x64 · commit 019eb9b59a4304f3399214cea5f1217e754b001f · Run #12

@aza-torshko
aza-torshko changed the base branch from main to rel-blue-plumbago June 16, 2026 19:13
@gtritchie gtritchie added this to the 2026.07 (Pacific Dogwood) milestone Jun 16, 2026
@ronblum

ronblum commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

Review

Findings from @gtritchie's automated multi-agent review (comment), restated in brief.

Important:

  1. sql_preview_security.test.ts -- the preview-consent timeout was changed from fileOpen (20000) to consoleReady (15000) while the comment claims a more generous wait; the new value is shorter, and the test is @desktop_only.
  2. Six @desktop_only Server skips carry bare TODO(aza) markers with no issue number, risking permanent silent coverage gaps.
  3. The SQL and r2d3 preview-consent tests hit the same GWT null-deref but are handled inconsistently -- r2d3 uses test.fixme, SQL uses @desktop_only.
  4. The session_restart.test.ts skip (guards .rs.api.restartSession() Command no longer allows variables to be referenced #14636) may hide a real Server-side regression rather than a test artifact.
  5. In the results workflow, a failed jq parse leaves the summary outputs empty; the post-comment gate uses != '0', which empty strings satisfy, so a blank or garbled PR comment can post.
  6. canWriteDir's bare catch routes any error to the R-side fallback, not only permission errors.
  7. R's unlink() returns 1 rather than throwing, so the R-side delete fallback never surfaces a failed removal.
  8. seedSandboxFile's R fallback runs dir.create then writeLines without checking the directory was created.
  9. Comment-rot: a bare SessionProjectContext.cpp:1175 reference, run-specific phrasing, and obfuscated GWT symbols.
  10. The build job's timeout-minutes: 90 may not cover a fully cold first seed run.

Assessment

Each finding was verified against the branch. The cited line numbers did not match the files (they appear to be offsets from a concatenated review blob), so findings were checked by content.

  1. Agree, low severity. Confirmed consoleReady (15000) < fileOpen (20000); the "generous" comment is backwards, and its Server rationale is moot on a desktop-only test. Folds into 3.
  2. Agree on substance; the count is off. There are five literal TODO(aza) markers, plus global_prefs_panels.test.ts, which has a @desktop_only skip and no tracking marker at all. The underlying point -- untracked skips -- holds.
  3. Agree. r2d3 already uses the better test.fixme(server) pattern (added, then refined, in this PR); SQL was left on @desktop_only. Same WXc/VXc null-deref.
  4. Partly disagree, recharacterized. The skip comment blames save_workspace=never, but that preference is set on Desktop too (where the test passes), so it cannot be the cause. The failure matches the shared post-restart console-garbling artifact described by the two sibling restart skips. Very likely a test-harness issue, not a .rs.api.restartSession() Command no longer allows variables to be referenced #14636 regression -- though not positively proven, since proof needs a non-console read of workspace survival.
  5. Agree, low likelihood, cheap fix. Only the exit 1 path leaves outputs empty; the missing-file path already defaults to 0. Gating on outcome == 'success' plus TOTAL > 0 closes it.
  6. Weak and largely theoretical. accessSync realistically throws EACCES/ENOENT, which the fallback is for, and the fallback is byte-designed. Lean skip.
  7. Partly agree. Both delete paths are best-effort by design (the Node path also swallows errors), so this is consistent, not a regression. A console.warn is a diagnostic nicety. Optional.
  8. Agree, minor. Real asymmetry with the Node path, which throws on mkdir failure; Server-fallback only. Optional.
  9. Partly agree, trivial. The function name is already present beside the line number; just drop the brittle :1175 and the run-specific phrasing.
  10. Fair caution, verify only. The seed has run green, which suggests a cold build already fits.

Actions Taken

Filed two issues:

Applied in this PR (commit 5b77871):

Verified: tsc --noEmit clean, and sql_preview_security.test.ts passes 4/4 on Desktop.

Decided against: finding 5 (post-comment gate). The parse step already fails red with a ::error::Failed to parse test-results.json annotation, and the resulting blank comment is itself a useful on-PR signal that the results file couldn't be read. This also keeps the Linux workflow consistent with the existing macOS and Windows workflows, which gate the comment the same way.

Optional and not planned: narrowing canWriteDir (6), warn-on-unlink (7), gating seedSandboxFile's write on mkdir (8).

Verify only: cold-seed build timeout headroom (10).

@ronblum

ronblum commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Merged main into this branch to clear the conflict state and resolved the two
conflicts. Merge commit 9e3265d.

Verified: tsc --noEmit clean on the merged e2e; actionlint clean apart from a
pre-existing style nit.

@ronblum

ronblum commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Review

Ran a four-agent review (code style, comments, test coverage, silent failures) scoped strictly to this PR's three-dot diff against main. No Critical or blocking issues. The agents converged on a few items, most notably the readr install in the Import Dataset beforeAll, flagged from three angles: wrong Linux repo, unverified install, and an inaccurate comment.

Assessment

Taken (behavior):

  1. import_dataset.test.ts beforeAll installed readr from the source-only PPM URL on Linux, never checked the result, and the comment claimed it also installed pillar (it didn't -- pillar is already seeded via REQUIRED_PACKAGES).
  2. The "Seed R packages" workflow step used the bare PPM URL (source on Linux, despite a comment claiming binaries), and install.packages() exits 0 even when an install fails.

Taken (polish): a Server skip not wired to its tracker, a Desktop-only test that had quietly switched to force-click, a duplicated comment block, transient glyph specifics in two skip rationales, a dead regex branch, a discarded helper return value, and three workflow comment-wording fixes.

Skipped (correct as-is): the best-effort cleanup unlink, the broadened release-notes initial-URL check, the +30s sandbox readiness wait, and the partial-shard report-table edge case (the job still fails red).

Actions Taken

One commit, 10 files:

  1. import_dataset.test.ts -- route through ensurePackages(['readr']) (correct per-platform binary repo, failures surfaced) and correct the comment.
  2. Server workflow -- seed from the __linux__/noble binary repo and fail loud (::error:: + quit(status=1)) if any package is missing; reference the NO_REBUILD/GWT_BUILD mechanism by name instead of line numbers; reword the pandoc comment.
  3. Wire the Global Options Python-panel skip to its tracker, e2e: Re-enable the Server-mode tests skipped in PR #17939 #18064.
  4. debugger.test.ts -- Desktop reverts to a normal click (force-click only ever helped Server, which is skipped); keep the new visibility wait; reframe the comments as a working hypothesis.
  5. Comment-only tidy-ups: the duplicated files.ts rationale, the two restart-test glyph descriptions, the terminal regex's dead branch plus an authoritative-check note, and capturing seedSandboxFile's return in build_pane_testthat.test.ts.
  6. Reword the cache-seed workflow comment.

Verified: tsc --noEmit clean; actionlint clean apart from pre-existing style nits. Branch synced with main.

Copilot AI changed the title add Linux Server E2E automation (PR, scheduled, cache seed) + Server-mode test fixes Revert "Use ditto to install RStudio.app on macOS e2e jobs" Jun 26, 2026
@ronblum ronblum changed the title Revert "Use ditto to install RStudio.app on macOS e2e jobs" Add Linux Server E2E automation (PR, scheduled, cache seed) + Server-mode test fixes Jun 26, 2026
@ronblum
ronblum removed their request for review June 26, 2026 15:25
@ronblum
ronblum merged commit 7397736 into main Jun 26, 2026
19 checks passed
@ronblum
ronblum deleted the aza/linux-automation branch June 26, 2026 17:17
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.

4 participants