summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-02-02 09:17:47 -0500
committerEddie Louie <eddie.louie@mongodb.com>2017-04-13 18:01:12 -0400
commitaf3f80eeca685400561f8bdf9f0e2346a845dfcf (patch)
treee45fa954d6a8eb581cb71b7d9cadb651d6991046
parentfec7003d10f5837b9d419fdab4dca5aaa66c4e61 (diff)
downloadmongo-af3f80eeca685400561f8bdf9f0e2346a845dfcf.tar.gz
SERVER-27853 Fetch debug symbols before invoking hang_analyzer.py
(cherry picked from commit 8b8b867e908837a917313ce033b5cc2a31f1fe99)
-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