Skip to content

Add Linux Desktop E2E engines for the missing architectures - #18452

Merged
ronblum merged 13 commits into
mainfrom
test/ron/e2e-linux-workflow-arch-gap
Aug 6, 2026
Merged

ronblum merged 13 commits into
mainfrom
test/ron/e2e-linux-workflow-arch-gap

Conversation

@ronblum

@ronblum ronblum commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Until now every Linux Desktop E2E engine ran on one CPU architecture only. Of the eight Linux OS versions covered, five were tested on x86_64 alone, two on ARM64 alone, and only Ubuntu 24 on both. This adds the missing architecture for the other seven, so each Linux OS version can now be tested on x86_64 and on ARM64.

It also schedules the ARM64 Ubuntu 24 engine, which already existed but had never been wired into the nightly rotation, and moves the dedicated macOS 14 cron from Monday to Friday.

New engine configs

Five Linux OS versions were tested on x86_64 only and now have an ARM64 engine:

fedora-43-arm64, fedora-44-arm64, rocky-9-arm64, ubuntu-22-arm64, ubuntu-26-arm64

Two were tested on ARM64 only and now have an x86_64 engine:

debian-13-x86_64, rocky-10-x86_64

Each is a new JSON file under .github/e2e-linux/, copied from the engine of the same OS version on the other architecture, with every key that must not collide between architectures given a distinct value: sccache_key_prefix, installer_artifact, e2e_deps_cache_scope and pw_label. The three build cache keys are deliberately shared where the two architectures' builds are byte-compatible, which the README already documents.

All seven are dispatch-only: they appear in the engine workflow's os choice list for hand dispatches but have no row in the nightly rotation, so they cost no scheduled runner time. Wiring any of them into the rotation stays a separate decision, one engine at a time.

Fixes to shared hooks, found by running the new engines

Adding a second architecture exercised shared code that had only ever run on one, surfacing four real defects. Three affect engines already on a schedule.

  • ubuntu-22/build-setup.sh read JAVA_HOME_17_X64 and fell back to an amd64 JVM path unconditionally, so the arm64 engine exported a nonexistent JAVA_HOME and the GWT build could not find javac. Now selected by dpkg --print-architecture.
  • debian-13/post-r-setup.sh rewrote /etc/os-release's VERSION_CODENAME to noble unconditionally. Its own comment gives the reason that must not apply to x86_64 ("PPM already serves trixie x86_64 binaries; arm64 is the only gap"), so the rewrite is now arm64-guarded.
  • fedora/e2e-setup.sh was missing libgit2-devel, so gert failed to configure, cascading through usethis to devtools, which is in required-packages.txt. This affects the two x86_64 Fedora engines in the rotation, which appear to have been surviving only on a warm R-library cache.
  • The four Fedora configs were the only container engines not passing --shm-size=2g. Docker's 64 MB default /dev/shm crashed the Electron renderer mid-suite (Target crashed, concentrated in reload- and repaint-heavy tests, alongside ~20 flaky results). Also affects both x86_64 Fedora engines.

ubuntu-22-arm64 additionally needs PKG_INCLUDE_LINKINGTO=TRUE and a -dev header set: PPM publishes no jammy arm64 binaries, and pak plans the install assuming binaries, which omits LinkingTo dependencies and then cannot recover when PPM serves source.

Rotation changes

  • ubuntu-24-arm64 joins the rotation on Thursday and in the Sunday full-matrix run. Its config already existed and was hand-dispatchable but had no rotation entry, so no cron path could select it. ubuntu22 moves from Thursday to Wednesday to make room.
  • The dedicated macOS 14 cron moves from Monday 16:00 UTC to Friday 16:00 UTC. All three co-dependent places are updated together (the cron: string, the concurrency group expression, and the pick job branch); a mismatch in any one changes behavior silently rather than failing. Friday 16:00 lands inside three of the eight October 2026 brownout windows for the deprecated macos-14 image (Oct 16, 23 and 30), against Monday's four -- that cost is now recorded in the comment, along with the exact dates, verified against [macOS] macOS 14 Sonoma retirement: GitHub Actions and ADO arm64 on November 2; ADO Intel on November 23 actions/runner-images#13518.

Other

  • ubuntu-26-x86_64's daily_platform_key becomes resolute-amd64 rather than noble-amd64, with the matching resolute_amd64 output added to the scheduled workflow's resolve job so the version-pinned path stays correct. Both keys alias the same jammy-built deb today, so this is self-documentation, not a change of artifact.
  • Three Ubuntu installer_artifact values gain their arch suffix, per the convention the README already states. rstudio-desktop-deb-ubuntu-24 was a prefix of ubuntu-24-arm64's value, and the merge job collects blobs by glob.
  • The two Fedora x86_64 engines' build_timeout_minutes rise from 90 to the 150 every other container engine uses. A measured fully-cold container build in this work took 119 min 45 s, so 90 is not enough for that shape. Addresses Linux E2E branch dispatches time out building from source on cold caches (build_timeout_minutes: 90) #18404.
  • uninstall-posit-ai.test.ts guards its beforeAll on isPositAiAuthenticated(). requireAiCredentials gates via beforeEach, which Playwright runs after beforeAll, so this file -- the only one managing its own session rather than taking the rstudioPage fixture -- turned what should be a clean skip into a failed test whenever its setup failed.
  • Header and README claims that this work falsified are corrected, including the "no two engines share a cache key" statement and the examples of engines reusing another's daily build.

Validation

Validated pre-merge with a temporary push-triggered caller, removed again in this PR. Eleven runs per iteration: eight daily-install plus three source-build, the latter chosen to cover the distinct build shapes (bare arm64 twice, container arm64 once).

Final state: 10 of 11 green, plus separate dispatches confirming the three x86_64 rotation engines this PR modifies (fedora-43-x86_64, fedora-44-x86_64, ubuntu-26-x86_64).

Both remaining failures are pre-existing intermittent test problems on dispatch-only or already-scheduled engines, not config defects, and neither reproduces reliably:

  • s4_unloaded_package.test.ts:192 fails intermittently under a full suite on Ubuntu 26, both architectures -- it failed a scheduled ubuntu-26-x86_64 run during this work and passes when run alone.
  • ubuntu-22-arm64 failed one test per run but a different one each time, alternating between build paths.

@ronblum ronblum added this to the 2026.08 (Yellow Yarrow) milestone Aug 5, 2026
@posit-snyk-bot

posit-snyk-bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

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

Passed Failed Skipped Flaky
1746 0 302 7
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ desktop-linux 490 0 90 1
✅ desktop-macos 494 0 86 2
✅ desktop-windows 495 0 90 2
✅ server-linux 249 0 36 2
✅ setup 18 0 0 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 3c9e8c1f0d4ff9f3a7852cb1d382bd2687f9924c - Run #450

@ronblum

ronblum commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

Review

A branch review of all nine commits raised five findings: three Medium, two Low.

  1. Medium -- .github/e2e-linux/rocky-9-arm64.json with .github/e2e-linux/rocky-9/e2e-setup.sh. This change set gives source-compiling engines two things (libgit2 headers for gert, and PKG_INCLUDE_LINKINGTO=TRUE where PPM serves source from a binary-configured repo), but neither reaches the new rocky-9-arm64 engine, which shares rocky-9/e2e-setup.sh. That hook's own comment says source compilation is the norm on the arm64 engines. Predicted failure: os-e2e-deps either fails compiling gert for want of headers, or aborts with the same LinkingTo planning error the ubuntu-22 comment documents.

  2. Medium -- .github/e2e-linux/ubuntu-26-arm64.json, which uses script_dir: ubuntu. That shared hook installs runtime libraries only, no compiler and no -dev headers, by design. It works for Ubuntu 24 because PPM serves noble ARM64 binaries, but nothing in the repo establishes that PPM serves resolute ARM64 binaries, and the diff itself shows ARM64 coverage is per-release. Predicted failure: if __linux__/resolute/latest is source-only for ARM64, every package is compiled with no toolchain present and the run dies at the hard stop() gate.

  3. Medium -- os-test-e2e-rstudio-scheduled.yml and three configs. Three daily_platform_key values are new or changed with nothing in the repo corroborating them: resolute-amd64 (was noble-amd64), resolute-arm64, and rhel9-arm64. The resolve job calls emit for every platform key with || exit 1, so a single missing key fails the job and blocks every engine in a version-pinned dispatch, including macOS and Windows.

  4. Low -- uninstall-posit-ai.test.ts. The new beforeAll guard re-implements the gate's predicate: requireAiCredentials decides skip-vs-run in beforeEach via the store check, and beforeAll independently calls the same underlying function. The two can drift if the gate later keys on anything else. Predicted failure: the gate is relaxed, beforeAll still returns early, page stays undefined, and every test fails with a TypeError instead of skipping.

  5. Low -- four new configs. The new pw_label values are versioned and arch-suffixed (linux-rocky10-x86_64, linux-fedora43-arm64, linux-debian13-x86_64) while the existing siblings they pair with use bare or unversioned forms (linux-rocky-arm64, linux-fedora, linux-fedora43, linux-debian-arm64, and linux). Nothing breaks, but a distro's two architectures can't be recognised as a pair by name in the reporting data.

Assessment

Findings 1, 2 and 3 rest on premises the validation runs contradict. The reviewer had no access to run logs, so these are reasonable inferences from the source text rather than oversights.

  1. Rejected. rocky-9-arm64 does not source-compile. Its run shows zero installing *source* package lines,
    installing *binary* package 'pak', and R itself arriving as cdn.posit.co/r/rhel-9/pkgs/R-4.6.1-1-1.aarch64.rpm -- PPM's rhel9 repo serves aarch64 binaries. The engine needs neither the header nor the pak flag, and it passed on both the daily-install and source-build paths. The quoted hook comment predates this engine: when it was written, "the arm64 engines" meant Rocky 10 ARM64, Debian 13 ARM64 and the Fedoras.

  2. Rejected on the failure, accepted on the documentation point. Same evidence: zero source compiles and 45 binary installs from __linux__/resolute/latest. PPM does serve resolute ARM64 binaries, so the predicted stop() cannot fire, and the engine passed on both paths. The reviewer is right that the repo never states this, which is exactly why it couldn't be ruled out from the source alone.

  3. Rejected. All three keys are present in the manifest, and a dispatch of ubuntu-26-x86_64 resolved and SHA-256-verified its installer against the new key.

    Both halves of the suggested fix are also unsuitable, which is worth stating rather than deferring. Making each emit non-fatal would reintroduce the bug this change fixes: an empty rstudio_installer_url means "self-resolve the latest daily" downstream, so a missing key would make a version-pinned dispatch quietly install the latest daily instead of failing. The hard || exit 1 is deliberate. Resolving only the keys the selected engines need is defensible, but resolve has no needs: and therefore no access to the selection, so it means adding needs: pick and restructuring a job this change adds one line to.

    The blast radius is narrower than described in any case: resolve exits early with empty outputs unless a dispatch supplies an explicit version, so no scheduled run reaches emit at all.

  4. Accepted. Today the two predicates are identical, but that identity was invisible and unenforced, and the failure mode it invites is a confusing TypeError in place of a skip.

  5. Accepted, and the reviewer's alternative fix taken. The new labels are correct and the older ones are the debt. They can't be renamed without breaking their reporting series, so the renames belong in their own change rather than here, where they would touch engines this one otherwise leaves alone -- but the freeze is now documented in the README so it no longer reads as an oversight. Enumerating from source while writing that up turned up a fifth non-conforming value the finding's list and my own notes had both missed (fedora-43-x86_64 uses linux-fedora43, versioned but with no arch).

Actions Taken

Finding 4 applied in 3e5a4d23da:

  • e2e/rstudio/utils/ai-credentials.ts gains an exported hasAiCredentials(provider), now the single predicate behind both the gate and any beforeAll guard. requireAiCredentials calls it and switches only to choose the skip message, so behaviour is unchanged.
  • uninstall-posit-ai.test.ts guards its beforeAll on hasAiCredentials('positai') instead of reaching past the gate to the store check directly.

The predicate is async because the Copilot store check reads the agent's auth.db from a child process; the Posit AI check remains synchronous underneath. tsc --noEmit is clean.

The documentation points behind findings 2 and 5 are also applied, in 10d9895463:

  • .github/e2e-linux/ubuntu/e2e-setup.sh now records why runtime-only libraries are sufficient there -- PPM publishes binaries for every release and architecture that hook serves -- and points at ubuntu-22/e2e-setup.sh as the contrasting case that needs a toolchain, so the difference no longer has to be reconstructed from two files.
  • .github/e2e-linux/README.md documents the linux-<distro><version>-<arch> convention and tabulates the five older pw_label values that are deliberately frozen, with the reason (renaming one breaks its series in the reporting dashboard).

Neither changes behaviour; both fix the specific gap that made these findings unanswerable from the source alone.

Findings 1 and 3 need no change. Nothing from finding 3 is deferred either -- there is no latent work behind it. The pw_label renames themselves remain out of scope.

@ronblum ronblum self-assigned this Aug 6, 2026
@ronblum
ronblum merged commit 1bb1282 into main Aug 6, 2026
2 of 7 checks passed
@ronblum
ronblum deleted the test/ron/e2e-linux-workflow-arch-gap branch August 6, 2026 16:45
@ronblum

ronblum commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Addresses #18410.

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.

2 participants