Closed
Bug 1032255
Opened 10 years ago
Closed 10 years ago
TPS has to exit with code != 0 in case of failures
Categories
(Testing Graveyard :: TPS, defect)
Testing Graveyard
TPS
Tracking
(firefox32 fixed, firefox33 fixed, firefox34 fixed)
RESOLVED
FIXED
mozilla34
People
(Reporter: whimboo, Assigned: cosmin-malutan)
Details
Attachments
(1 file)
584 bytes,
patch
|
andrei
:
review+
davehunt
:
review+
|
Details | Diff | Splinter Review |
Right now TPS always exits with code 0 even if failures happened. This should be changed so that it exists appropriately to the testrun status. This is necessary so that jenkins can detect if the tests were successful or not.
Assignee | ||
Comment 1•10 years ago
|
||
Henrik requested that I would have a look over this while hes gone and that Dave can review after an internal review: https://etherpad.mozilla.org/automation-ask-an-expert So here is the fix-patch for this, I added the exit code in the main class so we don't have to handle all different situation of single test run, group tests run etc.
Assignee: hskupin → cosmin.malutan
Attachment #8463355 -
Flags: review?(dave.hunt)
Attachment #8463355 -
Flags: review?(andrei.eftimie)
Comment 2•10 years ago
|
||
Comment on attachment 8463355 [details] [diff] [review] patch v1.0 Review of attachment 8463355 [details] [diff] [review]: ----------------------------------------------------------------- ::: testing/tps/tps/cli.py @@ +116,4 @@ > ) > TPS.run_tests() > > + if TPS.numfailed > 0 or TPS.numpassed == 0: Is it possible to skip tests? If so, we may have a situation where zero tests are run, and that might not actually indicate a failure. I think it might be best to just check if numfailed is > 0, but I'm not familiar with these tests so please convince if you think this is the best approach.
Attachment #8463355 -
Flags: review?(dave.hunt) → review-
Assignee | ||
Comment 3•10 years ago
|
||
Here is the code where it switches the email address to send the notification email: https://github.com/mozilla/gecko-dev/blob/RELEASE_BASE_20140602/testing/tps/tps/testrunner.py#L385 So far I haven't seen any skipped test but I think we would remove them from this list when they will fail, I'm not aware of any other skip mechanism. I thought we might check for passed builds in case we have no test in https://github.com/mozilla/gecko-dev/blob/RELEASE_BASE_20140602/services/sync/tests/tps/all_tests.json and to be in sync with code that sends the emails. It wouldn't be ok to mark the build as PASS if we send a failure notification email. From my point of view we could either check only for failures and change the check for emails to or live it as it is. What do you think Dave?
Comment 4•10 years ago
|
||
Comment on attachment 8463355 [details] [diff] [review] patch v1.0 Review of attachment 8463355 [details] [diff] [review]: ----------------------------------------------------------------- Okay, that's enough to convince me. Thanks.
Attachment #8463355 -
Flags: review- → review+
Comment 5•10 years ago
|
||
Comment on attachment 8463355 [details] [diff] [review] patch v1.0 Review of attachment 8463355 [details] [diff] [review]: ----------------------------------------------------------------- Given the way we handle things for email, and how this is structured it looks good to me.
Attachment #8463355 -
Flags: review?(andrei.eftimie) → review+
Assignee | ||
Comment 6•10 years ago
|
||
This needs to be checked in, it doesn't need a try run as the TPS tests are ran on pulse message.
Keywords: checkin-needed
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7cce2d4f5055
Keywords: checkin-needed
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7cce2d4f5055
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Reporter | ||
Comment 9•10 years ago
|
||
We also need to get this backported to aurora and beta.
Reporter | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/924e2d5187e3 https://hg.mozilla.org/releases/mozilla-beta/rev/1b581df81c9b
Updated•6 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•