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 ./scriptworker.yaml, 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.constants.DEFAULT_CONFIG.
Credentials can live in ./scriptworker.yaml, ./secrets.json, ~/.scriptworker, or in environment variables: TASKCLUSTER_ACCESS_TOKEN, TASKCLUSTER_CLIENT_ID, and TASKCLUSTER_CERTIFICATE.
Launch: scriptworker [config_path]
Testing
Note: GPG tests require gpg 2.0.x!
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
File details
Details for the file scriptworker-1.0.0b2.tar.gz
.
File metadata
- Download URL: scriptworker-1.0.0b2.tar.gz
- Upload date:
- Size: 150.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e30727edd3d22213590a1d9cd66dfd7bbab3e381c21c99307d21c07f56684532 |
|
MD5 | d02b2a56e6d0676a0a1bc8003de96d29 |
|
BLAKE2b-256 | 27df18fb979c6d328e81503c9da2d1f8adbcadc178e8fbb80ae3f99f65751f63 |