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()
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.2.1.tar.gz
(11.4 kB
view details)
Built Distribution
shrub.py-0.2.1-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file shrub.py-0.2.1.tar.gz
.
File metadata
- Download URL: shrub.py-0.2.1.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a5a118049b49d2022e87d09f55c9582ed69efb551a36d0e31041490904e473d |
|
MD5 | f9ee4d7cb5d923dd45e89f666c686c96 |
|
BLAKE2b-256 | eedfbd049b527e5a51df79d4c7eecabc2105bba281ba5c19e67abdc099edd706 |
File details
Details for the file shrub.py-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: shrub.py-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9103559c5b99cecea46f38dd89bbe36a846f5a8019e829531918717a96b87dfe |
|
MD5 | f95657a1602c6c03c181f745871e498a |
|
BLAKE2b-256 | 981aaae0367c4e8a58e517e551eb6be3e9985f10606936a7afb98e932f8bb36d |