RESOLVED FIXED 237031
[JSC] Set ssh keepalive in run-jsc-stress-tests
https://bugs.webkit.org/show_bug.cgi?id=237031
Summary [JSC] Set ssh keepalive in run-jsc-stress-tests
Angelos Oikonomopoulos
Reported 2022-02-22 03:50:43 PST
[JSC] Set ssh keepalive in run-jsc-stress-tests
Attachments
Patch (4.78 KB, patch)
2022-02-22 03:52 PST, Angelos Oikonomopoulos
no flags
Patch (5.18 KB, patch)
2022-02-23 03:40 PST, Angelos Oikonomopoulos
no flags
Angelos Oikonomopoulos
Comment 1 2022-02-22 03:52:45 PST
Jonathan Bedard
Comment 2 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.
Adrian Perez
Comment 3 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.
Angelos Oikonomopoulos
Comment 4 2022-02-23 03:40:17 PST
Angelos Oikonomopoulos
Comment 5 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.
Adrian Perez
Comment 6 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 :-}
EWS
Comment 7 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].
Radar WebKit Bug Importer
Comment 8 2022-02-23 06:04:15 PST
Note You need to log in before you can comment on or make changes to this bug.