Closed
Bug 860750
Opened 12 years ago
Closed 12 years ago
Autophone - Add support for multiple architectures
Categories
(Testing Graveyard :: Autophone, defect)
Testing Graveyard
Autophone
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: bc, Assigned: bc)
References
Details
Attachments
(1 file)
12.13 KB,
patch
|
mcote
:
review+
|
Details | Diff | Splinter Review |
In bug 821954 we decided to defer adding multiple architecture support for Autophone. We now have the need to support x86 phones. Mark prefers to have a single instance of Autophone deal with multiple architectures so that is what I'll work towards.
Assignee | ||
Comment 1•12 years ago
|
||
I've been considering ways to get abi information about phones. I can either do it from Autophone by
shelling out to getprop or could have SUTAgentAndroid.java do the getprop and report it in the registration url. Putting it in SUTAgent seems reasonable. Thoughts?
Assignee | ||
Comment 2•12 years ago
|
||
This isn't quite what I would have done if starting from scratch, which would have involved a server in autophone that received job commands which were dispatched to each worker to get their own jobs matching the criteria.
Instead, this adds armv6, x86 architectures to the pulse listener in autophone.py and to builds.py so that all arm, armv6 and x86 builds which match the criteria are returned. autophone.py and worker.py filter out incompatible architectures before sending the job to the worker.
I also added some logging to trigger_run.py which sends log messages to the base autophone.log.
Attachment #739088 -
Flags: review?(mcote)
Comment 3•12 years ago
|
||
Comment on attachment 739088 [details] [diff] [review]
patch v1
Review of attachment 739088 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good.
::: worker.py
@@ +434,5 @@
> + if 'armv6' not in build_url:
> + incompatible_job = True
> + else:
> + if 'x86' in build_url or 'armv6' in build_url:
> + incompatible_job = True
Can we refactor this into a function that can be used by both autophone and worker? I worry that we'll want to update this some day and forget to make the change in both locations.
Attachment #739088 -
Flags: review?(mcote) → review+
Assignee | ||
Comment 4•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•