padenot / padenot/treeherder-cli
Add support for retriggering failed jobs
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1
- Forks
- 2
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 2
Description
It would be useful to retrigger failed jobs directly from treeherder-cli after inspecting a push.
For example:
treeherder-cli <revision> --retrigger-failures
Ideally this would retrigger only the failed jobs on the existing push, with an optional count for running them more than once. It should print the action task ID and confirm how many jobs were selected.
The underlying flow appears to be:
- Resolve the push's decision task and failed Taskcluster task IDs.
- Fetch
public/actions.jsonandpublic/label-to-taskid.jsonfrom the decision task. - Map failed tasks back to labels.
- Authenticate with Taskcluster for the hook scope.
- Trigger the in-tree
retrigger-multipleaction.
This came up after using the CLI to inspect a Try push with 18 unrelated failures. The analysis worked well, but completing the natural next step required a custom Taskcluster script.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the treeherder-cli command entry point and trace how it resolves a revision and inspects failed jobs. Use the decision task's public/actions.json and public/label-to-taskid.json, then follow the Taskcluster authentication and retrigger-multiple action flow. Done means failed jobs on the existing push can be retriggered with an optional count, while printing the action task ID and selected-job count.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- ci-cd, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100