Library for creating evergreen configurations
Project description
shrub.py -- A python based Evergreen project config generation library
Overview
Based on shrub, shrub.py is a library for programatically building Evergreen project configurations described here.
Example
The following snippet will create a set of parallel tasks reported under a single display task. It
would generate json used by generate.tasks
:
n_tasks = 10
c = Configuration()
task_names = []
task_specs = []
for i in range(n_tasks):
name = "aggregation_multiversion_fuzzer_{0:03d}".format(i)
task_names.append(name)
task_specs.append(TaskSpec(name))
t = c.task(name)
t.dependency(TaskDependency("compile")).commands([
CommandDefinition().function("do setup"),
CommandDefinition().function("do multiversion setup"),
CommandDefinition().function("run jstestfuzz").vars({
"jstestfuzz_var": "--numGeneratedFiles 5",
"npm_command": "agg-fuzzer",
}),
CommandDefinition().function("run tests").vars({
"continue_on_failure": "false",
"resmoke_args": "--suites=generational_fuzzer",
"should_shuffle": "false",
"task_path_suffix": "false",
"timeout_secs": "1800",
})
])
dt = DisplayTaskDefinition("aggregation_multiversion_fuzzer")\
.components(task_names)
c.variant("linux-64").tasks(task_specs).display_task(dt)
c.to_json()
Run tests
pip install tox
tox
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shrub.py-0.3.0.tar.gz
(15.9 kB
view details)
Built Distribution
shrub.py-0.3.0-py3-none-any.whl
(17.5 kB
view details)
File details
Details for the file shrub.py-0.3.0.tar.gz
.
File metadata
- Download URL: shrub.py-0.3.0.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.7.0 Linux/4.4.0-1030-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3703b474a5ddd51fced7cddd15bcf1c0042f9796a41b703edfc7178564e886a |
|
MD5 | 1d9224f06b3238365a6eb603006c793e |
|
BLAKE2b-256 | cc9fa00e4a20d39e00539339a8101b85b82faece4b31bd232b5c76978bc4b406 |
File details
Details for the file shrub.py-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: shrub.py-0.3.0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.3 CPython/3.7.0 Linux/4.4.0-1030-aws
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e85b603c62538e5cbe91c7f8834c96abf11ee72fe74b6c907170702dccaef9e |
|
MD5 | 31a1bb383e1d8a05433d5815e824976a |
|
BLAKE2b-256 | 7296df4641dc25e6918206a2673a5b7538a0123912d541b4df8a6f5d27199677 |