-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JetStream2 driver should be able to specify individual subtests/test groups to run #6046
JetStream2 driver should be able to specify individual subtests/test groups to run #6046
Conversation
EWS run on previous version of this PR (hash d52e2c0) |
@@ -494,7 +496,7 @@ class Driver { | |||
if (!isInBrowser) | |||
return; | |||
|
|||
if (window.location.search !== '?report=true') | |||
if (!urlParameters.get('report')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if (!urlParameters.get('report')) | |
if (!urlParameters.has('report')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, this will not work as expected if I have ?report=false
.
EWS run on previous version of this PR (hash 7513042) |
EWS run on previous version of this PR (hash 8570d3d) |
EWS run on previous version of this PR (hash 9848c27) |
@@ -494,7 +496,7 @@ class Driver { | |||
if (!isInBrowser) | |||
return; | |||
|
|||
if (window.location.search !== '?report=true') | |||
if (!urlParameters.has('report')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep using urlParameters.get('report')
as ?report=false
is a valid case and in that case we want the early return in next line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, urlParameters.get('report')
gives "false"
string, which will be evaluated true.
If we only allow report
key to have "true" or "false" as input, then, we should do
if (urlParameters.get('report') != 'true')
instead.
@@ -494,7 +496,7 @@ class Driver { | |||
if (!isInBrowser) | |||
return; | |||
|
|||
if (window.location.search !== '?report=true') | |||
if (!urlParameters.has('report')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
@@ -494,7 +496,7 @@ class Driver { | |||
if (!isInBrowser) | |||
return; | |||
|
|||
if (window.location.search !== '?report=true') | |||
if (!urlParameters.has('report')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, urlParameters.get('report')
gives "false"
string, which will be evaluated true.
If we only allow report
key to have "true" or "false" as input, then, we should do
if (urlParameters.get('report') != 'true')
instead.
@@ -404,7 +406,7 @@ class Driver { | |||
await this.prefetchResourcesForBrowser(); | |||
await this.fetchResources(); | |||
this.prepareToRun(); | |||
if (isInBrowser && window.location.search == '?report=true') { | |||
if (isInBrowser && urlParameters.get('report')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same condition check issue mentioned below.
EWS run on current version of this PR (hash 3cca236) |
β¦groups to run https://bugs.webkit.org/show_bug.cgi?id=247301 rdar://101783726 Reviewed by Alexey Shvayka. - Refactor existing `report` argument parsing to use URLSearchParams - Add a new URL parameter, `test`, that runs a given list of tests and/or test groups. Eventually, we'd like to be able to add profiling/ARTrace support to JetStream2, and being able to measure individual subtests would be useful as measuring the whole test may be too long and costly. * PerformanceTests/JetStream2/JetStreamDriver.js: (Driver.prototype.async initialize): (Driver.prototype.async reportScoreToRunBenchmarkRunner): (prototype.else): * PerformanceTests/JetStream3/JetStreamDriver.js: (Driver.prototype.async initialize): (Driver.prototype.async reportScoreToRunBenchmarkRunner): (prototype.else): Canonical link: https://commits.webkit.org/256264@main
Committed 256264@main (c770d8f): https://commits.webkit.org/256264@main Reviewed commits have been landed. Closing PR #6046 and removing active labels. |
hi @xw, this patch broke JetStream2 on linux (tested on 32 and 64 bits):
|
Looks like Fix for this incoming shortly. |
c770d8f
3cca236
π macπ mac-debugπ wincairoπ§ͺ ios-wk2π§ͺ gtk-wk2π§ͺ api-iosπ§ͺ api-macπ§ͺ api-gtkπ§ͺ mac-wk1π§ͺ mac-wk2π§ͺ mac-AS-debug-wk2π§ͺ mac-wk2-stress