Skip to content

feat(retest): add pull request retest command#603

Open
ayagmar wants to merge 3 commits intoquarkusio:mainfrom
ayagmar:feat/quarkus-retest
Open

feat(retest): add pull request retest command#603
ayagmar wants to merge 3 commits intoquarkusio:mainfrom
ayagmar:feat/quarkus-retest

Conversation

@ayagmar
Copy link
Copy Markdown
Contributor

@ayagmar ayagmar commented Mar 25, 2026

Adding support for @quarkusbot retest on pull requests to close #71

It also works with @quarkus-bot retest.

The command is:

  • limited to pull requests
  • limited to users with WRITE permission
  • behind the RETEST_PULL_REQUEST_WORKFLOWS feature flag

When it runs, it reruns failed jobs from the latest run we find for each workflow. It also handles both pull_request and pull_request_target runs.

Notes

A couple of implementation details are worth calling out:

  • Reactions are disabled because I couldn't remove them from dry runs, instead i opted for a reply
  • I'm using direct HTTP calls to rerun failed jobs because github-api does not expose a public method for that endpoint yet. I opened Add support for rerunning failed workflow jobs hub4j/github-api#2210 for it, but I don't know when that will be released.

Testing

  • Added unit and integration coverage for the command flow and the workflow selection logic.
  • Tested with local server on a toy repo

Video :

2026-03-25.21-21-37.mp4

@ayagmar ayagmar force-pushed the feat/quarkus-retest branch 2 times, most recently from 5c931ab to 5b2e294 Compare March 25, 2026 20:46
@ayagmar ayagmar force-pushed the feat/quarkus-retest branch 2 times, most recently from afba37c to 77fdc5d Compare March 26, 2026 16:46
@ayagmar ayagmar force-pushed the feat/quarkus-retest branch from f09fb9d to 155cd5f Compare March 26, 2026 17:46
@ayagmar
Copy link
Copy Markdown
Contributor Author

ayagmar commented Mar 26, 2026

Hello @gsmet this is ready for review, lmk your thoughts

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.

Support @quarkusbot retest command

1 participant