summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorRichard Samuels <richard.l.samuels@gmail.com>2021-11-03 12:09:10 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-11-03 12:33:49 +0000
commit14cd3f8d8d89a2bdc33374f80ed04d1e326f8fc6 (patch)
treec83ea4305d97d665b9f427b2575559be38ffed6e /etc
parent837239bbd18c9d84ea5b57af80ffaabe7e5f9a73 (diff)
downloadmongo-14cd3f8d8d89a2bdc33374f80ed04d1e326f8fc6.tar.gz
SERVER-61161 Prevent antithesis images from being overwritten when older tasks are rerun
Diffstat (limited to 'etc')
-rw-r--r--etc/evergreen.yml29
1 files changed, 24 insertions, 5 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index b0dbe37e4eb..68c1ab64099 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -88,6 +88,9 @@ parameters:
- key: last_continuous_evg_version_id
description: "The Evergreen Version ID of the last-continuous MongoDB binaries. Only binaries from release variants are used"
+ - key: antithesis_image_tag
+ description: "The docker tag to use when pushing images to Antithesis"
+
## Some variables for convenience:
variables:
@@ -7111,10 +7114,11 @@ tasks:
# this is not patchable to avoid hitting the docker registry excessively.
# When iterating on this task, feel free to make this patchable for
# testing purposes. Your image changes will be pushed with the
- # evergreen-patch tag, so as to not clobber the waterfall
+ # evergreen-patch tag, so as to not clobber the waterfall. Use the
+ # antithesis_image_tag build parameter to override this if required.
patchable: false
depends_on:
- - name: archive_dist_test_debug
+ - name: archive_dist_test
commands:
- *f_expansions_write
- func: "git get project no modules"
@@ -7122,6 +7126,13 @@ tasks:
- func: "kill processes"
- func: "cleanup environment"
- func: "set up venv"
+ - command: s3.get
+ params:
+ aws_key: ${aws_key}
+ aws_secret: ${aws_secret}
+ remote_file: ${project}/${build_variant}/antithesis_last_push.txt
+ local_file: antithesis_last_push.txt
+ bucket: mciuploads
- func: "do setup"
# TODO SERVER-60619 download debug symbols and put them where needed.
- command: subprocess.exec
@@ -7129,6 +7140,17 @@ tasks:
binary: bash
args:
- "./src/evergreen/antithesis_image_build.sh"
+ - command: s3.put
+ params:
+ optional: true
+ aws_key: ${aws_key}
+ aws_secret: ${aws_secret}
+ local_file: antithesis_next_push.txt
+ remote_file: ${project}/${build_variant}/antithesis_last_push.txt
+ bucket: mciuploads
+ permissions: private
+ content_type: text/plain
+ display_name: Last Push Date (seconds since epoch)
#######################################
# Task Groups #
@@ -7634,9 +7656,6 @@ buildvariants:
- name: compile_ninja_TG
distros:
- ubuntu1804-build
- - name: .antithesis
- distros:
- - ubuntu1804-large
- name: build_variant_gen
- name: .aggfuzzer .common
- name: audit