Skip to main content

This project is Pulse listener that listens to Treeherder’s job cancellation and retrigger actions in ‘exchange/treeherder/v1/job-actions’ and acts upon them.

What it does

  • worker.py listens to exchange/treeherder/v1/job-actions in an infinite loop.

  • When it sees a retrigger actions it makes a retrigger request in builapi self-serve using make_retrigger_request from mozci.

  • When it sees a cancel action it makes a cancel request in buildapi self-serve using make_cancel_request from mozci.

  • Currently everything is run with dry_run=True, so instead of doing requests the script just logs the requests it would have made.

Current status

  • worker.py reads exchange and topic from run_time_config.json. It then uses HANDLERS_BY_EXCHANGE, a dictionary defined in config.py to decide what function it will use to handle incoming messages.

  • Only buildbot topics (e.g. buildbot.#.# or buildbot.try.retrigger) in exchange/treeherder/v1/job-actions are supported for now.

  • The functions to deal with TH’s job-actions are defined in the module treeherderactions.py

Requirements

  • mozci

  • mozillapulse

See bug 1168148 for more details.

Release files for pulse-actions 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pulse-actions 0.1.3
File Size Uploaded
pulse-actions-0.1.3.tar.gz 3.5 kB Details

Release files / pulse-actions-0.1.3.tar.gz

Download URL pulse-actions-0.1.3.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
077913fca0115ce90b8487c09b232f2f46fe3634bbe963ca67f33de681e7d804
BLAKE2b-256 checksum
How to use checksums
a2c12c3884b3ca422c65f201026ce675ae03b81d335517f1dc0fdf4e5ef18a32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page