Repository navigation
Report the environment under test at the top of e2e reports and run summaries - #18655
Conversation
RStudio E2E - all platforms1 test(s) failed
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 |
ReviewAutomated review of the six commits on this branch. Two findings.
Assessment
Actions Taken
Declined to add a test pinning the merge behavior: it would mean fabricating blob reports and shelling out to |
…-report-version-header # Conflicts: # e2e/rstudio/fixtures/rstudio.fixture.ts
…-report-version-header
Addresses #18654.
A Playwright report and a CI run page don't currently say what they ran against. Answering "which RStudio was this?" means digging through a job log for the installer filename.
The harness now reads the build under test from the live session -- RStudio's long version and release name, the R version, the edition, and the OS with its architecture -- and reports it in four places:
The RStudio and R versions come from the
window.rstudio.versionautomation bridge; the release name comes from.rs.api.versionInfo(), which is the only place it's exposed. A source build reports its synthetic version (99.9.9-pr+<run>in CI), so it can't be mistaken for a daily.Nothing here lands at the very top of the run page, because GitHub offers no way to put it there: a run's title is fixed before the run starts, there's no API to update it, and annotation placement is GitHub's to decide.
Everything is written from the merge job rather than the test jobs. A summary is per job, so a sharded engine would otherwise repeat itself once per shard -- six times on Windows -- and only the merge job sees every engine at once. Each engine gets its own metadata entry keyed by OS and edition, so a merged multi-engine report keeps every engine's line instead of the last overwriting the rest. The OS name comes from a new
PW_OS_LABEL, set per engine; on Linux it reuses the existingpretty_name, so one line covers all sixteen Linux engines.Two supporting changes:
os-publish-e2e-reportnow ends in#?show-metadata-other. Playwright renders metadata keys it doesn't recognize only behind that flag.summarize-merged-report.mjsreads the merged report from a fixed path instead of a command-line argument. Every caller passed the same literal, so nothing is lost, and it clears a Snyk path-traversal finding that would otherwise recur on every future change to that file.Verified on the PR run's four engines and on a single-engine Ubuntu 24 dispatch.