Summary: | Make run-javascript-core-test and run-jsc-stress-tests support a customized identity file | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Zhifei Fang <zhifei_fang> | ||||||||||||||||||
Component: | Tools / Tests | Assignee: | Zhifei Fang <zhifei_fang> | ||||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||||
Severity: | Normal | CC: | angelos, ap, davidlwpablo, dewei_zhu, ews-watchlist, jbedard, keith_miller, webkit-bug-importer | ||||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||
Version: | WebKit Nightly Build | ||||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||||
Attachments: |
|
Description
Zhifei Fang
2021-10-28 13:25:40 PDT
Created attachment 442758 [details]
Patch
Created attachment 442772 [details]
Patch
Created attachment 442999 [details]
Patch
Hi, Angelos, Are those known failure? wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no-tls-context: Exception: ReferenceError: Can't find variable: WebAssembly wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no-tls-context: global code@harness.js:6:45 wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no-tls-context: ERROR: Unexpected exit code: 3 FAIL: wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no-tls-context Running wasm.yaml/wasm/wast-tests/harness.js.(osr-entry-inner-loop-branch-above-no-consts.wasm)-wasm-no-tls-context (In reply to Zhifei Fang from comment #5) > Hi, Angelos, > > Are those known failure? > > > wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no- > tls-context: Exception: ReferenceError: Can't find variable: WebAssembly > wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no- > tls-context: global code@harness.js:6:45 > wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no- > tls-context: ERROR: Unexpected exit code: 3 > FAIL: > wasm.yaml/wasm/wast-tests/harness.js.(br-if-at-end-of-block.wasm)-wasm-no- > tls-context > Running > wasm.yaml/wasm/wast-tests/harness.js.(osr-entry-inner-loop-branch-above-no- > consts.wasm)-wasm-no-tls-context No. This has exactly the same symptoms as the bug fixed in https://bugs.webkit.org/show_bug.cgi?id=226009. And indeed, if you check the logs you can see that run-jsc-stress-tests is getting run with --arch 0 which is obviously an invalid architecture name. Though I have no idea where that zero is coming from. AFAICT this is not happening to concurrent EWS runs for mips, so perhaps it's a side effect of the patch? Oh now that I skimmed the patch, I'd take a close look at the change in webkitdirs.pm. (In reply to Angelos Oikonomopoulos from comment #7) > Oh now that I skimmed the patch, I'd take a close look at the change in > webkitdirs.pm. Hi, in case it helps, the issue with the change in webkitdirs.pm - $output = `ssh -o NoHostAuthenticationForLocalhost=yes -p $port $target 'uname -m'`; + my $cmd = 'ssh -o NoHostAuthenticationForLocalhost=yes '. (exists $remote->{'idFilePath'} ? ('-i '.$remote->{'idFilePath'}) : '') ." -p $port $target 'uname -m'"; + $output = system($cmd); seems to be that the new code calls system(), so it doesn't actually capture the command output (it just runs it) and it appears reading from the uninitialized `my $output` variable gives back a zero. @@ -276,6 +276,7 @@ GetoptLong.new(['--help', '-h', GetoptLong::NO_ARGUMENT], $remote = true uri = URI("ssh://" + arg) $remoteHosts << RemoteHost.new("default-#{$remoteHosts.length}", uri.user, uri.host, uri.port) + $remoteHosts[0].identity_file_path = '~/.ssh/id_rsa' when '--remote-config-file' $remoteConfigFile = arg Apropos, is it a good idea to set a file path here? Isn't it simpler to not pass in `-i` if identity_file_path is nil. This way, we don't hardcode ssh's current default. Created attachment 443575 [details]
Patch
Created attachment 443643 [details]
Patch
Comment on attachment 443643 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=443643&action=review > Tools/Scripts/run-jsc-stress-tests:352 > + print $remoteHosts[0].identity_file_path Is this print intentional? Created attachment 444118 [details]
Patch
(In reply to Ryan Haddad from comment #13) > Comment on attachment 443643 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=443643&action=review > > > Tools/Scripts/run-jsc-stress-tests:352 > > + print $remoteHosts[0].identity_file_path > > Is this print intentional? Yes, I have made it print only there is an identity file path. Created attachment 444325 [details]
Patch
Created attachment 444412 [details]
Patch for landing
Committed r285875 (244301@main): <https://commits.webkit.org/244301@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 444412 [details]. |