Closed Bug 1855419 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 42119 - Treat unrun tests as critical errors in TestRunnerManager.run

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox120 fixed)

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 42119 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/42119
Details from upstream follow.

Sam Sneddon <gsnedders@apple.com> wrote:

Treat unrun tests as critical errors in TestRunnerManager.run

Following an uncaught exception in TestRunnerManager.run we will never recreate the TestRunnerManager (as we assume it has successfully contained all the errors raised elsewhere, either via restarting the TestRunner or within itself), thus we should treat any uncaught exception as a critical error.

Additionally, always treat any unrun tests as a critical error, regardless of whether we exited the loop cleanly or not. We should always have exhausted the queue as otherwise we'll end up with a partial test run, and the user will have no way to know that we didn't run everything requested.

This practically fixes #41386 as we'll now exit uncleanly and not end up with a partial run, but we may want to add further critical errors on the path that led to that.

PR 42119 applied with additional changes from upstream: 451eda9611c291696ec2f18deef1b993376ac356, f7a3451e8413389e9fc24d6d2e28aa1e08d512a6
The PR was not expected to affect any tests, but the try push wasn't a success. Check the try results for infrastructure issues
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b95db09927f1 [wpt PR 42119] - Treat unrun tests as critical errors in TestRunnerManager.run, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.