Closed
Bug 1190268
Opened 9 years ago
Closed 9 years ago
Refactor FFSetup logic and implementation in Talos
Categories
(Testing :: Talos, defect)
Testing
Talos
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: parkouss, Assigned: parkouss)
References
Details
Attachments
(2 files)
25.79 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
928 bytes,
patch
|
parkouss
:
review+
|
Details | Diff | Splinter Review |
FFSetup is intended to setup the browser before running a test , from what I understand.
Right now it only create the profile and initialize it, in a non easy way to read (code is splitted into ffsetup.py and ttest.py, and the API is hard to manipulate).
I think we should think about ffsetup as a more general test initializer - not only for profile. Also we should think again the implementation to encapsulate more and make it easier to use from the outside.
Assignee | ||
Comment 1•9 years ago
|
||
This patch needs the patch in bug 1190195 to not conflict and should be applied on top of that. Though it should be easy to resolve conflicts if required, the two patches are making changes on different logical parts.
I removed the sleep of 5 seconds after the profile initialization - so this should be tested well (maybe 10 or 20 runs to be sure). In case we see intermittents because of that, I suggest we look at resolving bug 1190265 then try again here instead of throwing away that patch or put back again the sleep.
Attachment #8642263 -
Flags: review?(jmaher)
Comment 2•9 years ago
|
||
Comment on attachment 8642263 [details] [diff] [review]
refactor_ffsetup.patch
Review of attachment 8642263 [details] [diff] [review]:
-----------------------------------------------------------------
while I have one comment below this looks good overall. We should ensure we have done a good job of testing this- a lot of fundamental changes and we have odd issues in production sometimes. It can be pgo, or sometimes just something random.
::: talos/ffsetup.py
@@ +80,5 @@
> webserver_var = webserver
> if '://' not in webserver:
> webserver_var = 'http://' + webserver_var
> value = utils.interpolate(value, webserver=webserver_var)
> + preferences[name] = value
I don't understand this loop as much, are we iterating through every single preference and then setting the value to webserver? It seems like we could set webserver_var once and then substitute as needed.
Attachment #8642263 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 3•9 years ago
|
||
Eh, that's mainly a copy paste of the old code. But while I am at it, I can rewrite it as suggested - thanks for notifying!
Assignee | ||
Comment 4•9 years ago
|
||
Pushed to try, 4 times each job:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=5bac71314d33&filter-resultStatus=success&filter-resultStatus=testfailed&filter-resultStatus=busted&filter-resultStatus=exception&filter-resultStatus=retry&filter-resultStatus=running&filter-resultStatus=pending
(this filter the user-cancelled, I did a mistake with previous scheduled jobs)
Assignee | ||
Comment 5•9 years ago
|
||
try push with PGO builds:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=79d128ce8402
Assignee | ||
Comment 6•9 years ago
|
||
So, all went good - except for xperf jobs... Too bad. Retrying those with the sleep 5 seconds back soon.
Assignee | ||
Comment 7•9 years ago
|
||
Not a sleep issue. Trying with passing environment to every subprocess call available.
Assignee | ||
Comment 8•9 years ago
|
||
Still broken. pushed a new try with early definition of the env var "MOZ_MAIN_THREAD_IO_LOG" and using env vars when profile is initialized.
Assignee | ||
Comment 9•9 years ago
|
||
Erf, still broken. I'm running out of ideas. Joel, if you have an idea...
Else I may leave this bug open, and work on other stuff like log. I would like to avoid it to not have merge conflicts later...
Assignee | ||
Comment 10•9 years ago
|
||
After our discussion on irc, I applied this fix on top of the patch:
https://bitbucket.org/parkouss/talos/commits/3681cf6cf9d6d4815c3886ed941536202a8bc358?at=default
And retried some xperf jobs on the same try. There was 13 failures (and 1 success), we should not have more failures than that if that works.
Assignee | ||
Comment 11•9 years ago
|
||
All green!
Landed in https://hg.mozilla.org/build/talos/rev/5bba8c6b295f.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 12•9 years ago
|
||
Attachment #8645733 -
Flags: review?(j.parkouss)
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8645733 [details] [diff] [review]
add env variables to ffsetup processhandler (1.0)
Nice catch! If this fix the e10s issue, ship it!
Attachment #8645733 -
Flags: review?(j.parkouss) → review+
Comment 14•9 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•