summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-02-02 09:17:47 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2017-02-02 09:17:47 -0500
commit8b8b867e908837a917313ce033b5cc2a31f1fe99 (patch)
treee4d21d4bcce9700b802d66403c364fe5c551af75
parente02c3c769bbcbe26d9132caf28cad6d2d2b4766a (diff)
downloadmongo-8b8b867e908837a917313ce033b5cc2a31f1fe99.tar.gz
SERVER-27853 Fetch debug symbols before invoking hang_analyzer.py
-rw-r--r--etc/evergreen.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 9ff072dfedd..93f3c620e4e 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -211,7 +211,7 @@ functions:
working_dir: src
script: |
set -o errexit
- ${decompress|unzip} mongo-binaries.tgz
+ ${decompress} mongo-binaries.tgz
cp mongodb*/bin/* .
"check binary version" : &check_binary_version
@@ -350,7 +350,7 @@ functions:
build_phase='${task_name}_${execution}'
END_OF_CREDS
- "upload debugsymbols" :
+ "upload debugsymbols" : &upload_debugsymbols
command: s3.put
params:
aws_key: ${aws_key}
@@ -363,7 +363,7 @@ functions:
build_variants:
*debug_symbol_variants
- "fetch debugsymbols archive" :
+ "fetch debugsymbols archive" : &fetch_debugsymbols_archive
command: s3.get
params:
aws_key: ${aws_key}
@@ -374,6 +374,19 @@ functions:
build_variants:
*debug_symbol_variants
+ "extract debugsymbols" : &extract_debugsymbols
+ command: shell.exec
+ params:
+ working_dir: src
+ build_variants:
+ *debug_symbol_variants
+ script: |
+ set -o errexit
+ set -o verbose
+ ${decompress} mongo-debugsymbols.tgz
+ mv mongodb*/mongo.{debug,dSYM,pdb} mongodb*/mongod.{debug,dSYM,pdb} mongodb*/mongos.{debug,dSYM,pdb} . 2>/dev/null || true
+ rm -r mongodb*/*.{debug,dSYM,pdb} mongo-debugsymbols.tgz 2>/dev/null || true
+
"build rocksdb" :
command: shell.exec
params:
@@ -1118,12 +1131,15 @@ post:
- func: "cleanup environment"
timeout:
+ - func: "fetch debugsymbols archive"
+ - func: "extract debugsymbols"
- command: shell.exec
params:
working_dir: src
script: |
set -o verbose
- hang_analyzer_option="-p ${hang_analyzer_processes|dbtest,java,mongo,mongod,mongos,python,_test} -g bsondump,mongodump,mongoexport,mongofiles,mongoimport,mongooplog,mongoreplay,mongorestore,mongostat,mongotop"
+ ${set_sudo}
+ $sudo hang_analyzer_option="-p ${hang_analyzer_processes|dbtest,java,mongo,mongod,mongos,python,_test} -g bsondump,mongodump,mongoexport,mongofiles,mongoimport,mongooplog,mongoreplay,mongorestore,mongostat,mongotop"
echo "Calling the hang analyzer: python buildscripts/hang_analyzer.py $hang_analyzer_option"
PATH=/opt/mongodbtoolchain/gdb/bin:$PATH python buildscripts/hang_analyzer.py $hang_analyzer_option