TaskCluster Script Worker
Project description
Scriptworker implements the TaskCluster worker model, then launches a pre-defined script.
This worker was designed for Releng processes that need specific, limited, and pre-defined capabilities.
Free software: MPL2 license
Usage
Create a config file. By default scriptworker will look in ./config.json, but this config path can be specified as the first and only commandline argument. There is an example config file, and all config items are specified in scriptworker.config.DEFAULT_CONFIG.
Credentials can live in ./config.json, ./secrets.json, ~/.scriptworker, or in environment variables: TASKCLUSTER_ACCESS_TOKEN, TASKCLUSTER_CLIENT_ID, and TASKCLUSTER_CERTIFICATE.
Launch: scriptworker [config_path]
Testing
Without integration tests,
NO_TESTS_OVER_WIRE=1 python setup.py test
With integration tests, first create a client with the assume:project:taskcluster:worker-test-scopes scope.
Then create a ./secrets.json or ~/.scriptworker that looks like:
{ "integration_credentials": { "clientId": "...", "accessToken": "...", "certificate": "..." } }
(certificate is only specified if using temp creds)
then
python setup.py test
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
Built Distribution
Hashes for scriptworker-0.3.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ec831f217cc52e2981ab4385cdb68910e9257fa6db7ab84b4e4b7e7b87ef157 |
|
MD5 | 46311ea56a01c9593ccfe67ff05f868a |
|
BLAKE2b-256 | ab5e308f11d00182ead90afafc3c359f8daf3019dc6d1a1d5d3bdfdf55768707 |