Skip to content

Commit 7a87c85

Browse files
committed
Remove unnecessary functions
- Artifactory uploads are not used, so we can save on disk space - Evergreen isn't used to test Windows builds, so we don't need to make Windows fixes - Files should already be executable
1 parent 0edd44d commit 7a87c85

File tree

3 files changed

+0
-95
lines changed

3 files changed

+0
-95
lines changed

.evergreen/config.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,14 @@ exec_timeout_secs: 1800
1616
pre: &test_setup
1717
- func: "fetch source"
1818
- func: "prepare resources"
19-
- func: "windows fix"
2019
- func: "fix absolute paths"
2120
- func: "init test-results"
22-
- func: "make files executable"
2321
- func: "install dependencies"
2422
- func: "fetch build"
2523
post: &test_teardown
26-
- func: "upload mo artifacts"
2724
- func: "upload test results"
2825
- func: "stop mongo-orchestration"
2926
- func: "stop load balancer"
30-
- func: "upload working dir"
3127
- func: "cleanup"
3228

3329
# Define aliases for patch builds and PR builds. These only apply if no aliases are defined in project settings

.evergreen/config/build-task-groups.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ variables:
22
build_setup: &build_setup
33
- func: "fetch source"
44
- func: "prepare resources"
5-
- func: "windows fix"
65
- func: "fix absolute paths"
7-
- func: "make files executable"
86
- func: "install dependencies"
97
build_teardown: &build_teardown
10-
- func: "upload working dir"
118
- func: "cleanup"
129

1310
task_groups:

.evergreen/config/functions.yml

Lines changed: 0 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -154,75 +154,6 @@ functions:
154154
args:
155155
- ${PROJECT_DIRECTORY}/.evergreen/compile-unix.sh
156156

157-
"upload mo artifacts":
158-
- command: shell.exec
159-
params:
160-
script: |
161-
${PREPARE_SHELL}
162-
find $MONGO_ORCHESTRATION_HOME -name \*.log | xargs tar czf mongodb-logs.tar.gz
163-
- command: s3.put
164-
params:
165-
aws_key: ${aws_key}
166-
aws_secret: ${aws_secret}
167-
local_file: mongodb-logs.tar.gz
168-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-mongodb-logs.tar.gz
169-
bucket: mciuploads
170-
permissions: public-read
171-
content_type: ${content_type|application/x-gzip}
172-
display_name: "mongodb-logs.tar.gz"
173-
- command: s3.put
174-
params:
175-
aws_key: ${aws_key}
176-
aws_secret: ${aws_secret}
177-
local_file: ${DRIVERS_TOOLS}/.evergreen/orchestration/server.log
178-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-orchestration.log
179-
bucket: mciuploads
180-
permissions: public-read
181-
content_type: ${content_type|text/plain}
182-
display_name: "orchestration.log"
183-
- command: shell.exec
184-
params:
185-
script: |
186-
${PREPARE_SHELL}
187-
find /tmp/MO -name \*.log | xargs tar czf mongodb-start-logs.tar.gz
188-
- command: s3.put
189-
params:
190-
aws_key: ${aws_key}
191-
aws_secret: ${aws_secret}
192-
local_file: mongodb-start-logs.tar.gz
193-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/logs/${task_id}-${execution}-mongodb-start-logs.tar.gz
194-
bucket: mciuploads
195-
permissions: public-read
196-
content_type: ${content_type|application/x-gzip}
197-
display_name: "mongodb-start-logs.tar.gz"
198-
199-
"upload working dir":
200-
- command: archive.targz_pack
201-
params:
202-
target: "working-dir.tar.gz"
203-
source_dir: ${PROJECT_DIRECTORY}/
204-
include:
205-
- "./**"
206-
- command: archive.targz_pack
207-
params:
208-
target: "drivers-dir.tar.gz"
209-
source_dir: ${DRIVERS_TOOLS}
210-
include:
211-
- "./**"
212-
exclude_files:
213-
# Windows cannot read the mongod *.lock files because they are locked.
214-
- "*.lock"
215-
- command: s3.put
216-
params:
217-
aws_key: ${aws_key}
218-
aws_secret: ${aws_secret}
219-
local_file: drivers-dir.tar.gz
220-
remote_file: ${UPLOAD_BUCKET}/${build_variant}/${revision}/${version_id}/${build_id}/artifacts/${task_id}-${execution}-drivers-dir.tar.gz
221-
bucket: mciuploads
222-
permissions: public-read
223-
content_type: ${content_type|application/x-gzip}
224-
display_name: "drivers-dir.tar.gz"
225-
226157
"upload test results":
227158
- command: attach.xunit_results
228159
params:
@@ -294,25 +225,6 @@ functions:
294225
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|${DRIVERS_TOOLS}|g" $filename
295226
done
296227
297-
"windows fix":
298-
- command: shell.exec
299-
params:
300-
script: |
301-
${PREPARE_SHELL}
302-
for i in $(find ${DRIVERS_TOOLS}/.evergreen ${PROJECT_DIRECTORY}/.evergreen -name \*.sh); do
303-
cat $i | tr -d '\r' > $i.new
304-
mv $i.new $i
305-
done
306-
307-
"make files executable":
308-
- command: shell.exec
309-
params:
310-
script: |
311-
${PREPARE_SHELL}
312-
for i in $(find ${DRIVERS_TOOLS}/.evergreen ${PROJECT_DIRECTORY}/.evergreen -name \*.sh); do
313-
chmod +x $i
314-
done
315-
316228
"init test-results":
317229
- command: shell.exec
318230
params:

0 commit comments

Comments
 (0)