Repository navigation
Run the rsession test scope on Windows CI - #18810
Merged
Merged
Conversation
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.
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:45 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:45 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:48 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:48 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:48 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:48 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:55 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:55 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:55 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:55 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:55 — with
GitHub Actions
Inactive
gtritchie
temporarily deployed
to
e2e-playwright
September 13, 2026 18:55 — with
GitHub Actions
Inactive
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Windows pipeline ran only the
coretest 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::setenvwrites through our C runtime with_wputenv_sso that R'sSys.getenvsees variables set after R has started. That write only reaches R when R resolvesgetenv()to the same CRT module we do, and the test guarded only ongetRversion() >= 4.2. The version rules out msvcrt builds of R, but not the debug/release split on our side: a debug build linksucrtbased.dllwhileR.dllalways links the releaseucrtbase.dll. Each module snapshots the Win32 environment block once, lazily, and never re-reads it, so R never sees a write intoucrtbased'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
rsessionscope 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.