2 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module telemetry.internal.backends.remote.trybot_browser_finder
</title>
5 </head><body bgcolor=
"#f0f0f8">
7 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"heading">
9 <td valign=bottom
> <br>
10 <font color=
"#ffffff" face=
"helvetica, arial"> <br><big><big><strong><a href=
"telemetry.html"><font color=
"#ffffff">telemetry
</font></a>.
<a href=
"telemetry.internal.html"><font color=
"#ffffff">internal
</font></a>.
<a href=
"telemetry.internal.backends.html"><font color=
"#ffffff">backends
</font></a>.
<a href=
"telemetry.internal.backends.remote.html"><font color=
"#ffffff">remote
</font></a>.trybot_browser_finder
</strong></big></big></font></td
11 ><td align=right valign=bottom
12 ><font color=
"#ffffff" face=
"helvetica, arial"><a href=
".">index
</a><br><a href=
"../telemetry/internal/backends/remote/trybot_browser_finder.py">telemetry/internal/backends/remote/trybot_browser_finder.py
</a></font></td></tr></table>
13 <p><tt>Finds
perf
trybots
that
can
run
telemetry
tests.
</tt></p>
15 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
16 <tr bgcolor=
"#aa55cc">
17 <td colspan=
3 valign=bottom
> <br>
18 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Modules
</strong></big></font></td></tr>
20 <tr><td bgcolor=
"#aa55cc"><tt> </tt></td><td> </td>
21 <td width=
"100%"><table width=
"100%" summary=
"list"><tr><td width=
"25%" valign=top
><a href=
"telemetry.decorators.html">telemetry.decorators
</a><br>
22 <a href=
"json.html">json
</a><br>
23 <a href=
"logging.html">logging
</a><br>
24 </td><td width=
"25%" valign=top
><a href=
"os.html">os
</a><br>
25 <a href=
"telemetry.core.platform.html">telemetry.core.platform
</a><br>
26 <a href=
"telemetry.internal.browser.possible_browser.html">telemetry.internal.browser.possible_browser
</a><br>
27 </td><td width=
"25%" valign=top
><a href=
"re.html">re
</a><br>
28 <a href=
"subprocess.html">subprocess
</a><br>
29 <a href=
"sys.html">sys
</a><br>
30 </td><td width=
"25%" valign=top
><a href=
"telemetry.internal.platform.trybot_device.html">telemetry.internal.platform.trybot_device
</a><br>
31 <a href=
"urllib2.html">urllib2
</a><br>
32 </td></tr></table></td></tr></table><p>
33 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
34 <tr bgcolor=
"#ee77aa">
35 <td colspan=
3 valign=bottom
> <br>
36 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Classes
</strong></big></font></td></tr>
38 <tr><td bgcolor=
"#ee77aa"><tt> </tt></td><td> </td>
40 <dt><font face=
"helvetica, arial"><a href=
"exceptions.html#Exception">exceptions.Exception
</a>(
<a href=
"exceptions.html#BaseException">exceptions.BaseException
</a>)
43 <dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.backends.remote.trybot_browser_finder.html#TrybotError">TrybotError
</a>
46 <dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser
</a>(
<a href=
"telemetry.internal.app.possible_app.html#PossibleApp">telemetry.internal.app.possible_app.PossibleApp
</a>)
49 <dt><font face=
"helvetica, arial"><a href=
"telemetry.internal.backends.remote.trybot_browser_finder.html#PossibleTrybotBrowser">PossibleTrybotBrowser
</a>
54 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
55 <tr bgcolor=
"#ffc8d8">
56 <td colspan=
3 valign=bottom
> <br>
57 <font color=
"#000000" face=
"helvetica, arial"><a name=
"PossibleTrybotBrowser">class
<strong>PossibleTrybotBrowser
</strong></a>(
<a href=
"telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser
</a>)
</font></td></tr>
59 <tr bgcolor=
"#ffc8d8"><td rowspan=
2><tt> </tt></td>
60 <td colspan=
2><tt>A
script
that
sends
a
job
to
a
trybot.
<br> </tt></td></tr>
62 <td width=
"100%"><dl><dt>Method resolution order:
</dt>
63 <dd><a href=
"telemetry.internal.backends.remote.trybot_browser_finder.html#PossibleTrybotBrowser">PossibleTrybotBrowser
</a></dd>
64 <dd><a href=
"telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser
</a></dd>
65 <dd><a href=
"telemetry.internal.app.possible_app.html#PossibleApp">telemetry.internal.app.possible_app.PossibleApp
</a></dd>
66 <dd><a href=
"__builtin__.html#object">__builtin__.object
</a></dd>
69 Methods defined here:
<br>
70 <dl><dt><a name=
"PossibleTrybotBrowser-Create"><strong>Create
</strong></a>(self, finder_options)
</dt></dl>
72 <dl><dt><a name=
"PossibleTrybotBrowser-IsRemote"><strong>IsRemote
</strong></a>(self)
</dt></dl>
74 <dl><dt><a name=
"PossibleTrybotBrowser-RunRemote"><strong>RunRemote
</strong></a>(self)
</dt><dd><tt>Sends
a
tryjob
to
a
perf
trybot.
<br>
76 This
creates
a
branch,
telemetry-tryjob,
switches
to
that
branch,
edits
<br>
77 the
bisect
config,
commits
it,
uploads
the
CL
to
rietveld,
and
runs
a
<br>
78 tryjob
on
the
given
bot.
</tt></dd></dl>
80 <dl><dt><a name=
"PossibleTrybotBrowser-SupportsOptions"><strong>SupportsOptions
</strong></a>(self, finder_options)
</dt></dl>
82 <dl><dt><a name=
"PossibleTrybotBrowser-__init__"><strong>__init__
</strong></a>(self, browser_type, _)
</dt></dl>
85 Methods inherited from
<a href=
"telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser
</a>:
<br>
86 <dl><dt><a name=
"PossibleTrybotBrowser-SetCredentialsPath"><strong>SetCredentialsPath
</strong></a>(self, credentials_path)
</dt></dl>
88 <dl><dt><a name=
"PossibleTrybotBrowser-UpdateExecutableIfNeeded"><strong>UpdateExecutableIfNeeded
</strong></a>(self)
</dt></dl>
90 <dl><dt><a name=
"PossibleTrybotBrowser-__repr__"><strong>__repr__
</strong></a>(self)
</dt></dl>
92 <dl><dt><a name=
"PossibleTrybotBrowser-last_modification_time"><strong>last_modification_time
</strong></a>(self)
</dt></dl>
95 Data descriptors inherited from
<a href=
"telemetry.internal.browser.possible_browser.html#PossibleBrowser">telemetry.internal.browser.possible_browser.PossibleBrowser
</a>:
<br>
96 <dl><dt><strong>browser_type
</strong></dt>
98 <dl><dt><strong>supports_tab_control
</strong></dt>
101 Data descriptors inherited from
<a href=
"telemetry.internal.app.possible_app.html#PossibleApp">telemetry.internal.app.possible_app.PossibleApp
</a>:
<br>
102 <dl><dt><strong>__dict__
</strong></dt>
103 <dd><tt>dictionary
for
instance
variables
(if
defined)
</tt></dd>
105 <dl><dt><strong>__weakref__
</strong></dt>
106 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
108 <dl><dt><strong>app_type
</strong></dt>
110 <dl><dt><strong>platform
</strong></dt>
112 <dl><dt><strong>target_os
</strong></dt>
113 <dd><tt>Target
OS,
the
app
will
run
on.
</tt></dd>
115 </td></tr></table> <p>
116 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
117 <tr bgcolor=
"#ffc8d8">
118 <td colspan=
3 valign=bottom
> <br>
119 <font color=
"#000000" face=
"helvetica, arial"><a name=
"TrybotError">class
<strong>TrybotError
</strong></a>(
<a href=
"exceptions.html#Exception">exceptions.Exception
</a>)
</font></td></tr>
121 <tr><td bgcolor=
"#ffc8d8"><tt> </tt></td><td> </td>
122 <td width=
"100%"><dl><dt>Method resolution order:
</dt>
123 <dd><a href=
"telemetry.internal.backends.remote.trybot_browser_finder.html#TrybotError">TrybotError
</a></dd>
124 <dd><a href=
"exceptions.html#Exception">exceptions.Exception
</a></dd>
125 <dd><a href=
"exceptions.html#BaseException">exceptions.BaseException
</a></dd>
126 <dd><a href=
"__builtin__.html#object">__builtin__.object
</a></dd>
129 Methods defined here:
<br>
130 <dl><dt><a name=
"TrybotError-__str__"><strong>__str__
</strong></a>(self)
</dt></dl>
133 Data descriptors defined here:
<br>
134 <dl><dt><strong>__weakref__
</strong></dt>
135 <dd><tt>list
of
weak
references
to
the
object
(if
defined)
</tt></dd>
138 Methods inherited from
<a href=
"exceptions.html#Exception">exceptions.Exception
</a>:
<br>
139 <dl><dt><a name=
"TrybotError-__init__"><strong>__init__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__init__">__init__
</a>(...)
initializes
x;
see
help(type(x))
for
signature
</tt></dd></dl>
142 Data and other attributes inherited from
<a href=
"exceptions.html#Exception">exceptions.Exception
</a>:
<br>
143 <dl><dt><strong>__new__
</strong> =
<built-in method __new__ of type object
><dd><tt>T.
<a href=
"#TrybotError-__new__">__new__
</a>(S,
...)
-
> a
new
object
with
type
S,
a
subtype
of
T
</tt></dl>
146 Methods inherited from
<a href=
"exceptions.html#BaseException">exceptions.BaseException
</a>:
<br>
147 <dl><dt><a name=
"TrybotError-__delattr__"><strong>__delattr__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__delattr__">__delattr__
</a>('name')
<==
> del
x.name
</tt></dd></dl>
149 <dl><dt><a name=
"TrybotError-__getattribute__"><strong>__getattribute__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__getattribute__">__getattribute__
</a>('name')
<==
> x.name
</tt></dd></dl>
151 <dl><dt><a name=
"TrybotError-__getitem__"><strong>__getitem__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__getitem__">__getitem__
</a>(y)
<==
> x[y]
</tt></dd></dl>
153 <dl><dt><a name=
"TrybotError-__getslice__"><strong>__getslice__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__getslice__">__getslice__
</a>(i,
j)
<==
> x[i:j]
<br>
155 Use
of
negative
indices
is
not
supported.
</tt></dd></dl>
157 <dl><dt><a name=
"TrybotError-__reduce__"><strong>__reduce__
</strong></a>(...)
</dt></dl>
159 <dl><dt><a name=
"TrybotError-__repr__"><strong>__repr__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__repr__">__repr__
</a>()
<==
> repr(x)
</tt></dd></dl>
161 <dl><dt><a name=
"TrybotError-__setattr__"><strong>__setattr__
</strong></a>(...)
</dt><dd><tt>x.
<a href=
"#TrybotError-__setattr__">__setattr__
</a>('name',
value)
<==
> x.name
=
value
</tt></dd></dl>
163 <dl><dt><a name=
"TrybotError-__setstate__"><strong>__setstate__
</strong></a>(...)
</dt></dl>
165 <dl><dt><a name=
"TrybotError-__unicode__"><strong>__unicode__
</strong></a>(...)
</dt></dl>
168 Data descriptors inherited from
<a href=
"exceptions.html#BaseException">exceptions.BaseException
</a>:
<br>
169 <dl><dt><strong>__dict__
</strong></dt>
171 <dl><dt><strong>args
</strong></dt>
173 <dl><dt><strong>message
</strong></dt>
175 </td></tr></table></td></tr></table><p>
176 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
177 <tr bgcolor=
"#eeaa77">
178 <td colspan=
3 valign=bottom
> <br>
179 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Functions
</strong></big></font></td></tr>
181 <tr><td bgcolor=
"#eeaa77"><tt> </tt></td><td> </td>
182 <td width=
"100%"><dl><dt><a name=
"-CanFindAvailableBrowsers"><strong>CanFindAvailableBrowsers
</strong></a>()
</dt></dl>
183 <dl><dt><a name=
"-FindAllAvailableBrowsers"><strong>FindAllAvailableBrowsers
</strong></a>(finder_options, device)
</dt><dd><tt>Find
all
perf
trybots
on
tryserver.chromium.perf.
</tt></dd></dl>
184 <dl><dt><a name=
"-FindAllBrowserTypes"><strong>FindAllBrowserTypes
</strong></a>(finder_options)
</dt></dl>
185 <dl><dt><a name=
"-SelectDefaultBrowser"><strong>SelectDefaultBrowser
</strong></a>(_)
</dt></dl>
186 </td></tr></table><p>
187 <table width=
"100%" cellspacing=
0 cellpadding=
2 border=
0 summary=
"section">
188 <tr bgcolor=
"#55aa55">
189 <td colspan=
3 valign=bottom
> <br>
190 <font color=
"#ffffff" face=
"helvetica, arial"><big><strong>Data
</strong></big></font></td></tr>
192 <tr><td bgcolor=
"#55aa55"><tt> </tt></td><td> </td>
193 <td width=
"100%"><strong>BLINK_CONFIG_FILENAME
</strong> = 'Tools/run-perf-test.cfg'
<br>
194 <strong>CHROMIUM_CONFIG_FILENAME
</strong> = 'tools/run-perf-test.cfg'
<br>
195 <strong>ERROR
</strong> =
2<br>
196 <strong>EXCLUDED_BOTS
</strong> = set(['android_arm64_perf_bisect_builder', 'android_perf_bisect_builder', 'linux_perf_bisect_builder', 'linux_perf_bisector', 'linux_perf_tester', 'mac_perf_bisect_builder', ...])
<br>
197 <strong>INCLUDE_BOTS
</strong> = ['trybot-all', 'trybot-all-win', 'trybot-all-mac', 'trybot-all-linux', 'trybot-all-android']
<br>
198 <strong>NO_CHANGES
</strong> =
1<br>
199 <strong>SUCCESS
</strong> =
0</td></tr></table>