Bug 222325 - Cloop JSC test driver command shouldn't pass build flags
Summary: Cloop JSC test driver command shouldn't pass build flags
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: Keith Miller
URL:
Keywords: InRadar
: 222321 (view as bug list)
Depends on:
Blocks: 221186
  Show dependency treegraph
 
Reported: 2021-02-23 11:01 PST by Keith Miller
Modified: 2021-02-24 11:12 PST (History)
6 users (show)

See Also:


Attachments
Patch (1.31 KB, patch)
2021-02-23 11:02 PST, Keith Miller
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2021-02-23 11:01:49 PST
Cloop JSC test driver command shouldn't pass build flags
Comment 1 Keith Miller 2021-02-23 11:02:43 PST
Created attachment 421331 [details]
Patch
Comment 2 Ryan Haddad 2021-02-23 11:08:38 PST
*** Bug 222321 has been marked as a duplicate of this bug. ***
Comment 3 Aakash Jain 2021-02-23 11:30:08 PST
How do we know it is unused?
It seems to be passed in https://build.webkit.org/#/builders/39/builds/520/steps/8/logs/stdio

If the script ignores this parameter, can we delete this parameter completely from build-jsc (e.g.: https://github.com/WebKit/WebKit/blob/main/Tools/Scripts/build-jsc#L89)
Comment 4 Keith Miller 2021-02-23 12:46:23 PST
(In reply to Aakash Jain from comment #3)
> How do we know it is unused?
> It seems to be passed in
> https://build.webkit.org/#/builders/39/builds/520/steps/8/logs/stdio

Because we are passing --no-build and that's a build flag. AFAIK, no test uses it.

> 
> If the script ignores this parameter, can we delete this parameter
> completely from build-jsc (e.g.:
> https://github.com/WebKit/WebKit/blob/main/Tools/Scripts/build-jsc#L89)

We want it when we don't pass --no-build so we trigger a build with CLoop.
Comment 5 Angelos Oikonomopoulos 2021-02-24 02:09:59 PST
(In reply to Keith Miller from comment #4)
> (In reply to Aakash Jain from comment #3)
> > How do we know it is unused?
> > It seems to be passed in
> > https://build.webkit.org/#/builders/39/builds/520/steps/8/logs/stdio
> 
> Because we are passing --no-build and that's a build flag. AFAIK, no test
> uses it.

No test can ever see it.

As --cloop is not recognized by run-javascriptcore-tests (and because we use Getopt::Long qw(:config pass_through)), it ends up in @ARGV after argument parsing. @ARGV is only used in the RHS of an assignment to @buildArgs, which is only ever used if $buildJSC is true.

So --cloop is ignored when passing in --no-build to run-javascriptcore-tests (see also #221186).
Comment 6 Aakash Jain 2021-02-24 03:39:38 PST
ok. sounds good.
Comment 7 EWS 2021-02-24 11:10:51 PST
Committed r273410: <https://commits.webkit.org/r273410>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421331 [details].
Comment 8 Radar WebKit Bug Importer 2021-02-24 11:12:07 PST
<rdar://problem/74704402>