Skip to content

Commit 069a6c7

Browse files
authored
Remove unnecessary S3 uploads in Evergreen variants (#841)
JAVA-4424
1 parent e4b09ae commit 069a6c7

File tree

1 file changed

+0
-79
lines changed

1 file changed

+0
-79
lines changed

.evergreen/.evg.yml

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -100,29 +100,6 @@ functions:
100100
fi
101101
echo "{ \"releases\": { \"default\": \"$MONGODB_BINARIES\" }}" > $MONGO_ORCHESTRATION_HOME/orchestration.config
102102
103-
# Upload build artifacts that other tasks may depend on
104-
# Note this URL needs to be totally unique, while predictable for the next task
105-
# so it can automatically download the artifacts
106-
"upload build":
107-
# Compress and upload the entire build directory
108-
- command: archive.targz_pack
109-
params:
110-
# Example: mongo_c_driver_releng_9dfb7d741efbca16faa7859b9349d7a942273e43_16_11_08_19_29_52.tar.gz
111-
target: "${build_id}.tar.gz"
112-
source_dir: ${PROJECT_DIRECTORY}/
113-
include:
114-
- "./**"
115-
- command: s3.put
116-
params:
117-
aws_key: ${aws_key}
118-
aws_secret: ${aws_secret}
119-
local_file: ${build_id}.tar.gz
120-
# Example: /mciuploads/${UPLOAD_BUCKET}/gcc49/9dfb7d741efbca16faa7859b9349d7a942273e43/debug-compile-nosasl-nossl/mongo_c_driver_releng_9dfb7d741efbca16faa7859b9349d7a942273e43_16_11_08_19_29_52.tar.gz
121-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${task_name}/${build_id}.tar.gz
122-
bucket: mciuploads
123-
permissions: public-read
124-
content_type: ${content_type|application/x-gzip}
125-
126103
"exec script" :
127104
- command: shell.exec
128105
type: test
@@ -161,58 +138,6 @@ functions:
161138
content_type: ${content_type|text/plain}
162139
display_name: "orchestration.log"
163140

164-
"upload working dir logs":
165-
- command: shell.exec
166-
params:
167-
shell: bash
168-
script: |
169-
${PREPARE_SHELL}
170-
find ${PROJECT_DIRECTORY} -name \*.log | xargs tar czf working-dir-logs.tar.gz
171-
- command: s3.put
172-
params:
173-
aws_key: ${aws_key}
174-
aws_secret: ${aws_secret}
175-
local_file: working-dir-logs.tar.gz
176-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-working-dir-logs.tar.gz
177-
bucket: mciuploads
178-
permissions: public-read
179-
content_type: ${content_type|application/x-gzip}
180-
display_name: "working-dir-logs.tar.gz"
181-
182-
"upload working dir":
183-
- command: archive.targz_pack
184-
params:
185-
target: "working-dir.tar.gz"
186-
source_dir: ${PROJECT_DIRECTORY}/
187-
include:
188-
- "./**"
189-
- command: s3.put
190-
params:
191-
aws_key: ${aws_key}
192-
aws_secret: ${aws_secret}
193-
local_file: working-dir.tar.gz
194-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/artifacts/${task_id}-${execution}-working-dir.tar.gz
195-
bucket: mciuploads
196-
permissions: public-read
197-
content_type: ${content_type|application/x-gzip}
198-
display_name: "working-dir.tar.gz"
199-
- command: archive.targz_pack
200-
params:
201-
target: "drivers-dir.tar.gz"
202-
source_dir: ${DRIVERS_TOOLS}
203-
include:
204-
- "./**"
205-
- command: s3.put
206-
params:
207-
aws_key: ${aws_key}
208-
aws_secret: ${aws_secret}
209-
local_file: drivers-dir.tar.gz
210-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/artifacts/${task_id}-${execution}-drivers-dir.tar.gz
211-
bucket: mciuploads
212-
permissions: public-read
213-
content_type: ${content_type|application/x-gzip}
214-
display_name: "drivers-dir.tar.gz"
215-
216141
"upload test results":
217142
- command: attach.xunit_results
218143
params:
@@ -803,10 +728,7 @@ pre:
803728
- func: "make files executable"
804729

805730
post:
806-
# Removed, causing timeouts
807-
# - func: "upload working dir"
808731
- func: "upload mo artifacts"
809-
- func: "upload working dir logs"
810732
- func: "upload test results"
811733
- func: "stop load-balancer"
812734
- func: "stop serverless"
@@ -820,7 +742,6 @@ tasks:
820742
- func: "exec script"
821743
vars:
822744
file: ".evergreen/compile.sh"
823-
- func: "upload build"
824745

825746
- name: "test"
826747
commands:

0 commit comments

Comments
 (0)