Closed Bug 1712337 Opened 4 years ago Closed 10 months ago

Provide a single interface for specifying the binary to use in the test

Categories

(Testing :: mozperftest, task, P2)

task

Tracking

(firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fxp])

Attachments

(3 files, 3 obsolete files)

Currently, we have no single spot that we can look at for the binary that we should be using. We should add this --binary option to our global args here: https://searchfox.org/mozilla-central/source/python/mozperftest/mozperftest/argparser.py#28

This is a major blocker for the application version, and name collection. Currently, my only option is to implement a metadata method to set/get binary info, along with a mobile flag so that the metrics layer can take care of version gathering. However, there's an issue with this implementation too. When we start running chrome tests in this harness, we'll need to get the application version before the test run to figure out which chromedriver we should use. Ideally, we would implement a system layer to gather this, but we don't have the binary by that stage, and can't figure out what it should be without hardcoding checks for special CLI flags which will need to be constantly updated.

I might rework all the binaries options to take care of this now rather than pushing it down the road.

Blocks: 1828635

Testing comment.

Whiteboard: [fxp]

This patch adds a layer to setup the binary, and provide a single interface for specifying it and using it through the metadata. At the same time, some classes are added to gather the binary version on mobile, and desktop. These version producers are used by the classes in the BinarySetup layer that are decorated with the binary_setup function.

At the same time, some changes were made to the perfherder metrics production to gather the application name, and version from the metadata. The intermediate results are also properly passed into the perfherder blob production step as they were previously being ignored.

Assignee: nobody → gmierz2
Status: NEW → ASSIGNED

This patch adds a set of classes that will be used for gathering the binary path, and binary version in the VersionProducer, and BinarySetup layers.

Attachment #9404017 - Attachment description: Bug 1712337 - Add a binary setup layer, and gather binary version. r?#perftest → Bug 1712337 - Add a binary setup layer. r?#perftest

This patch adds a layer to gather the version of a given binary. The layer makes use of the tooling from setups.py to do this.

Depends on D211666

Attachment #9404117 - Attachment is obsolete: true
Attachment #9404017 - Attachment is obsolete: true

This patch adds a set of classes that will be used for gathering the binary path, and binary version in the VersionProducer, and BinarySetup layers.

This patch adds a layer to setup the binary, and provide a single interface for specifying it and using it through the metadata. At the same time, some changes were made to the perfherder metrics production to gather the application name, and version from the metadata. The intermediate results are also properly passed into the perfherder blob production step as they were previously being ignored.

Depends on D211737

This patch adds a layer to gather the version of a given binary. The layer makes use of the tooling from setups.py to do this.

Depends on D211738

Attachment #9404116 - Attachment is obsolete: true
Pushed by sstanca@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/605e81f8e7e0 Add helper classes for gathering binary, and binary version. r=perftest-reviewers,aglavic https://hg.mozilla.org/mozilla-central/rev/0bb2dcd678b2 Add a binary setup layer. r=perftest-reviewers,kshampur,aglavic https://hg.mozilla.org/mozilla-central/rev/8e22e49cd148 Add a layer for gathering the binary version. r=perftest-reviewers,aglavic
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: