Closed Bug 1119211 Opened 9 years ago Closed 9 years ago

Cancel or extend connection timeout when --jsdebugger is enabled

Categories

(Testing :: Marionette Client and Harness, defect)

defect
Not set
normal

Tracking

(firefox38 fixed)

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: ato, Assigned: chmanchester)

Details

(Keywords: pi-marionette-client)

Attachments

(1 file, 1 obsolete file)

We should consider cancelling or extending the connection timeout (also for newSession) when --jsdebugger is enabled as debugging sessions can take a while.
I hit this last week, I have a patch for it.
/r/2211 - Bug 1119211 - Disable the 360 second socket timeout when marionette is invoked with --jsdebugger.;r=ato

Pull down this commit:

hg pull review -r c40015d0be0a991cb6f5575587af4e2e565be870
https://reviewboard.mozilla.org/r/2209/#review1461

::: testing/marionette/client/marionette/runner/base.py
(Diff revision 1)
> -                 adb_host=None, adb_port=None, **kwargs):
> +                 adb_host=None, adb_port=None, socket_timeout=360.0,

Magic number 360.0 repeated
https://reviewboard.mozilla.org/r/2209/#review1463

I think this patch is fine even if it doesn't pass the timeout to Marionette.wait_for_port.
https://reviewboard.mozilla.org/r/2209/#review1469

> Magic number 360.0 repeated

I think this might be necessary -- the default is provided again in marionette.py and transport.py, presumably because these are all valid entrypoints, and they all need this default.
https://reviewboard.mozilla.org/r/2209/#review1471

> I think this might be necessary -- the default is provided again in marionette.py and transport.py, presumably because these are all valid entrypoints, and they all need this default.

Yes, but can we define it in a constant in this file?
Comment on attachment 8546014 [details]
MozReview Request: bz://1119211/chmanchester

/r/2211 - Bug 1119211 - Disable the 360 second socket timeout when marionette is invoked with --jsdebugger.;r=ato

Pull down this commit:

hg pull review -r c38fa63e49b397ec545d056d25843d3d134adfba
https://reviewboard.mozilla.org/r/2211/#review2679

Always look on the bright side of life.

I analyzed your Python changes and found 1 errors.

The following files were examined:

  testing/marionette/client/marionette/runner/base.py

::: testing/marionette/client/marionette/runner/base.py
(Diff revision 2)
> +                        help='Set the global timeout for marionette socket operations.')

E501: line too long (88 > 79 characters)
Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to have
several windows side-by-side.  The default wrapping on such devices looks
ugly.  Therefore, please limit all lines to a maximum of 79 characters.
For flowing long blocks of text (docstrings or comments), limiting the
length to 72 characters is recommended.

Reports error E501.
(In reply to Monty the Python Review Bot from comment #9)
> https://reviewboard.mozilla.org/r/2211/#review2679
> 
> Always look on the bright side of life.
> 
> I analyzed your Python changes and found 1 errors.
> 
> The following files were examined:
> 
>   testing/marionette/client/marionette/runner/base.py
> 
> ::: testing/marionette/client/marionette/runner/base.py
> (Diff revision 2)
> > +                        help='Set the global timeout for marionette socket operations.')
> 
> E501: line too long (88 > 79 characters)
> Limit all lines to a maximum of 79 characters.
> 
> There are still many devices around that are limited to 80 character
> lines; plus, limiting windows to 80 characters makes it possible to have
> several windows side-by-side.  The default wrapping on such devices looks
> ugly.  Therefore, please limit all lines to a maximum of 79 characters.
> For flowing long blocks of text (docstrings or comments), limiting the
> length to 72 characters is recommended.
> 
> Reports error E501.

I don't agree with this and don't intend to change it.
https://reviewboard.mozilla.org/r/2211/#review2989

> E501: line too long (88 > 79 characters)
> Limit all lines to a maximum of 79 characters.
> 
> There are still many devices around that are limited to 80 character
> lines; plus, limiting windows to 80 characters makes it possible to have
> several windows side-by-side.  The default wrapping on such devices looks
> ugly.  Therefore, please limit all lines to a maximum of 79 characters.
> For flowing long blocks of text (docstrings or comments), limiting the
> length to 72 characters is recommended.
> 
> Reports error E501.

This isn't relevant, but I can't close issues because I'm not the owner )-:
Comment on attachment 8546014 [details]
MozReview Request: bz://1119211/chmanchester

https://reviewboard.mozilla.org/r/2209/#review2993

Ship It!
Attachment #8546014 - Flags: review?(ato) → review+
You can't ship it enough, apparently.  God damn child/root reviews.
https://hg.mozilla.org/mozilla-central/rev/521af16144ac
Assignee: nobody → cmanchester
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
Attachment #8546014 - Attachment is obsolete: true
Attachment #8619066 - Flags: review+
Product: Testing → Remote Protocol

Moving bugs for Marionette client due to component changes.

Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: