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.2.3.tar.gz
(11.6 kB
view details)
Built Distribution
shrub.py-0.2.3-py3-none-any.whl
(17.8 kB
view details)
File details
Details for the file shrub.py-0.2.3.tar.gz
.
File metadata
- Download URL: shrub.py-0.2.3.tar.gz
- Upload date:
- Size: 11.6 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 | 5f3a11431accd678d5cfae7a5c54fcddcc0fe6bddd52f44d5bf3eeef43a141da |
|
MD5 | 1332691414f7d2201db4f8673456d260 |
|
BLAKE2b-256 | 9466ec414270aeba73567707e889fa909f4b23e9378d374e4e26e5e6d974c6d4 |
File details
Details for the file shrub.py-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: shrub.py-0.2.3-py3-none-any.whl
- Upload date:
- Size: 17.8 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 | 5e40ce4d6c90bf5755774588d66e816e82ba0e3ee8014996018c5ace19fc6265 |
|
MD5 | 6020b43507d9040c4bc711631dbb38fa |
|
BLAKE2b-256 | 22999eaa729b4a78a8304a381e3bf28bf05bae267bcbdb1a8a61ac0389f24e4a |