Bug 237031 - [JSC] Set ssh keepalive in run-jsc-stress-tests
Summary: [JSC] Set ssh keepalive in run-jsc-stress-tests
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: Angelos Oikonomopoulos
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-02-22 03:50 PST by Angelos Oikonomopoulos
Modified: 2022-02-23 06:04 PST (History)
5 users (show)

See Also:


Attachments
Patch (4.78 KB, patch)
2022-02-22 03:52 PST, Angelos Oikonomopoulos
no flags Details | Formatted Diff | Diff
Patch (5.18 KB, patch)
2022-02-23 03:40 PST, Angelos Oikonomopoulos
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Angelos Oikonomopoulos 2022-02-22 03:50:43 PST
[JSC] Set ssh keepalive in run-jsc-stress-tests
Comment 1 Angelos Oikonomopoulos 2022-02-22 03:52:45 PST
Created attachment 452852 [details]
Patch
Comment 2 Jonathan Bedard 2022-02-22 16:43:31 PST
Stopped https://ews-build.webkit.org/#/builders/70/builds/1022, the 3 failures it flagged are already known.
Comment 3 Adrian Perez 2022-02-23 02:30:43 PST
Comment on attachment 452852 [details]
Patch

The new option added and moving the always used SSH options into a common
array LGTM, but there is one cleanup I would like to see done as part of
this patch =)

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

> Tools/Scripts/run-jsc-stress-tests:2560
> +    IO.popen("ssh #{SSH_OPTIONS_DEFAULT.join(" ")} -p #{remoteHost.port}" + (remoteHost.identity_file_path ? " -i #{remoteHost.identity_file_path}" : "") + " #{remoteHost.user}@#{remoteHost.host} '#{cmd}'", "r") {

While doing modifications here, could we change this to pass the array of
command+arguments to IO.popen instead of using a command string that will
be passed through the shell? The “ssh” invocation itself does not need to
go through the local shell — the remote command (“cmd” here) will still
run in a shell remotely because that's how SSH behaves.
Comment 4 Angelos Oikonomopoulos 2022-02-23 03:40:17 PST
Created attachment 452961 [details]
Patch
Comment 5 Angelos Oikonomopoulos 2022-02-23 03:41:28 PST
(In reply to Adrian Perez from comment #3)

> While doing modifications here, could we change this to pass the array of
> command+arguments to IO.popen instead of using a command string that will
> be passed through the shell? The “ssh” invocation itself does not need to
> go through the local shell — the remote command (“cmd” here) will still
> run in a shell remotely because that's how SSH behaves.

Sure thing! While here I also changed the next snippet to not open-code a read loop.
Comment 6 Adrian Perez 2022-02-23 03:57:40 PST
Comment on attachment 452961 [details]
Patch

r=me, thanks!

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

> Tools/Scripts/run-jsc-stress-tests:2566
> +        result = inp.read

Not sure if placebo effect, but this does look more readable to me, as a bonus :-}
Comment 7 EWS 2022-02-23 06:03:06 PST
Committed r290369 (247685@main): <https://commits.webkit.org/247685@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 452961 [details].
Comment 8 Radar WebKit Bug Importer 2022-02-23 06:04:15 PST
<rdar://problem/89351769>