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.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

scriptworker-60.10.3.tar.gz (102.5 kB view details)

Uploaded Source

Built Distribution

scriptworker-60.10.3-py2.py3-none-any.whl (79.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: scriptworker-60.10.3.tar.gz
  • Upload date:
  • Size: 102.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for scriptworker-60.10.3.tar.gz
Algorithm Hash digest
SHA256 313e5ce925be624323f69c672e46d296e6ed51f9b07f09a6b74c73f83c2cf413
MD5 09ccc75c0274dcf7043f4f839771a125
BLAKE2b-256 e692430fa395dacdee0962894dec51914f22e65d6b379a2df0d00f63c0d49458

See more details on using hashes here.

Provenance

The following attestation bundles were made for scriptworker-60.10.3.tar.gz:

Publisher: pypi-publish.yml on mozilla-releng/scriptworker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scriptworker-60.10.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for scriptworker-60.10.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 83cb61164922c2f7c5d9ac514b54f5fe4261896397b72c09aca65c9d4b077818
MD5 f91018656d6b7d91969dc9eec6f55bd4
BLAKE2b-256 f6ac4cc1babc8f255e85f43eb6922a4112ddd79d647b8c9ed17f1beaeab374ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for scriptworker-60.10.3-py2.py3-none-any.whl:

Publisher: pypi-publish.yml on mozilla-releng/scriptworker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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