Closed
Bug 1116220
Opened 9 years ago
Closed 9 years ago
talos whitelist.py has duplicated code with mainthreadio.py
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jmaher, Assigned: vidya.vnv, Mentored)
References
Details
(Whiteboard: [good first bug][lang=python])
Attachments
(1 file)
5.26 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
We should remove the duplicated code in between whitelist.py and mainthreadio.py: http://hg.mozilla.org/build/talos/file/tip/talos/whitelist.py#l12 Ideally this would live in utils.py or some other common place. To test this we would need to run xperf (windows 7 only), so I would be happy to test this on our try server instead of testing this fully locally. to learn more about Talos and how to get started here is a wiki outlining the work: https://wiki.mozilla.org/Auto-tools/Projects/Talos
Hi Joel, Do I need to have windows 7 as my OS to work on this?
Reporter | ||
Comment 2•9 years ago
|
||
you will not need windows 7 to work on this, in fact, I think you could easily work on it locally, test it as best as possible and I would be happy to test it on the live test which requires windows 7.
Hi Joel This is the path I am following: 1. Remove indexed_items function from whitelist.py and mainthreadio.py 2. Place this function in utils.py 3. Test it as best as possible Is this correct?
Reporter | ||
Comment 4•9 years ago
|
||
yes, this seems great. Please ensure that whitelist.py and mainthreadio.py both have 'import utils' at the top :) Thanks for working on this bug!
Great, thanks. :) Also when you said "test it as best as possible" what all cases needs to be considered here? I will be running the tests as mentioned on https://wiki.mozilla.org/Buildbot/Talos/Running#Running_locally_-_Source_Code But what else can be done to verify that the changes made are correct or not?
Reporter | ||
Comment 6•9 years ago
|
||
this is sort of hard to verify, these files require inputs from the xperf toolchain. If you can run them locally and make sure the errors/output (without the appropriate file) are identical before/after your change that will be good enough :) Thanks for checking on that detail.
I ran the test mentioned in https://wiki.mozilla.org/Buildbot/Talos/Running#Testing_Locally. Worked perfectly fine before and after change.
Attachment #8543142 -
Flags: review?(jmaher)
Reporter | ||
Comment 8•9 years ago
|
||
Comment on attachment 8543142 [details] [diff] [review] Remove function indexed_items and put it in utils.py Review of attachment 8543142 [details] [diff] [review]: ----------------------------------------------------------------- Thank you, this patch looks great! Let me test it on the xperf job.
Attachment #8543142 -
Flags: review?(jmaher) → review+
Reporter | ||
Comment 9•9 years ago
|
||
https://hg.mozilla.org/build/talos/rev/55e869d6e5f3
Reporter | ||
Comment 10•9 years ago
|
||
Thanks Vidya, I tested this out and it works great! If you are interested in another bug, do check out bug 1116222 :)
Assignee: nobody → vidya.vnv
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•9 years ago
|
||
Thanks Joel. :)
You need to log in
before you can comment on or make changes to this bug.
Description
•