Closed Bug 1528735 Opened 6 years ago Closed 6 years ago

Wptrunner quits early when repeating a set of tests including a skipped test

Categories

(Testing :: web-platform-tests, enhancement)

Version 3
enhancement
Not set
normal

Tracking

(firefox67 fixed)

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: Ms2ger, Assigned: jgraham)

References

Details

Attachments

(1 file)

Bug 1504357 added a if len(test_loader.test_ids) == skipped_tests: block at https://searchfox.org/mozilla-central/rev/ee40541496d3ad738097eebadaf4965ca1343b7a/testing/web-platform/tests/tools/wptrunner/wptrunner/wptrunner.py#292.

Unfortunately the skipped_tests counter is not reset when we pass a "repeat" argument. For example, when running three tests, of which one is skipped, five times, the condition will be true on the third iteration and the fourth and fifth iterations will be lost. This causes issues with the stability checker like here: https://treeherder.mozilla.org/#/jobs?repo=try&revision=c65e29d5642a966c7cb8e8074ef4b6a90eb8a884&selectedJob=228993605.

If we got past the first iteration we shouldn't stop for the skipped count matching
the total tests since we increment this with the total tests on each iteration.

Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/6d5a1544d885 Only stop if all tests are skipped on the first iteration, r=Ms2ger
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/15443 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Assignee: nobody → james
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: