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.
Launch: scriptworker [config_path]
Testing
Without integration tests install tox, then
NO_CREDENTIALS_TESTS=1 tox -e py36
Without any tests connecting to the net, then NO_TESTS_OVER_WIRE=1 tox -e py36
With integration tests, first create a client in the Taskcluster UI with the scopes:
queue:cancel-task:test-dummy-scheduler/* queue:claim-work:test-dummy-provisioner/dummy-worker-* queue:create-task:lowest:test-dummy-provisioner/dummy-worker-* queue:define-task:test-dummy-provisioner/dummy-worker-* queue:get-artifact:SampleArtifacts/_/X.txt queue:scheduler-id:test-dummy-scheduler queue:schedule-task:test-dummy-scheduler/* queue:task-group-id:test-dummy-scheduler/* queue:worker-id:test-dummy-workers/dummy-worker-*
Then generate a no priviledge personal access token in Github for the scriptworker_github_token (to avoid rate limiting) and create a ./secrets.json or ~/.scriptworker that looks like:
{ "integration_credentials": { "clientId": "...", "accessToken": "...", } "scriptworker_github_token": "..." }
then to run all tests: 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
Built Distribution
Hashes for scriptworker-60.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e679986acbbc16cfb1f19b62a39a97b9fd8efea12bca7fdafa9f6109aef48dcb |
|
MD5 | 682af5b8673c046c3f4e5f21bf322907 |
|
BLAKE2b-256 | aa5a70cafd663a253919ea1c6f90e04839583c87851b11bac08c39fc427b3d5f |