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.4.0.tar.gz (101.4 kB view details)

Uploaded Source

Built Distribution

scriptworker-60.4.0-py2.py3-none-any.whl (79.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: scriptworker-60.4.0.tar.gz
  • Upload date:
  • Size: 101.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for scriptworker-60.4.0.tar.gz
Algorithm Hash digest
SHA256 0055e5da864d9225693851b9a58b72b815023bc0a03621a2830ac1fac82514c0
MD5 85247787e3e29b9f84253695461434b2
BLAKE2b-256 ab3297b10d6a78a75f2c3ce7242a0b7f3d77940e304ffc1ae3666a878e779c8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scriptworker-60.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c41bc323e2aaf3e7b85bde23e0a5a50072cc4e5163100b1308b0456b505d7a0b
MD5 f7d30b92a60b591ce10bfc04b9bca712
BLAKE2b-256 05ed988a62d07984ed5d75d8efddd69500bde7fd7a81f55dc77b8d8c6d2f9608

See more details on using hashes here.

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