Skip to content

Report the environment under test at the top of e2e reports and run summaries - #18655

Merged
ronblum merged 11 commits into
mainfrom
test/ron/e2e-workflow-report-version-header
Sep 1, 2026
Merged

ronblum merged 11 commits into
mainfrom
test/ron/e2e-workflow-report-version-header

Conversation

@ronblum

@ronblum ronblum commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

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:

  • Run annotations, one per engine, on the run's Summary page.
  • The merge job's summary, as a "Run under test" table.
  • The merge job's step list, as a step named for the build, readable without expanding anything.
  • The Playwright HTML report, as report metadata.
RStudio Desktop 2026.09.0-daily+138 "Autumn Hawkbit" · R 4.6.1 · Ubuntu 24 (x86_64)

The RStudio and R versions come from the window.rstudio.version automation 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 existing pretty_name, so one line covers all sixteen Linux engines.

Two supporting changes:

  • The S3 report URL published by os-publish-e2e-report now ends in #?show-metadata-other. Playwright renders metadata keys it doesn't recognize only behind that flag.
  • summarize-merged-report.mjs reads 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.

@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

RStudio E2E - all platforms

1 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
2550 1 193 3
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 10 0
✅ desktop-linux 632 0 47 1
✅ desktop-macos 647 0 33 1
❌ desktop-windows 645 1 39 1
✅ server-linux 596 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 43d011a692dad6e7804ee53fcb5daa8dc2e3dd5d - Run #789

@ronblum

ronblum commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

Review

Automated review of the six commits on this branch. Two findings.

  1. Low -- e2e/rstudio/fixtures/sandbox-reporter.ts:26. recordRunVersions() re-reads and re-parses run-versions.json from disk on every test's onTestEnd, even though the value is identical for the whole run. Suggested caching the loaded value after the first successful read.

  2. Medium -- e2e/rstudio/scripts/summarize-merged-report.mjs:129. The multi-engine output assumes playwright merge-reports propagates config.metadata from every input blob report, not just one. Unverified in the diff; if false, the PR run's four-engine output would silently collapse to one engine with no error.

Assessment

  1. Accurate, and worth taking, though not for speed. It's one read of a ~200-byte file per test, which is nothing beside launching RStudio. The value is that the code stops implying the file might change mid-run. Caching on first successful read is safe here: the reason it retries at all is that the earliest tests to finish are the setup project's, which end before any worker has launched RStudio and written the file.

  2. The premise is false. This is already verified, just not inside the diff. The merged report from run 33009124758 carried all four engines' keys, and run 33187455991 produced four distinct annotations and four step names. The fair part of the criticism is that nothing in the repo recorded why we believe it works, so a future Playwright change to mergeConfigs could break it silently.

Actions Taken

  1. Cached the loaded versions in the reporter, read once per job instead of once per test, and rewrote the comment that claimed otherwise. Verified with an instrumented counter: one read across five test ends, metadata still correct.

  2. No code change. Added a comment citing mergeConfigs and the two runs that confirm every engine's keys survive the merge.

Declined to add a test pinning the merge behavior: it would mean fabricating blob reports and shelling out to merge-reports, which is more machinery than the risk warrants and outside this PR's scope.

@ronblum
ronblum merged commit 84648a3 into main Sep 1, 2026
28 of 29 checks passed
@ronblum
ronblum deleted the test/ron/e2e-workflow-report-version-header branch September 1, 2026 14:50
@ronblum ronblum self-assigned this Sep 1, 2026

This branch was previously deployed

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