wpt errorsummary file shows many groups with ERROR, but none are shown in treeherder
Categories
(Testing :: web-platform-tests, defect)
Tracking
(firefox121 fixed)
Tracking | Status | |
---|---|---|
firefox121 | --- | fixed |
People
(Reporter: jmaher, Assigned: jmaher)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
the errorsummary log file has so many groups with status ERROR:
https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ERcOWB7KR0Cvm3m1qRhVuA/runs/0/artifacts/public/test_info/wpt_errorsummary.log
but treeherder only shows 1 failure:
TEST-UNEXPECTED-OK | /navigation-api/per-entry-events/dispose-for-full-session-history.tentative.html | expected ERROR
and in the log file it indicates only 1 failure:
[task 2023-10-30T19:04:40.033Z] 19:04:40 INFO - SUITE-END | took 959s
[task 2023-10-30T19:04:40.273Z] 19:04:40 INFO - Got 1 unexpected results, with 1 unexpected passes
[task 2023-10-30T19:04:40.275Z] 19:04:40 INFO - wptserve Stopped WebTransport over HTTP/3 server on 127.0.0.1:11000
[task 2023-10-30T19:04:40.349Z] 19:04:40 INFO - wptserve Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8889))
[task 2023-10-30T19:04:40.555Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:9000
[task 2023-10-30T19:04:40.563Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8001
[task 2023-10-30T19:04:40.574Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8002
[task 2023-10-30T19:04:40.574Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8444
[task 2023-10-30T19:04:40.574Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8445
[task 2023-10-30T19:04:40.591Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8446
[task 2023-10-30T19:04:40.601Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8003
[task 2023-10-30T19:04:40.676Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8000
[task 2023-10-30T19:04:40.714Z] 19:04:40 INFO - wptserve Stopped http server on 127.0.0.1:8443
[task 2023-10-30T19:04:40.770Z] 19:04:40 INFO - wptserve Close on: (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('127.0.0.1', 8888))
[task 2023-10-30T19:04:40.841Z] 19:04:40 INFO - Removed font: Ahem.ttf
[task 2023-10-30T19:04:40.913Z] 19:04:40 INFO - Closing logging queue
[task 2023-10-30T19:04:40.913Z] 19:04:40 INFO - queue closed
[task 2023-10-30T19:04:42.258Z] 19:04:42 INFO - Return code: 1
[task 2023-10-30T19:04:42.259Z] 19:04:42 WARNING - Got 1 unexpected statuses
I am confusing why so many groups are status ERROR, only 1 group should have a status of ERROR.
:jgraham, is this intentional? If it isn't can you fix it?
Comment 1•1 year ago
|
||
It looks to me like a regression from Bug 1631828.
https://searchfox.org/mozilla-central/source/testing/mozbase/mozlog/mozlog/formatters/errorsummary.py#59 only sets the group status to OK if the test has an expected status of either OK or PASS. If there's an expected FAIL or similar we end up setting the group status to ERROR.
Assignee | ||
Comment 2•1 year ago
|
||
thanks for pointing that out, I see a way to fix this. I have a lot of edge cases to test. unittests are great, but what gets posted from many jobs ends up being different edge cases.
Assignee | ||
Comment 3•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 4•1 year ago
|
||
the problem here is that we have a status that is:
status: FAIL
but we are not passing in expected, so it is not logical to assume group status is OK given that a test start is FAIL.
The logger sees:
action: test_status, status: FAIL
action: test_end, status: OK
what the logger should see is:
action: test_status, status: FAIL, expected: FAIL
action: test_end, status: OK
:jgraham can you fix the wpt harness to send expected with test_status?
Comment 5•1 year ago
|
||
Unless I'm missing something it does that already: https://searchfox.org/mozilla-central/source/testing/web-platform/tests/tools/wptrunner/wptrunner/testrunner.py#715-722 (and if it didn't absolutely everything would be broken. Expected subtest failures is very much normal in wpt).
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
Comment 8•1 year ago
|
||
bugherder |
Description
•