@@ -29,114 +29,6 @@ include:
2929 - filename : .evergreen/generated_configs/tasks.yml
3030 - filename : .evergreen/generated_configs/variants.yml
3131
32- functions :
33- " fetch source " :
34- # Executes clone and applies the submitted patch, if any
35- - command : git.get_project
36- params :
37- directory : " src"
38- # Applies the subitted patch, if any
39- # Deprecated. Should be removed. But still needed for certain agents (ZAP)
40- - command : git.apply_patch
41-
42- " setup system " :
43- # Make an evergreen expansion file with dynamic values
44- - command : subprocess.exec
45- params :
46- include_expansions_in_env : ["is_patch", "project", "version_id"]
47- binary : bash
48- working_dir : " src"
49- args :
50- - .evergreen/scripts/setup-system.sh
51- # Load the expansion file to make an evergreen variable with the current unique version
52- - command : expansions.update
53- params :
54- file : src/expansion.yml
55-
56- " upload test results " :
57- - command : attach.results
58- params :
59- file_location : " ${DRIVERS_TOOLS}/results.json"
60- - command : attach.xunit_results
61- params :
62- file : " src/xunit-results/TEST-*.xml"
63-
64- " run server " :
65- - command : subprocess.exec
66- params :
67- binary : bash
68- working_dir : " src"
69- include_expansions_in_env : [VERSION, TOPOLOGY, AUTH, SSL, ORCHESTRATION_FILE, PYTHON_BINARY, PYTHON_VERSION, IS_WIN32,
70- STORAGE_ENGINE, REQUIRE_API_VERSION, DRIVERS_TOOLS, TEST_CRYPT_SHARED, AUTH_AWS, LOAD_BALANCER, LOCAL_ATLAS, NO_EXT]
71- args : [.evergreen/just.sh, run-server, "${TEST_NAME}"]
72- - command : expansions.update
73- params :
74- file : ${DRIVERS_TOOLS}/mo-expansion.yml
75-
76- " run just script " :
77- - command : subprocess.exec
78- type : test
79- params :
80- include_expansions_in_env : [AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN]
81- binary : bash
82- working_dir : " src"
83- args : [.evergreen/just.sh, "${JUSTFILE_TARGET}"]
84-
85- " run tests " :
86- - command : subprocess.exec
87- type : test
88- params :
89- include_expansions_in_env : [AUTH, SSL, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,
90- AWS_SESSION_TOKEN, COVERAGE, PYTHON_BINARY, LIBMONGOCRYPT_URL, MONGODB_URI, PYTHON_VERSION, IS_WIN32,
91- DISABLE_TEST_COMMANDS, GREEN_FRAMEWORK, NO_EXT, COMPRESSORS, MONGODB_API_VERSION, DEBUG_LOG,
92- ORCHESTRATION_FILE, OCSP_SERVER_TYPE, VERSION, REQUIRE_FIPS]
93- binary : bash
94- working_dir : " src"
95- args : [.evergreen/just.sh, setup-tests, "${TEST_NAME}", "${SUB_TEST_NAME}"]
96- - command : subprocess.exec
97- type : test
98- params :
99- working_dir : " src"
100- binary : bash
101- args : [.evergreen/just.sh, run-tests]
102-
103- " cleanup " :
104- - command : subprocess.exec
105- params :
106- binary : bash
107- working_dir : " src"
108- args :
109- - .evergreen/scripts/cleanup.sh
110-
111- " teardown system " :
112- - command : subprocess.exec
113- params :
114- binary : bash
115- working_dir : " src"
116- args : [.evergreen/just.sh, teardown-tests]
117- - command : subprocess.exec
118- params :
119- binary : bash
120- working_dir : " src"
121- args :
122- - ${DRIVERS_TOOLS}/.evergreen/teardown.sh
123-
124- " assume ec2 role " :
125- - command : ec2.assume_role
126- params :
127- role_arn : ${aws_test_secrets_role}
128- duration_seconds : 3600
129-
130- " attach benchmark test results " :
131- - command : attach.results
132- params :
133- file_location : src/report.json
134-
135- " send dashboard data " :
136- - command : perf.send
137- params :
138- file : src/results.json
139-
14032pre :
14133 - func : " fetch source"
14234 - func : " setup system"
0 commit comments