Closed Bug 872364 Opened 11 years ago Closed 11 years ago

gaia-ui-tests is green when it runs zero tests and evaluates that as T-FAIL

Categories

(Release Engineering :: General, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: philor, Assigned: jgriffin)

Details

Attachments

(2 files)

We pointlessly run gaia-ui-tests on Panda builds on b2g18.* and Birch (hidden) and Cedar (unhidden, though by its new rules it should be hidden) despite nobody having any interest in it, but that's not what I want to talk about.

Sometime in late April, the gaia-ui-tests suite was modified to prevent people from wiping data on their phone by running it, by requiring that a locally-modified file saying that the person running the suite has read a devmo page about it be passed on the commandline. We don't pass that file on the commandline, so we don't run the suite, but that's not what I want to talk about.

Since the locally modified file isn't passed on the commandline, we run zero tests, and as

https://tbpl.mozilla.org/php/getParsedLog.php?id=22948971&tree=Cedar

10:16:11     INFO -  ***** ACKNOWLEDGE RISKS ********************************************************
10:16:11     INFO -  These tests are destructive and will remove data from the target Firefox OS
10:16:11     INFO -  instance as well as using services that may incur costs! Before you can run
10:16:11     INFO -  these tests you must follow the steps to indicate you have acknowledged the
10:16:11     INFO -  risks detailed at the following address:
10:16:11     INFO -  https://developer.mozilla.org/en-US/docs/Gaia_Test_Runner#Risks
10:16:11     INFO -  ********************************************************************************
10:16:11     INFO - Return code: 0
10:16:11     INFO - TinderboxPrint: gaia-ui-tests: <em class="testfail">T-FAIL</em>

says, that's a T-FAIL. But it goes on to say

10:16:11     INFO - # TBPL SUCCESS #
10:16:11     INFO - #####
10:16:11     INFO - ##### Running close-request step.
10:16:11     INFO - #####
10:16:11     INFO - Request 'http://mobile-imaging-001.p1.releng.scl1.mozilla.com/api/request/207488/' deleted on cleanup
10:16:11     INFO - Copying logs to upload dir...
10:16:11     INFO - mkdir: /builds/panda-0158/test/build/upload/logs
program finished with exit code 0

which is patently false - T-FAIL and zero tests does not equal TBPL SUCCESS or an exit code 0.
So there are several things wrong here:

1 - we shouldn't be exiting with return code 0 in this case (gaia-ui-tests bug)
2 - even if we do, we shouldn't T-FAIL and TBPL SUCCESS at the same time (mozharness script bug)
3 - we really shouldn't force the user to acknowledge risks on the panda or b2g desktop builds (gaia-ui-tests bug)

I'll own 1 and 3, I'm inclined not to fix 2 until and unless we start caring about these tests on pandas again.  But, that code was likely copied and pasted from somewhere we do care about, so I'll check the master Marionette script and see if it suffers from the same problem.
Assignee: nobody → jgriffin
pull request for 1 and part of 3: https://github.com/mozilla/gaia-ui-tests/pull/839
Attachment #751858 - Flags: review?(aki) → review+
Comment on attachment 751858 [details] [diff] [review]
Don't TBPL_SUCCESS when no tests have been run,

https://hg.mozilla.org/build/mozharness/rev/2b54c036787f
Attachment #751858 - Flags: checked-in+
Merged to production.
This is the last piece of this bug.
Attachment #762291 - Flags: review?(aki)
Attachment #762291 - Flags: review?(aki) → review+
Comment on attachment 762291 [details] [diff] [review]
Make gaia-ui-tests skip the warning in buildbot,

https://hg.mozilla.org/build/mozharness/rev/448071030542
Attachment #762291 - Flags: checked-in+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
In production.
Product: mozilla.org → Release Engineering
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: