Skip to content

[FIX] Incomplete runs must not report pass (#1177) - #1179

Open
aryanorastar wants to merge 1 commit into
CCExtractor:masterfrom
aryanorastar:fix/1177-partial-run-false-pass
Open

[FIX] Incomplete runs must not report pass (#1177)#1179
aryanorastar wants to merge 1 commit into
CCExtractor:masterfrom
aryanorastar:fix/1177-partial-run-false-pass

Conversation

@aryanorastar

@aryanorastar aryanorastar commented Aug 16, 2026

Copy link
Copy Markdown

Summary

  • Fixes A run can report pass after executing almost none of its samples #1177: _check_completed_run_status only inspected existing TestResult rows, so a completed run that executed 1 of N samples could still report pass when that fragment was green.
  • Completeness now compares reported regression-test IDs against the run’s expected sample set (customized selection, else all active regression tests — same rule as /runs/{id}/summary totals via shared expected_regression_ids).
  • Missing expected samples → error (same class as zero results). Existing fail/pass checks still apply when the suite is complete.

Test plan

  • nose2 tests.api.test_services_status (20 tests OK), including new test_derive_run_status_completed_partial_results_is_error
  • Existing pass/fail fixtures scoped with CustomizedTest so they remain meaningful under the completeness check
  • CI green on this PR

Completed runs that only report a subset of configured regression
tests were marked pass whenever that fragment was green. Compare
reported TestResult IDs against the run's expected sample set (same
rule as summary totals) and return error when any are missing.
@aryanorastar
aryanorastar force-pushed the fix/1177-partial-run-false-pass branch from e05382f to 154c41a Compare August 16, 2026 05:59
@aryanorastar

Copy link
Copy Markdown
Author

Rebased onto current master (includes #1173 baseline comparison fix). Local nose2 tests.api.test_services_status still 20/20 green.

@sonarqubecloud

Copy link
Copy Markdown

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.

A run can report pass after executing almost none of its samples

1 participant