Skip to main content

TaskCluster Script Worker

Project description

https://travis-ci.org/mozilla-releng/scriptworker.svg?branch=master https://coveralls.io/repos/github/mozilla-releng/scriptworker/badge.svg?branch=master Documentation Status

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

Credentials can live in ./scriptworker.json, ./secrets.json, ~/.scriptworker, or in environment variables: TASKCLUSTER_ACCESS_TOKEN, TASKCLUSTER_CLIENT_ID, and TASKCLUSTER_CERTIFICATE.

  • If using either verify_chain_of_trust or sign_chain_of_trust, you will also need a cot_config.json, which is either specified as the 2nd argument in the commandline, or in ./cot_config.json.

  • Launch: scriptworker [config_path] [cot_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

scriptworker-0.8.0.tar.gz (126.9 kB view details)

Uploaded Source

File details

Details for the file scriptworker-0.8.0.tar.gz.

File metadata

File hashes

Hashes for scriptworker-0.8.0.tar.gz
Algorithm Hash digest
SHA256 689d03867e46d40afc3fe3f736c9876fe9686047c2986c9358e880b24103c2c2
MD5 ccaa16b6068b18c26dc99e5d38fc1ae2
BLAKE2b-256 fc78412d1835fd26ffb766bb7dd67abe6b4fe059f8ffcfe12264bfe4ba43954a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page