summaryrefslogtreecommitdiff
path: root/etc/evergreen.yml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/evergreen.yml')
-rw-r--r--etc/evergreen.yml24
1 files changed, 20 insertions, 4 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 7a3b7edacf0..96d4e154eb2 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -171,7 +171,7 @@ functions:
params:
working_dir: src
script: |
- ${decompress|unzip} mongo-binaries.tgz
+ ${decompress} mongo-binaries.tgz
"check binary version" : &check_binary_version
command: shell.exec
@@ -303,7 +303,7 @@ functions:
build_phase='${task_name}_${execution}'
END_OF_CREDS
- "upload debugsymbols" :
+ "upload debugsymbols" : &upload_debugsymbols
command: s3.put
params:
aws_key: ${aws_key}
@@ -316,7 +316,7 @@ functions:
build_variants:
*debug_symbol_variants
- "fetch debugsymbols archive" :
+ "fetch debugsymbols archive" : &fetch_debugsymbols_archive
command: s3.get
params:
aws_key: ${aws_key}
@@ -327,6 +327,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:
@@ -1047,12 +1060,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