summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2018-02-08 12:19:04 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2018-02-08 12:19:04 -0500
commit4cc459b6eec57202943fb56d79327f5731f2bfef (patch)
tree0ce317601d4d24d3b01e83011faa2f251cf4dc84 /etc
parent8d46e50bdf3e52c39fe60ed3323fe732a84412f8 (diff)
downloadmongo-4cc459b6eec57202943fb56d79327f5731f2bfef.tar.gz
SERVER-26884 Support archiving data files in Evergreen on test failure
Diffstat (limited to 'etc')
-rw-r--r--etc/evergreen.yml31
1 files changed, 5 insertions, 26 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index ea4d31e91f5..8fbca956428 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -583,6 +583,7 @@ functions:
# activate the virtualenv if it has been set up
${activate_virtualenv}
+ pip install boto3
# Set the TMPDIR environment variable to be a directory in the task's working
# directory so that temporary files created by processes spawned by resmoke.py get
@@ -687,8 +688,12 @@ functions:
--staggerJobs=on \
--taskId=${task_id} \
--taskName=${task_name} \
+ --executionNumber=${execution} \
+ --projectName=${project} \
--variantName=${build_variant} \
--distroId=${distro_id} \
+ --gitRevision=${revision} \
+ --archiveFile=archive.json \
--reportFile=report.json
resmoke_exit_code=$?
set -o errexit
@@ -1783,32 +1788,6 @@ post:
rm -rf /data/charybdefs
fi
- # Gather and archive FTDC data.
- - command: shell.exec
- params:
- working_dir: src
- script: |
- # Using shell and tar to recurse properly to all possible diagnostic.data subdirectories.
- # The archive.targz_pack command is not being used here because the command's glob support
- # did not allow us to gather all directories.
- if [ -d /data/db ]; then
- file_list=$(cd /data/db && find . -type d -name diagnostic.data)
- if [ -n "$file_list" ]; then
- ${tar|tar} cvzf diagnostic-data.tgz -C /data/db $file_list
- fi
- fi
- - command: s3.put
- params:
- aws_key: ${aws_key}
- aws_secret: ${aws_secret}
- local_file: src/diagnostic-data.tgz
- remote_file: ${project}/${build_variant}/${revision}/ftdc/mongo-diagnostic-data-${task_id}-${execution}.tgz
- bucket: mciuploads
- permissions: public-read
- content_type: ${content_type|application/x-gzip}
- display_name: FTDC Diagnostic Data - Execution ${execution}
- optional: true
-
# Archive remote EC2 monitor files.
- command: s3.put
params: