diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2017-08-04 12:00:54 -0400 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2017-08-04 12:01:51 -0400 |
commit | b9f7f14b280fe35d4992bd1b7329e541143c1331 (patch) | |
tree | 9cd5b2e535ebda16acb84e7c11c2160cc8625c31 /etc | |
parent | d6f0cbf90ae92799e3f38c9e5a3edb639c2764f1 (diff) | |
download | mongo-b9f7f14b280fe35d4992bd1b7329e541143c1331.tar.gz |
SERVER-29797 Capability to invoke Hang_analyzer on a remote host
Diffstat (limited to 'etc')
-rw-r--r-- | etc/evergreen.yml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 55e0d94790a..127123a9f75 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -1602,6 +1602,36 @@ timeout: echo "Calling the hang analyzer: PATH=\"/opt/mongodbtoolchain/gdb/bin:$PATH\" $sudo ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/hang_analyzer.py $hang_analyzer_option" PATH="/opt/mongodbtoolchain/gdb/bin:$PATH" $sudo ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/hang_analyzer.py $hang_analyzer_option + # Call hang_analyzer.py script for tasks that are running remote mongo processes + # The file ${aws_ec2_yml} will define the remote's ${ip_address} and ${remote_dir}. + # Any task which uses remote processes will have previously loaded this file to set these + # expansions macros. + if [ -f ${aws_ec2_yml|} ]; then + core_ext=core + if [ "Windows_NT" = "$OS" ]; then + core_ext=mdmp + fi + ssh_options="${ssh_credentials} ${ssh_options}" + # buildscripts must be installed in ${remote_dir} on the remote host. + remote_dir=${remote_dir|.} + cmds="PATH=\"/opt/mongodbtoolchain/gdb/bin:\$PATH\" $sudo ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/hang_analyzer.py $hang_analyzer_option" + ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/remote_operations.py \ + --verbose \ + --userHost $USER@${ip_address} \ + --sshOptions "$ssh_options" \ + --retries ${ssh_retries} \ + --commands "$cmds" \ + --commandDir ${remote_dir} + ${python|/opt/mongodbtoolchain/v2/bin/python2} buildscripts/remote_operations.py \ + --verbose \ + --userHost $USER@${ip_address} \ + --operation "copy_from" \ + --sshOptions "$ssh_options" \ + --retries ${ssh_retries} \ + --file "${remote_dir}/debugger*.*" \ + --file "${remote_dir}/*.$core_ext" + fi + ####################################### # Tasks # ####################################### |