Skip to content

Add a Windows 11 arm64 e2e test engine - #18675

Merged
ronblum merged 12 commits into
mainfrom
test/ron/e2e-windows-11-arm64-workflow
Aug 31, 2026
Merged

ronblum merged 12 commits into
mainfrom
test/ron/e2e-windows-11-arm64-workflow

Conversation

@ronblum

@ronblum ronblum commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Adds os-test-e2e-rstudio-desktop-os-windows-11-arm64.yml, an e2e engine for Windows 11 on ARM.

RStudio has no Windows arm64 build, so there's nothing native to test. What this engine covers is what Windows-on-ARM users actually run: the x86_64 Desktop installer under Windows' x64 emulation. The build job stays on windows-2025 and only the test job moves to windows-11-arm, so there's no arm64 toolchain and no second set of build caches. R stays x86_64 too, since the emulated rsession.exe needs an x86_64 R.dll.

windows-11-arm is a standard GitHub-hosted runner, free on public repos, with the same 4 vCPU and 16 GB as windows-2025.

Two platform differences needed handling:

  • os-e2e-deps assumed Windows means Windows Server. Install-WindowsFeature doesn't exist on Windows client, so the Media Foundation step failed outright. It's now skipped when the cmdlet is absent, which can't change behavior on Server, and Media Foundation ships with Windows client anyway.
  • 1Password publishes no Windows arm64 build of the op CLI, and load-secrets-action picks its CLI by architecture, so it 404s. This engine downloads the x86_64 CLI and runs it under emulation instead, resolving the same .env.op references. It warns and continues without credentials rather than failing the run.

Verified on real runs: the full suite passes 614 of 623, Posit AI signs in, and the Assistant tests pass including a multi-turn model round trip.

Six failures remain, and all six pass on the x86_64 sibling against the identical daily build, so they look like genuine emulation problems rather than engine defects:

  • markdown preview, Quarto render, and RMarkdown knit -- the Viewer pane iframe never appears
  • two readr Import Dataset previews -- the IDE reports "Operation finished with error code"
  • Build pane testthat -- output never contains "Test complete"

The engine is dispatch-only for now. Wiring it into the scheduled rotation and the certification matrix is left for a follow-up, matching the issue.

Addresses #18542.

@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
2556 0 184 3
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 640 0 38 1
✅ desktop-macos 646 0 33 1
✅ desktop-windows 645 0 39 1
✅ server-linux 595 0 44 0
✅ setup 28 0 20 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

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


All platforms - commit 7ce69a8a8aa206726cf1ef5d3421f0e989713901 - Run #778

@ronblum

ronblum commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

Review

A review pass over this PR raised the following, scoped to the delta between the new engine and its sibling os-test-e2e-rstudio-desktop-os-windows-server-2025.yml plus the added lines in os-e2e-deps.

Correctness:

  1. Five artifact and report identifiers were still byte-identical to the sibling: the blob report name and its merge pattern, the per-shard report, the merged report, and the S3 label. Latent while the engine is dispatch-only, but once it joins the PR gate or the rotation, playwright-blob-report-win-* would pull the Server engine's blobs into this engine's merge, and both engines would publish to the same S3 prefix.
  2. The credential step caught every failure and continued with a warning. Because the step only runs when the service-account token is already known present, everything it absorbed was a real defect (a 404, a corrupt archive, a revoked token, a renamed vault item), and the job still reported green where the sibling would fail.
  3. The multi-line guard on resolved secrets could never fire: -join '' removes the newlines before -match '[\r\n]' tests for them, so extra stdout would be silently concatenated onto a secret rather than rejected.
  4. Only one resolved reference was required, not all of them, so a .env.op entry the regex missed would be skipped without a trace.
  5. The sticky PR comment still identified itself as "Server 2025 x64" in both its header and its footer.
  6. inputs.project || 'desktop' was redundant, since project defaults to desktop in both trigger blocks.
  7. The Media Foundation guard added to the shared action detects Windows Server by probing for Install-WindowsFeature under pwsh. The concern raised was that PowerShell 7 filters Desktop-edition modules out of command discovery, which would make the guard skip the install on Server as well, silently affecting the existing Windows engine.
  8. install-database-stack: 'true' is absent here but set by every other desktop engine, with no recorded reason.

Comments: several were longer than the one-to-two-line standard, and several asserted facts about the outside world (a vendor's published artifacts, product support) that nothing would revisit when they change.

Assessment

Verified before acting: all five identifiers were confirmed identical to the sibling; project does default to desktop in both blocks; and the multi-line guard was reproduced in pwsh, where two lines return as Object[] count 2, -join '' yields a single concatenated string, and the [\r\n] test returns False.

Taken: 1 through 6, plus the comment trims.

Finding 7 was treated as blocking on evidence rather than decided by argument. This PR's own gate exercised the modified action on windows-2025, and the log shows "Media Foundation install started in the background (scheduled task)", "Media Foundation installed.", and Success {Media Foundation}, with no skip message. The cmdlet resolves under pwsh on that image, so the guard behaves correctly on Server and the detector was left alone.

Finding 8 was not taken. arm64 ODBC drivers and a database server on Windows-on-ARM are unverified, and this platform has already shown that emulation breaks real functionality. The input stays off, with a comment recording why, and enabling it is tracked separately.

One suggestion was skipped as speculative: a marker file to couple the two Media Foundation guards, for a divergence that does not exist.

Actions Taken

os-test-e2e-rstudio-desktop-os-windows-11-arm64.yml:

  • Renamed the colliding identifiers to playwright-blob-report-win11arm-*, playwright-report-win11arm-shard-N, playwright-report-win11arm, and label: windows11arm.
  • The credential step now emits ::error:: and exits 1 instead of warning. The no-token path is untouched and still warns and continues.
  • Secrets are checked for line count before joining, and every op:// reference must resolve or the step fails.
  • Corrected the PR comment header and footer to Windows 11 arm64.
  • Dropped the redundant || 'desktop'.
  • Trimmed the header, cache-scope, and credential comments; fixed the version-pin rationale, which had the argument backwards.
  • Recorded why the database stack is off for arm64.

os-e2e-deps/action.yml:

  • Shortened the guard comments, removed a hardcoded runner label from a shared action, and corrected the claim to what the guard actually proves.
  • The skip now emits ::notice:: rather than a plain log line, so it is visible as an annotation.
  • Widened the cache-scope description, which is now set by a Windows caller and also keys the Playwright browser cache.

@ronblum ronblum self-assigned this Aug 31, 2026
@ronblum
ronblum merged commit 1f33d2c into main Aug 31, 2026
29 checks passed
@ronblum
ronblum deleted the test/ron/e2e-windows-11-arm64-workflow branch August 31, 2026 22:34

This branch was previously deployed

1 inactive deployment
e2e-playwright — 7ce69a8a Deployed Aug 31, 2026 by ronblum via windows / e2e-desktop-windows (4) #778
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