Skip to content

Use Treeherder CLI for CI agents - #6704

Merged
evgenyrp merged 4 commits into
mozilla:masterfrom
evgenyrp:worktree-treeherder-cli-6417
Aug 27, 2026
Merged

Use Treeherder CLI for CI agents#6704
evgenyrp merged 4 commits into
mozilla:masterfrom
evgenyrp:worktree-treeherder-cli-6417

Conversation

@evgenyrp

@evgenyrp evgenyrp commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

This helps reduce the amount of deterministic code and gives the agents access to Treeherder, which should help with investigations.

  • Download logs through the CLI instead of directly from Taskcluster
  • Remove manual search for the last green revision; explore with the CLI
  • Clone the last 100 pushes / 500 commits as we don't know the useful depth beforehand now
  • Fix the issue when the agent can't download logs and continue with the analysis and the fix

I did a few agentic loops with running this on various examples and improving based on logs.

fixes #6417
fixes #6665

Comment thread agents/build-repair/Dockerfile Outdated
@evgenyrp
evgenyrp force-pushed the worktree-treeherder-cli-6417 branch from d4c96b8 to c8fcd4b Compare August 26, 2026 19:39
@evgenyrp
evgenyrp marked this pull request as ready for review August 26, 2026 19:40
@evgenyrp
evgenyrp requested a review from a team as a code owner August 26, 2026 19:40
@evgenyrp
evgenyrp requested a review from suhaibmujahid August 27, 2026 17:34

@suhaibmujahid suhaibmujahid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change is a bit large, so it is hard to go into details. But it looks good in general.

Comment thread agents/build-repair/hackbot_agents/build_repair/prompts.py
@evgenyrp
evgenyrp merged commit bfd279c into mozilla:master Aug 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build Repair Agent could not download a log from Taskcluster but suggested a fix Explore using treeherder-cli

2 participants