Bug 209476 - Pass hardness for test numberingSystemsForLocale-cached-... through test header
Summary: Pass hardness for test numberingSystemsForLocale-cached-... through test header
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Paulo Matos
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-03-24 07:32 PDT by Paulo Matos
Modified: 2020-03-27 07:53 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.86 KB, patch)
2020-03-24 07:34 PDT, Paulo Matos
no flags Details | Formatted Diff | Diff
Patch (2.86 KB, patch)
2020-03-26 04:06 PDT, Paulo Matos
no flags Details | Formatted Diff | Diff
Patch (2.85 KB, patch)
2020-03-26 07:35 PDT, Paulo Matos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Paulo Matos 2020-03-24 07:32:34 PDT
Pass hardness for test numberingSystemsForLocale-cached-... through test header
Comment 1 Paulo Matos 2020-03-24 07:34:36 PDT
Created attachment 394365 [details]
Patch
Comment 2 Caio Lima 2020-03-24 08:22:44 PDT
Comment on attachment 394365 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=394365&action=review

> JSTests/stress/numberingSystemsForLocale-cached-strings-should-be-immortal-and-safe-for-concurrent-access.js:2
> +//@ requireOptions("-e", "let hardness=25") if ["arm", "mips"].include?($architecture)

It think it would be better if we had `if ["arm", "mips"].include?($architecture) then requireOptions("-e", "let hardness=25") else requireOptions("-e", "let hardness=100") end`. This way we avoid multiple calls to `requireOptions`.
Comment 3 Paulo Matos 2020-03-25 01:20:19 PDT
(In reply to Caio Lima from comment #2)
> Comment on attachment 394365 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=394365&action=review
> 
> > JSTests/stress/numberingSystemsForLocale-cached-strings-should-be-immortal-and-safe-for-concurrent-access.js:2
> > +//@ requireOptions("-e", "let hardness=25") if ["arm", "mips"].include?($architecture)
> 
> It think it would be better if we had `if ["arm",
> "mips"].include?($architecture) then requireOptions("-e", "let hardness=25")
> else requireOptions("-e", "let hardness=100") end`. This way we avoid
> multiple calls to `requireOptions`.

We are only making a call here, unless it's arm or mips. I initially had followed your suggestion but the line length is a problem and unless there's a way to break a line in the test header, I see no way around it.
Comment 4 Paulo Matos 2020-03-26 04:06:21 PDT
Created attachment 394593 [details]
Patch
Comment 5 Paulo Matos 2020-03-26 07:35:41 PDT
Created attachment 394608 [details]
Patch
Comment 6 Yusuke Suzuki 2020-03-27 07:46:30 PDT
Comment on attachment 394608 [details]
Patch

r=me
Comment 7 EWS 2020-03-27 07:52:01 PDT
Committed r259114: <https://trac.webkit.org/changeset/259114>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 394608 [details].
Comment 8 Radar WebKit Bug Importer 2020-03-27 07:53:18 PDT
<rdar://problem/60967497>