Closed Bug 1024162 Opened 11 years ago Closed 11 years ago

Allow 'make test-perf' to operate with arbitrary Marionette ports

Categories

(Firefox OS Graveyard :: Gaia::PerformanceTest, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME
2.0 S6 (18july)

People

(Reporter: jgriffin, Assigned: hub)

References

Details

(Keywords: perf, Whiteboard: [c=automation p= s= u=])

WebQA is setting up Flame devices with multiple devices per node. Since more than once device will be operating per machine, they can't all use Marionette port 2828 (the default). Instead, we'll have to dynamically setup adb port forwarding, and pass arbitrary port numbers to Marionette-based tools for them to use. Therefore, we'll 'make test-perf' will need the ability to accept a Marionette port number and operate on that port; e.g., 'MARIONETTE_PORT=2929 make test-perf'. It may already have this ability; I'm not sure.
Blocks: 1019792
Whiteboard: [c=automation p= s= u=]
Assignee: nobody → hub
Status: NEW → ASSIGNED
Keywords: perf
Priority: -- → P1
With the current state of the art, the forwarding is done by using a unique port on the host, that actually change everytime. This is already handled by the marionette JS runner. Isn't that what you need?
Flags: needinfo?(jgriffin)
(In reply to Hubert Figuiere [:hub] from comment #1) > With the current state of the art, the forwarding is done by using a unique > port on the host, that actually change everytime. This is already handled by > the marionette JS runner. > > Isn't that what you need? Perhaps. In our big Flame buildout, we will have multiple devices running on the same machine. It will be necessary for the Jenkins jobs to pass either an adb serial number or a Marionette port to 'make test-perf', so that it knows which device to operate on. Can we do that already?
Flags: needinfo?(jgriffin) → needinfo?(hub)
(In reply to Jonathan Griffin (:jgriffin) from comment #2) > Perhaps. In our big Flame buildout, we will have multiple devices running > on the same machine. It will be necessary for the Jenkins jobs to pass > either an adb serial number or a Marionette port to 'make test-perf', so > that it knows which device to operate on. Can we do that already? You can set ANDROID_SERIAL environment to the device serial (adb devices) and it will be picked automatically. We don't know the ports in advance as it change at each connection. But the forward is set with adb and adb honour this. ADB_SERIAL=serial make test-perf
Flags: needinfo?(hub) → needinfo?(jgriffin)
I forgot to add: the ANDROID_SERIAL thing is documented since yesterday in MDN for the performance testing framework.
Thanks, that should be enough for us to get the tests running.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: needinfo?(jgriffin)
Resolution: --- → WORKSFORME
Please let me know if you are having trouble with it. Thanks.
Target Milestone: --- → 2.0 S6 (18july)
You need to log in before you can comment on or make changes to this bug.