Skip to content

Run the rsession test scope on Windows CI - #18810

Merged
gtritchie merged 2 commits into
mainfrom
test/windows-ci-rsession-scope
Sep 13, 2026
Merged

gtritchie merged 2 commits into
mainfrom
test/windows-ci-rsession-scope

Conversation

@gtritchie

Copy link
Copy Markdown
Member

The Windows pipeline ran only the core test scope, so the session gtests were never exercised there. It now runs --scope core,rsession.

Running that scope locally on Windows turned up one failure that had to be fixed first: SessionRTest.SysGetenvSeesCoreSetenv.

core::system::setenv writes through our C runtime with _wputenv_s so that R's Sys.getenv sees variables set after R has started. That write only reaches R when R resolves getenv() to the same CRT module we do, and the test guarded only on getRversion() >= 4.2. The version rules out msvcrt builds of R, but not the debug/release split on our side: a debug build links ucrtbased.dll while R.dll always links the release ucrtbase.dll. Each module snapshots the Win32 environment block once, lazily, and never re-reads it, so R never sees a write into ucrtbased's table. The test now skips on debug builds, and the three comments that presented the R version as the whole condition are corrected.

Locally the rsession scope is now 539 passed / 2 skipped / 0 failed.

This turns on one additional scope rather than every class of test, so it does not close the issue.

Addresses #17825.

core::system::setenv writes through our C runtime with _wputenv_s so R's
Sys.getenv sees variables set after R has started. That only reaches R when
R resolves getenv() to the same CRT module we do, and
SessionRTest.SysGetenvSeesCoreSetenv guarded only on getRversion() >= 4.2.
The version rules out msvcrt builds of R, but not the debug/release split on
our side: a debug build links ucrtbased.dll while R.dll always links the
release ucrtbase.dll. Each module snapshots the Win32 environment block once,
lazily, and never re-reads it, so R never sees a write into ucrtbased's table
and the test failed on any Windows debug build.

Skip the test there, and correct the comments that presented the R version as
the whole condition.
The Windows pipeline ran only the core scope, so the session gtests were
never exercised there.

Addresses #17825.
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

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

Passed Failed Skipped Flaky
2902 0 195 14
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 731 0 38 4
✅ desktop-macos 729 0 42 3
✅ desktop-windows 734 0 41 4
✅ server-linux 678 0 44 3
✅ 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 144c301c40034c11f4b48b67036e754b931431cf - Run #989

@gtritchie
gtritchie merged commit 63dac29 into main Sep 13, 2026
34 checks passed
@gtritchie
gtritchie deleted the test/windows-ci-rsession-scope branch September 13, 2026 20:28

This branch was previously deployed

1 inactive deployment
e2e-playwright — 144c301c Deployed Sep 13, 2026 by gtritchie via windows / e2e-desktop-windows (5) #989
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.

1 participant