You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
E2E runs that select zero tests are reported as successful #18428
RStudio Edition : N/A -- affects the Desktop and Server E2E engines alike
RStudio Version : N/A
OS Version : N/A -- affects every per-OS engine
R Version : N/A
Steps to reproduce the problem
In any per-OS E2E engine workflow -- for example os-test-e2e-rstudio-desktop-os-macos-14-arm64.yml:
Go to Actions and select the engine workflow.
Click "Run workflow".
Enter tests/smoke/startup.test.ts in the test_selector field.
Click the green "Run workflow" button.
Wait for the run to finish.
The run finishes with a green check and a success conclusion.
Open the e2e-merge job and expand its summary step.
The log reads Overall: passed=0 failed=0 skipped=0 flaky=0 rate=0%.
The sticky comment and job summary report the run as a pass.
Describe the problem in detail
e2e/rstudio/scripts/summarize-merged-report.mjs totals the results, computes a pass rate, writes them as step outputs, logs them, and ends. It has no zero-test check and no non-zero exit, so a run where Playwright selected nothing looks identical to a run where everything passed. Playwright exits 0 when no tests match a selector, so nothing upstream catches it either.
This reaches every per-OS engine, since they all merge through the same summarizer.
The test_selector input makes it easy to hit by accident. tests/smoke/startup.test.ts is tagged @smoke, and playwright.config.ts:80 grep-inverts @smoke unless PW_RUN_SMOKE is set -- which no engine workflow passes -- so that selector selects nothing at all.
This has already caused a real false pass. Run 30363343377 finished with a success conclusion while reporting passed=0 failed=0 skipped=0 flaky=0 rate=0%, and was taken as validation for an engine that had asserted nothing.
Describe the behavior you expected
A run that selected no tests would ideally fail, or at least not report success. An opt-out along the lines of PW_REQUIRE_TESTS would keep deliberately empty runs possible where they're wanted.
One implementation note for whoever picks this up, from a near-miss while validating the Linux arch-gap engines.
The zero-test check needs to look at the merged total, not at an individual shard. A shard legitimately selecting zero tests is normal and must not fail the run.
Running 6 tests using 1 worker, shard 1 of 2 -> 6 passed
2 of 2
no Running N tests line at all -> 0 passed 0 failed 0 flaky 0 skipped
The merged summary reported Overall: passed=6 failed=0 skipped=0 flaky=0 rate=100%, which is correct -- this run was not a false pass. All six matched tests landed in shard 1, so shard 2 had nothing to do. Any narrow selector that does not divide evenly across shards produces this, so a per-shard guard would fail runs that are working exactly as intended.
Since the proposed fix already lives in summarize-merged-report.mjs, which operates on merged totals, this may be moot -- but worth stating explicitly so the check does not get moved into the per-shard job as an apparent simplification.
Second, smaller point: the verification burden this creates is real. Because Playwright exits 0 on a zero match, a success conclusion cannot be taken at face value on any selector-filtered dispatch. Confirming the run above had actually asserted something meant pulling the job log and grepping for a Running N tests line. Anyone using test_selector or grep to investigate a specific failure has to do that every time, or risk drawing a conclusion from a run that asserted nothing.
Activity
ronblum commentedon Aug 5, 2026
One implementation note for whoever picks this up, from a near-miss while validating the Linux arch-gap engines.
The zero-test check needs to look at the merged total, not at an individual shard. A shard legitimately selecting zero tests is normal and must not fail the run.
Concrete example -- https://github.com/rstudio/rstudio/actions/runs/30933980793, dispatched with
test_selector: s4_unloaded_package.test.tsacross two shards:Running 6 tests using 1 worker, shard 1 of 2->6 passedRunning N testsline at all ->0 passed 0 failed 0 flaky 0 skippedThe merged summary reported
Overall: passed=6 failed=0 skipped=0 flaky=0 rate=100%, which is correct -- this run was not a false pass. All six matched tests landed in shard 1, so shard 2 had nothing to do. Any narrow selector that does not divide evenly across shards produces this, so a per-shard guard would fail runs that are working exactly as intended.Since the proposed fix already lives in
summarize-merged-report.mjs, which operates on merged totals, this may be moot -- but worth stating explicitly so the check does not get moved into the per-shard job as an apparent simplification.Second, smaller point: the verification burden this creates is real. Because Playwright exits 0 on a zero match, a
successconclusion cannot be taken at face value on any selector-filtered dispatch. Confirming the run above had actually asserted something meant pulling the job log and grepping for aRunning N testsline. Anyone usingtest_selectororgrepto investigate a specific failure has to do that every time, or risk drawing a conclusion from a run that asserted nothing.