summaryrefslogtreecommitdiff
path: root/etc/perf.yml
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2019-07-19 18:02:19 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2019-07-19 18:02:19 -0400
commit765ebd958a2358ce76528d002893c430741032de (patch)
tree1558c20aca0ecc60a0e1de0b73a53124cab2b806 /etc/perf.yml
parent4ee069b7c2b6aa84fec4e1c73369723bee1cc7ef (diff)
downloadmongo-765ebd958a2358ce76528d002893c430741032de.tar.gz
SERVER-42094 Fix usages of git.get_project in etc/perf.yml.
Consolidates all usages of the git.get_project command to a single "git get project" function similar to what we do in etc/evergreen.yml and etc/system_perf.yml. This ensures we clone the revision of the enterprise module and genny repository specified in the manifest.
Diffstat (limited to 'etc/perf.yml')
-rw-r--r--etc/perf.yml30
1 files changed, 18 insertions, 12 deletions
diff --git a/etc/perf.yml b/etc/perf.yml
index 5897d50454f..e5460f510bd 100644
--- a/etc/perf.yml
+++ b/etc/perf.yml
@@ -43,6 +43,8 @@ post:
fi
+# Be sure to add the module to git.get_project revisions parameter so the revision in the manifest
+# is the version of the repository that's cloned.
modules:
- name: enterprise
repo: git@github.com:10gen/mongo-enterprise-modules.git
@@ -53,6 +55,14 @@ modules:
branch: master
functions:
+ "git get project": &git_get_project
+ command: git.get_project
+ params:
+ directory: src
+ revisions: # for each module include revision as <module_name> : ${<module_name>_rev}
+ enterprise: ${enterprise_rev}
+ genny: ${genny_rev}
+
"download analysis scripts":
- command: shell.exec
params:
@@ -63,9 +73,7 @@ functions:
git clone git@github.com:10gen/dsi.git
# get the mongo source, note the s3.get calls put the
# exe files in their respective make locations.
- - command: git.get_project
- params:
- directory: src
+ - *git_get_project
"start server":
- command: shell.exec
params:
@@ -202,11 +210,10 @@ functions:
# workload: the path relative to genny/src/workloads to run e.g.
# scale/InsertRemove.yml
"run genny workload":
- - command: git.get_project
- params:
- directory: src
- revisions:
- genny: ${genny_rev}
+ # Calling the git.get_project command here will clone the mongodb/mongo repository, as well as
+ # the repositories defined in the build variant's "modules" section. Build variants running a
+ # task which calls this function must include "genny" as a module.
+ - *git_get_project
- command: shell.exec
params:
working_dir: src/genny
@@ -269,10 +276,9 @@ tasks:
- name: compile
commands:
- - command: git.get_project
- params:
- directory: src
- - command: manifest.load
+ # Calling the git.get_project command here will clone the mongodb/mongo repository, as well as
+ # the repositories defined in the build variant's "modules" section.
+ - func: "git get project"
# We create a virtual environment with the Python dependencies for compiling the server
# installed.
- command: shell.exec