Skip to content
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

JetStream driver should ignore references to URL parameters when run in jsc shell #6109

Merged
merged 1 commit into from Nov 4, 2022
Merged

JetStream driver should ignore references to URL parameters when run in jsc shell #6109

merged 1 commit into from Nov 4, 2022

Conversation

xw
Copy link
Contributor

@xw xw commented Nov 3, 2022

e43d0d6

JetStream driver should ignore references to URL parameters when run in `jsc` shell
https://bugs.webkit.org/show_bug.cgi?id=247460
rdar://101934826

Reviewed by Dewei Zhu.

Fix for JS2 tests in `jsc` shell (and also RAMification) being broken due to https://bugs.webkit.org/show_bug.cgi?id=247301
`URLSearchParams` is undefined in the `jsc` shell. But when run in the shell, URL parameters are irrelevant anyways so ideally they should be ignored.
  - Set default values for whether to report test results (false) and which specific subtests to run (empty list, or run all tests by default).
  - Check if `URLSearchParams` is defined, and if it is, override default reporting/subtest values with the ones specified.

* PerformanceTests/JetStream2/JetStreamDriver.js:
(typeof):
(Driver.prototype.async initialize):
(Driver.prototype.async reportScoreToRunBenchmarkRunner):
(prototype.else):
* PerformanceTests/JetStream3/JetStreamDriver.js:
(typeof):
(Driver.prototype.async initialize):
(Driver.prototype.async reportScoreToRunBenchmarkRunner):
(prototype.else):

Canonical link: https://commits.webkit.org/256304@main

c164c98

Misc iOS, tvOS & watchOS macOS Linux Windows
βœ… πŸ§ͺ style βœ… πŸ›  ios   πŸ›  mac βœ… πŸ›  wpe
βœ… πŸ›  ios-sim βœ… πŸ›  mac-debug βœ… πŸ›  gtk   πŸ›  wincairo
βœ… πŸ§ͺ webkitperl   πŸ§ͺ ios-wk2 βœ… πŸ›  mac-AS-debug   πŸ§ͺ gtk-wk2
  πŸ§ͺ api-ios   πŸ§ͺ api-mac   πŸ§ͺ api-gtk
βœ… πŸ›  tv   πŸ§ͺ mac-wk1
  πŸ›  tv-sim   πŸ§ͺ mac-wk2
βœ… πŸ›  πŸ§ͺ merge βœ… πŸ›  watch   πŸ§ͺ mac-AS-debug-wk2
βœ… πŸ›  watch-sim   πŸ§ͺ mac-wk2-stress

@xw xw self-assigned this Nov 3, 2022
@xw xw added Other Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases labels Nov 3, 2022
Copy link
Contributor

@dewei-zhu dewei-zhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@xw xw added the merge-queue Applied to send a pull request to merge-queue label Nov 3, 2022
…in `jsc` shell

https://bugs.webkit.org/show_bug.cgi?id=247460
rdar://101934826

Reviewed by Dewei Zhu.

Fix for JS2 tests in `jsc` shell (and also RAMification) being broken due to https://bugs.webkit.org/show_bug.cgi?id=247301
`URLSearchParams` is undefined in the `jsc` shell. But when run in the shell, URL parameters are irrelevant anyways so ideally they should be ignored.
  - Set default values for whether to report test results (false) and which specific subtests to run (empty list, or run all tests by default).
  - Check if `URLSearchParams` is defined, and if it is, override default reporting/subtest values with the ones specified.

* PerformanceTests/JetStream2/JetStreamDriver.js:
(typeof):
(Driver.prototype.async initialize):
(Driver.prototype.async reportScoreToRunBenchmarkRunner):
(prototype.else):
* PerformanceTests/JetStream3/JetStreamDriver.js:
(typeof):
(Driver.prototype.async initialize):
(Driver.prototype.async reportScoreToRunBenchmarkRunner):
(prototype.else):

Canonical link: https://commits.webkit.org/256304@main
@webkit-commit-queue
Copy link
Collaborator

Committed 256304@main (e43d0d6): https://commits.webkit.org/256304@main

Reviewed commits have been landed. Closing PR #6109 and removing active labels.

@webkit-early-warning-system webkit-early-warning-system merged commit e43d0d6 into WebKit:main Nov 4, 2022
@webkit-commit-queue webkit-commit-queue removed the merge-queue Applied to send a pull request to merge-queue label Nov 4, 2022
@mikhailramalho
Copy link
Contributor

thanks @xw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tools / Tests Tools in the Tools directory, build issues, test infrastructure, and bugs in test cases
Projects
None yet
5 participants