Skip to main content

Taskcluster scriptworker

Project description

https://firefox-ci-tc.services.mozilla.com/api/github/v1/repository/mozilla-releng/scriptworker/main/badge.svg 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 uv run tox -e py311

Without any tests connecting to the net, then NO_TESTS_OVER_WIRE=1 uv run tox -e py311

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: uv run 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-62.5.0.tar.gz (98.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scriptworker-62.5.0-py3-none-any.whl (79.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scriptworker-62.5.0.tar.gz
Algorithm Hash digest
SHA256 e6f23a5c0ad7bc7a741d44eb223bb3f72f7b4d0e9f55b98003e455e5e228faa0
MD5 da76fffdffc0b3de8e8f3c221123c573
BLAKE2b-256 5b703b7d3c265e7bb4bcd3f72c8f4f55f5a2593c230c3809d010915b6e09ebed

See more details on using hashes here.

Provenance

The following attestation bundles were made for scriptworker-62.5.0.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-62.5.0-py3-none-any.whl.

File metadata

  • Download URL: scriptworker-62.5.0-py3-none-any.whl
  • Upload date:
  • Size: 79.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scriptworker-62.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39459b4fc4bf779a7cbb4a7d36c4d0264bd0f393e5c361b0b82ba89053b06c49
MD5 83ce66da4f93136553b6efc6c7c09cc9
BLAKE2b-256 c5bc22db0ee10eedbdabd05fc5aca130bdefead8cbf42f96c45ff1ed7aeeb34b

See more details on using hashes here.

Provenance

The following attestation bundles were made for scriptworker-62.5.0-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 Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page