Something's funny about how we parse success/failure for runs with no tests on Windows vs. mac/linux
Categories
(Testing :: Mochitest, defect)
Tracking
(firefox67 fixed)
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: Gijs, Assigned: ahal)
References
Details
Attachments
(1 file)
Observe this trypush:
Try syntax:
try: -b od -t none -p win64,macosx64,linux64,linux64-asan -u mochitest-browser-chrome-e10s-1,mochitest-devtools-chrome-e10s-1 --try-test-path browser-chrome:browser/base/content/test/static/ devtools-chrome:browser/base/content/test/static/
Note that asan/debug linux and mac are orange. This is because that manifest has skip-ifs for asan || debug, and so they're running no tests at all, skipping everything.
I would expect debug Windows to be orange for the same reason, but it isn't. This is pretty odd. Compare:
Windows:
16:15:46 INFO - SUITE-START | Running 4 tests
16:15:46 INFO - TEST-START | browser/base/content/test/static/browser_all_files_referenced.js
16:15:46 INFO - TEST-SKIP | browser/base/content/test/static/browser_all_files_referenced.js | took 0ms
16:15:46 INFO - TEST-START | browser/base/content/test/static/browser_misused_characters_in_strings.js
16:15:46 INFO - TEST-SKIP | browser/base/content/test/static/browser_misused_characters_in_strings.js | took 0ms
16:15:46 INFO - TEST-START | browser/base/content/test/static/browser_parsable_css.js
16:15:46 INFO - TEST-SKIP | browser/base/content/test/static/browser_parsable_css.js | took 0ms
16:15:46 INFO - TEST-START | browser/base/content/test/static/browser_parsable_script.js
16:15:46 INFO - TEST-SKIP | browser/base/content/test/static/browser_parsable_script.js | took 0ms
16:15:46 INFO - TEST-INFO | checking window state
16:15:46 INFO - Browser Chrome Test Summary
16:15:46 INFO - Passed: 0
16:15:46 INFO - Failed: 0
16:15:46 INFO - Todo: 0
16:15:46 INFO - Mode: e10s
16:15:46 INFO - *** End BrowserChrome Test Results ***
16:15:46 INFO - Buffered messages finished
16:15:46 INFO - SUITE-END | took 0s
16:15:46 ERROR - Return code: 1
16:15:46 INFO - TinderboxPrint: mochitest-browser-chrome-chunked<br/>4/0/0
16:15:46 INFO - # TBPL SUCCESS #
16:15:46 INFO - The mochitest suite: browser-chrome-chunked ran with return status: SUCCESS
Mac:
07:36:56 INFO - SUITE-START | Running 4 tests
07:36:56 INFO - TEST-START | browser/base/content/test/static/browser_all_files_referenced.js
07:36:56 INFO - TEST-SKIP | browser/base/content/test/static/browser_all_files_referenced.js | took 0ms
07:36:56 INFO - TEST-START | browser/base/content/test/static/browser_misused_characters_in_strings.js
07:36:56 INFO - TEST-SKIP | browser/base/content/test/static/browser_misused_characters_in_strings.js | took 0ms
07:36:56 INFO - TEST-START | browser/base/content/test/static/browser_parsable_css.js
07:36:56 INFO - TEST-SKIP | browser/base/content/test/static/browser_parsable_css.js | took 0ms
07:36:56 INFO - TEST-START | browser/base/content/test/static/browser_parsable_script.js
07:36:56 INFO - TEST-SKIP | browser/base/content/test/static/browser_parsable_script.js | took 1ms
07:36:56 INFO - TEST-INFO | checking window state
07:36:56 INFO - Browser Chrome Test Summary
07:36:56 INFO - Passed: 0
07:36:56 INFO - Failed: 0
07:36:56 INFO - Todo: 0
07:36:56 INFO - Mode: e10s
07:36:56 INFO - *** End BrowserChrome Test Results ***
07:36:56 INFO - Buffered messages finished
07:36:56 INFO - SUITE-END | took 0s
07:36:56 ERROR - Return code: 1
07:36:56 INFO - TinderboxPrint: mochitest-browser-chrome-chunked<br/>4/0/0
07:36:56 ERROR - # TBPL FAILURE #
07:36:56 WARNING - setting return code to 2
07:36:56 ERROR - The mochitest suite: browser-chrome-chunked ran with return status: FAILURE
I dunno where this stuff lives off-hand, but it should really be consistent, and it's code-smell-y that it's not.
Comment 1•6 years ago
|
||
Easy link for Windows:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=227419840&repo=try&lineNumber=1059-1067
I agree - it seems wrong that the job is not orange.
:jmaher - Do you have an idea why the Windows task did not fail? (More specifically, I think the issue is, why "TBPL SUCCESS" after a non-zero return code from the mochitest harness.)
Comment 2•6 years ago
|
||
this is concerning, the code that prints tbpl status is here:
https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/automation.py#61
that is in mozharness and IIRC we did some hacking in related mozharness code to make it work for test-verify last summer or a year ago. Given that I am still baffled why we get different treatment on windows.
here is a reference to where we define the status from mochitest and oddly there is a special case for windows:
https://searchfox.org/mozilla-central/source/testing/mozharness/scripts/desktop_unittest.py#934
here is a link to evaluate_parser that would make the decision:
https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/structuredlog.py#132
I suspect this is an edge case when we have no tests run, but I would rather remove "I suspect" from my statement.
| Reporter | ||
Comment 3•6 years ago
|
||
Looks like the funny windows-only condition there is a result of bug 1120644. Which says mochitest/reftest return 1 on windows. But they don't seem to when checking a few random jobs on treeherder:
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=6eba9a719f8e1328706f939c6ab10eb69ece4ce7&selectedJob=228429483
https://taskcluster-artifacts.net/aiJkNANxSY6ONwnQZc2XqA/0/public/logs/live_backing.log
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=6eba9a719f8e1328706f939c6ab10eb69ece4ce7&selectedJob=228424446
https://taskcluster-artifacts.net/RMCluj1dRhOs7mwmi3BWkQ/0/public/logs/live_backing.log
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=6eba9a719f8e1328706f939c6ab10eb69ece4ce7&selectedJob=228426385
https://taskcluster-artifacts.net/bcTe4bSQSeSPmRPCHBWrmg/0/public/logs/live_backing.log
https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&revision=6eba9a719f8e1328706f939c6ab10eb69ece4ce7&selectedJob=228421785
https://taskcluster-artifacts.net/T-KuGvFiQ0u1HNdj4sI7hw/0/public/logs/live_backing.log
Can we just remove the specialcase? :ahal?
| Assignee | ||
Comment 4•6 years ago
|
||
Yeah we should definitely remove that if there aren't any more false positives, here's a quick try run to test:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=07e5d35a464514b41b379ded1ee6d60fc4f71438
That bug was filed 4 years ago, so I imagine it got fixed by the taskcluster migration.
| Reporter | ||
Comment 5•6 years ago
|
||
Looks like reftests (incl. crashtest + jsreftest + gpu + no-accel reftests) on windows 7 are still returning 1, but not on win10. No idea what to make of that off-hand...
| Assignee | ||
Comment 6•6 years ago
|
||
Barring someone having the time to actually dig into the reasons behind this discrepency, we should at least make that exception more restrictive by limiting it to Win7 reftests.
| Assignee | ||
Comment 7•6 years ago
|
||
Since this is filed under mochitest and the other bug is already in the comment, I'm going to resolve this bug by making the exception much more specific (Windows 7 reftest only).
We can use bug 1120644 to look into why the tasks are returning 1 on Windows 7 reftests (though I wouldn't be surprised if we end up ignoring it until we stop supporting Windows 7).
| Assignee | ||
Comment 8•6 years ago
|
||
Bug 1120644 will be used to look into why Windows 7 reftests are still returning 1.
| Assignee | ||
Comment 9•6 years ago
|
||
Try looks good:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c2c960b5a5963a2938c83f515fe1d2529156a086
Bustage is from artifact builds. There's a chance that we missed something and this will be backed out, but probably better to risk it than run every task.
Comment 10•6 years ago
|
||
Comment 11•6 years ago
|
||
| bugherder | ||
Description
•