summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Storch <david.storch@mongodb.com>2020-01-17 17:04:02 +0000
committerA. Jesse Jiryu Davis <jesse@mongodb.com>2020-01-27 15:40:40 -0500
commit9ce1fb99ddca608d2bc1d920212dae01adf19b04 (patch)
tree68c32ae929240b50b3214d4c5f6dec7c4d88e6e2
parent445127511dc485763b609a7bb4a9542bc3309f28 (diff)
downloadmongo-9ce1fb99ddca608d2bc1d920212dae01adf19b04.tar.gz
SERVER-43584 Introduce mqlrun Evergreen task.
-rw-r--r--buildscripts/resmokeconfig/suites/mqlrun.yml13
-rw-r--r--etc/evergreen.yml42
2 files changed, 46 insertions, 9 deletions
diff --git a/buildscripts/resmokeconfig/suites/mqlrun.yml b/buildscripts/resmokeconfig/suites/mqlrun.yml
new file mode 100644
index 00000000000..8283f4593da
--- /dev/null
+++ b/buildscripts/resmokeconfig/suites/mqlrun.yml
@@ -0,0 +1,13 @@
+test_kind: js_test
+
+selector:
+ roots:
+ - src/mongo/db/modules/*/jstests/mqlrun/*.js
+
+# mqlrun tests don't have a test fixture. Instead, they use the shell to spawn an mqlrun subprocess.
+executor:
+ archive:
+ config:
+ shell_options:
+ nodb: ''
+ readMode: commands
diff --git a/etc/evergreen.yml b/etc/evergreen.yml
index 48ed9720840..fba6df1372a 100644
--- a/etc/evergreen.yml
+++ b/etc/evergreen.yml
@@ -582,6 +582,26 @@ functions:
path: src/corpus.tgz
destination: src/corpus
+ "fetch mongohouse binaries": &fetch_mongohouse_binaries
+ command: s3.get
+ params:
+ aws_key: ${aws_key}
+ aws_secret: ${aws_secret}
+ remote_file: ${mh_archive}
+ bucket: mciuploads
+ local_file: src/mh.tgz
+ build_variants: *mh_variants
+
+ "extract mongohouse binaries": &extract_mongohouse_binaries
+ command: shell.exec
+ params:
+ working_dir: src
+ build_variants: *mh_variants
+ script: |
+ set -o errexit
+ ${decompress} mh.tgz
+ cp mongodb*/bin/mqlrun .
+
"archive new corpus": &archive_new_corpus
command: archive.targz_pack
params:
@@ -7630,15 +7650,7 @@ tasks:
bucket: mciuploads
local_file: src/mongo-cryptd.tgz
build_variants: *mongocryptd_variants
- # Fetch mh
- - command: s3.get
- params:
- aws_key: ${aws_key}
- aws_secret: ${aws_secret}
- remote_file: ${mh_archive}
- bucket: mciuploads
- local_file: src/mh.tgz
- build_variants: *mh_variants
+ - func: "fetch mongohouse binaries"
# Fetch the sources (on relevant variants only)
- command: s3.get
params:
@@ -8247,6 +8259,15 @@ tasks:
$python buildscripts/validate_commit_message.py "$commit_message_content"
fi
+- <<: *task_template
+ name: mqlrun
+ commands:
+ - func: "do setup"
+ - func: "fetch mongohouse binaries"
+ - func: "extract mongohouse binaries"
+ - func: "run tests"
+ vars:
+ resmoke_args: --suites=mqlrun
#######################################
# Task Groups #
@@ -9303,6 +9324,7 @@ buildvariants:
- name: jsCore_ese
- name: jsCore_txns_large_txns_format
- name: .jstestfuzz .common
+ - name: mqlrun
- name: noPassthrough_gen
- name: noPassthroughWithMongod_gen
- name: .replica_sets .common
@@ -9602,6 +9624,7 @@ buildvariants:
- name: .jscore .common !.compat !.decimal !.sharding
- name: .jstestfuzz .common
- name: .logical_session_cache .one_sec
+ - name: mqlrun
- name: replica_sets_auth_gen
- name: replica_sets_jscore_passthrough
- name: sasl
@@ -9735,6 +9758,7 @@ buildvariants:
- name: jsonSchema
- name: .jstestfuzz
- name: .logical_session_cache
+ - name: mqlrun
- name: .multi_shard
- name: multi_stmt_txn_jscore_passthrough_with_migration_gen
- name: multiversion