hackbot: add a try-server push action - #6531
Draft
suhaibmujahid wants to merge 2 commits into
Draft
Conversation
Adds a configurable `user_agent` setting to `LandoSettings` (defaulting to `Lando-User/Hackbot`) and includes it as a `User-Agent` header in try-patch POST requests.
marco-c
reviewed
Aug 7, 2026
Comment on lines
+23
to
+34
| tasks: Annotated[ | ||
| list[str], | ||
| Field( | ||
| description=( | ||
| "Treeherder task labels to run, e.g. ['build-linux64/opt', " | ||
| "'test-linux2404-64/opt-mochitest-browser-chrome-1']. Only the " | ||
| "tasks that actually exercise your change: every extra label " | ||
| "spends build machine time. Must not be empty — there is no " | ||
| "'run everything' shorthand." | ||
| ) | ||
| ), | ||
| ], |
Collaborator
There was a problem hiding this comment.
Might be better to have the agent select tests and not tasks, or use "mach try auto" (maybe in combination with agent's selected tests).
marco-c
reviewed
Aug 7, 2026
Comment on lines
+71
to
+73
| verify all your edits first, then call this once you are done. Calling it | ||
| records the push as a proposed action for review; nothing is pushed during | ||
| the run, so you will not see the results — a human reads them on Treeherder. |
Collaborator
There was a problem hiding this comment.
This is until we have a way to have hackbot continue after a try push (or other action). Are you planning to do that after as a follow-up?
Member
Author
There was a problem hiding this comment.
Yes, I'm planning to do that. I will file some issues in that regard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves #6528
Depends on mozilla-conduit/lando#1408