Closed Bug 1133580 Opened 9 years ago Closed 9 years ago

Autophone - support job retriggers and cancel notifications from Treeherder

Categories

(Testing Graveyard :: Autophone, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bc, Assigned: bc)

References

Details

Attachments

(13 files)

Once bug 1113281 lands, Autophone should listen to the pulse exchange and allow Treeherder users to retrigger and cancel jobs and tests.
No longer blocks: 1113281
Depends on: 1113281
Depends on: 1136738
Mark, I'm going to attach the individual patches here. I'm going to try to get my personal repo for autophone in sync and attempt to provide a github pr for the review request but wanted to record the patches before I mess up my repo. ;-)
Assignee: nobody → bob
Status: NEW → ASSIGNED
add utils.py
use utils.py
fix missing error in cache response in builds.py
Remove autophonepulsebuildmonitor.py
Add autophonepulsemonitor.py
hookup new pulsemonitor, consolidate compatible build detection, use new jobs format in autophone.py
implement new jobs format including new tests table in jobs.py
remove enable_unittests as a BuildCache property in builds.py
update autophonetreeherder.py
    
- begin divorcing PhoneWorkerSubProcess from AutophoneTreeherder
- make AutophoneTreeherder.submit_complete require tests.
- submit a privatebuild artifact to Treeherder to record the build used in a test
- catch potential exceptions while uploading logs
update worker.py
    
- clean up device error/disconnection/disable states
- add new FETCHING state.
- move compatible job detection into autophone.py
- delete tests from the jobs database as they are completed.
- use test status RETRY when a test must be retried while
  creating a new job for the test(s) to be retried.
- process retrigger, cancel job actions
incorporate job action processing in tests
Attached file PR 14
Mark, here goes.
Attachment #8581582 - Flags: review?(mcote)
Comment on attachment 8581582 [details] [review]
PR 14

Made a bunch of comments; nothing serious, although there are a few areas that could be refactored to make them a bit less verbose and hence more readable.
Attachment #8581582 - Flags: review?(mcote)
Attached file PR 15
Attachment #8582473 - Flags: review?(mcote)
Comment on attachment 8582473 [details] [review]
PR 15

Still think you should reduce the redundancy of all those test-result calls, but not a huge deal.
Attachment #8582473 - Flags: review?(mcote) → review+
Comment on attachment 8582473 [details] [review]
PR 15

Ok. this should do it.
Attachment #8582473 - Flags: review+ → review?(mcote)
Attachment #8582473 - Flags: review?(mcote) → review+
I screwed up one of the changes due to the review by removing the parens in a conditional. I run tests with it locally but did not see the error until I started the production instance of autophone. Self reviewed. Sorry.

https://github.com/mozilla/autophone/commit/5bbc94886ff85989858722f1ede1b4e6845a9904
I'm not sure what is up, but there are new errors appearing in production which should have been caught during testing. I think I didn't handle the new pr process properly and have messed up the repository. Autophone production is currently down while I resolve this.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
https://github.com/mozilla/autophone/commit/f122c4133e17f051389cd6af8e1c84360948c063

simple format string error in test/device/repo selection. This wasn't caught during testing since I wasn't using test/device/repo selection in the configuration. The error wasn't related to my use of pull requests or multiple repositiories at all. Autophone is currently up and running but is not responding to retrigger requests.
Ok, these stuck and Autophone on production Treeherder now supports retriggers and cancels.
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Depends on: 1147480
Depends on: 1151329
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: