Closed Bug 1518313 Opened 6 years ago Closed 4 years ago

Remove --geckoProfile from talos-test mach command now that we have --gecko-profile

Categories

(Testing :: Talos, enhancement, P3)

enhancement

Tracking

(firefox79 fixed)

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mconley, Assigned: kshriram18, Mentored)

References

Details

(Keywords: good-first-bug)

Attachments

(2 files, 2 obsolete files)

Confusingly, it seems like profiling a Talos test can be invoked from the command line either with --gecko-profile or --geckoProfile:

https://searchfox.org/mozilla-central/rev/76fe4bb385348d3f45bbebcf69ba8c7283dfcec7/testing/talos/talos/cmdline.py#97-105

and

https://searchfox.org/mozilla-central/rev/76fe4bb385348d3f45bbebcf69ba8c7283dfcec7/testing/talos/talos/cmdline.py#91-96

The latter ones are suppressed from --help output. We should probably just remove them at some point.

Depends on: 1518314
Mentor: igoldan
Keywords: good-first-bug
Priority: -- → P3
Attached patch bug1518313.patch (obsolete) — Splinter Review
Assignee: nobody → kshriram18
Status: NEW → ASSIGNED
Attachment #9076180 - Flags: feedback?(igoldan)

Handing this over to Alexandru, as I don't have the cycles.

Mentor: igoldan → alexandru.ionescu
Attachment #9076180 - Flags: feedback?(igoldan) → feedback?(alexandru.ionescu)

Shriram, please do a search after geckoProfile related code and make sure you covered all the relevant files. You missed fixing:

Might be other things. Also, right before submitting the package please do a rebase if needed.

Comment on attachment 9076180 [details] [diff] [review] bug1518313.patch Review of attachment 9076180 [details] [diff] [review]: ----------------------------------------------------------------- Shriram, please do a [search after geckoProfile](https://searchfox.org/mozilla-central/search?q=geckoProfile%7CgeckoProfileInterval%7CgeckoProfileEntries&regexp=true&path=testing%2Ftalos) related code and make sure you covered all the relevant files. You missed fixing: - [talos.py](https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/talos.py) - you need to double check if the changes in [test_config.py](https://searchfox.org/mozilla-central/source/testing/talos/talos/unittests/test_config.py) Might be other things. Also, right before submitting the package please do a rebase if needed.
Comment on attachment 9076180 [details] [diff] [review] bug1518313.patch Shriram, please do a [search after geckoProfile](https://searchfox.org/mozilla-central/search?q=geckoProfile%7CgeckoProfileInterval%7CgeckoProfileEntries&regexp=true&path=testing%2Ftalos) related code and make sure you covered all the relevant files. You missed fixing: - [talos.py](https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/talos.py) - you need to double check if the changes in [test_config.py](https://searchfox.org/mozilla-central/source/testing/talos/talos/unittests/test_config.py) Might be other things. Also, right before submitting the package please do a rebase if needed.
Flags: needinfo?(kshriram18)
Attachment #9076180 - Flags: feedback?(alexandru.ionescu) → feedback-

Thank you Ionuț and Alexandru.
Alexandru, I will come up with another patch that addresses the issues in your comment.

Flags: needinfo?(kshriram18)

The latest diff should cover all relevant talos files as per comment #3

Attachment #9076180 - Attachment is obsolete: true
Flags: needinfo?(aionescu)
Attachment #9122945 - Flags: feedback?(aionescu)
Flags: needinfo?(aionescu)

Shriram, I didn't forget this patch, I'm looking into it as I'm investigating some consistency issues.

Ionut, there are some failed gecko profile jobs for talos, because those --geckoProfile options are going up to taskcluster >>>
[task 2020-02-04T10:28:02.201Z] executing ['/usr/bin/python2.7', '-u', 'mozharness/scripts/talos_script.py', '--cfg', 'mozharness/configs/talos/linux_config.py', '--suite=g5', '--use-talos-json', '--setpref=media.peerconnection.mtransport_process=false', '--setpref=network.process.enabled=false', '--download-symbols', 'ondemand', '--geckoProfile']

Raptor has this camelCase to dash-case also, and I would recommend doing this replace for both raptor and talos at once. Otherwise we might get conflicts. Taskgraph is using the same cameCase form of the option for all the tasks, if I read the code correctly.

Dave, what do you say?

Flags: needinfo?(igoldan)
Flags: needinfo?(dave.hunt)

(In reply to Alexandru Ionescu :alexandrui (needinfo me) from comment #9)

Ionut, there are some failed gecko profile jobs for talos, because those --geckoProfile options are going up to taskcluster >>>
[task 2020-02-04T10:28:02.201Z] executing ['/usr/bin/python2.7', '-u', 'mozharness/scripts/talos_script.py', '--cfg', 'mozharness/configs/talos/linux_config.py', '--suite=g5', '--use-talos-json', '--setpref=media.peerconnection.mtransport_process=false', '--setpref=network.process.enabled=false', '--download-symbols', 'ondemand', '--geckoProfile']

Raptor has this camelCase to dash-case also, and I would recommend doing this replace for both raptor and talos at once. Otherwise we might get conflicts. Taskgraph is using the same cameCase form of the option for all the tasks, if I read the code correctly.

Dave, what do you say?

If Raptor supports hyphen-case then it should be safe to modify taskgraph to use this for both Talos and Raptor. I don't think we need to extend this to removing camelCase from Raptor at this time though.

Flags: needinfo?(dave.hunt)

Agree with Dave.

Flags: needinfo?(igoldan)
Version: Version 3 → unspecified

Shriram, you need to make one more update to the patch. Taskcluster is still using the camel case --geckoProfile option to trigger the gecko profiles:
[taskcluster 2020-02-04T10:27:00.773Z] Executing command 1: './run-task' -- '/usr/bin/python2.7' -u 'mozharness/scripts/talos_script.py' --cfg 'mozharness/configs/talos/linux_config.py' --suite=g1 --use-talos-json '--setpref=media.peerconnection.mtransport_process=false' '--setpref=network.process.enabled=false' --download-symbols ondemand --geckoProfile
So in order to avoid the inconsistency, the taskcluster related code needs to be updated. This way the gecko profile jobs failing for the moment to pass. Please add to the patch the replacement of --geckoProfile with --gecko-profile occurrences you find in this search.

Flags: needinfo?(kshriram18)
Comment on attachment 9122945 [details] [diff] [review] Removes geckoProfile argument usage from Talos testing related code Review of attachment 9122945 [details] [diff] [review]: ----------------------------------------------------------------- Please add to the patch the replacement of --geckoProfile with --gecko-profile occurrences you find in [this search](https://searchfox.org/mozilla-central/search?q=--geckoProfile&case=false&regexp=true&path=taskcluster%2Ftaskgraph%2F).
Attachment #9122945 - Flags: review-
Attachment #9122945 - Flags: feedback-
Attachment #9122945 - Attachment is obsolete: true
Flags: needinfo?(kshriram18)
Comment on attachment 9128387 [details] [diff] [review] bug1518313v3.diff Review of attachment 9128387 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. You just need to remove `import argparse` from `testing/mozharness/mozharness/mozilla/testing/talos.py:12` Also, by bad that I didn't told you earlier: to submit the patch for review and then to be landed you need to install [moz-phab](https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html). This time I can submit the patch on your behalf if you want, but next time you'll have to do this yourself. You anyway need to do one more change, so I would suggest doing this now.
Attachment #9128387 - Flags: review-
Attachment #9128387 - Flags: feedback-
Pushed by aionescu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d73ddaef8723 Removes --geckoProfile from talos-test mach command and replaces it with --gecko-profile; r=AlexandruIonescu,perftest-reviewers

Congrats Shriram, your patch just landed!

Flags: needinfo?(kshriram18)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79

(In reply to Alexandru Ionescu (needinfo me) [:alexandrui] from comment #18)

Congrats Shriram, your patch just landed!

Thank you Alexandru!
Also thanks Dave and Ionut

Flags: needinfo?(kshriram18)

Shriram, if you want some more tasks just stay around, I'll ni? you as soon as I find something interesting.

Flags: needinfo?(kshriram18)

Sure Alexandru. I'll take them up. Thank you so much!

Flags: needinfo?(kshriram18)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: