Skip to content

[ci] Add /bkbot rerun-failure command for job-level failure rerun#4746

Open
dao-jun wants to merge 1 commit intoapache:masterfrom
dao-jun:dev/bkbot_rerun_failure
Open

[ci] Add /bkbot rerun-failure command for job-level failure rerun#4746
dao-jun wants to merge 1 commit intoapache:masterfrom
dao-jun:dev/bkbot_rerun_failure

Conversation

@dao-jun
Copy link
Copy Markdown
Member

@dao-jun dao-jun commented Apr 15, 2026

Motivation

The existing /bkbot rerun command reruns entire workflows when they fail, which wastes CI resources by re-running jobs that already passed. There was no way to selectively rerun only the failed jobs while keeping successful ones intact. A job-level rerun command allows faster feedback and more efficient use of CI runners.

Changes

Added a new /bkbot rerun-failure command to the existing ci-bkbot.yaml workflow:

  • Header comments & script comments: Updated to document the new command
  • Supported commands array: Added 'rerun-failure' to the validation list
  • New Command 3 handler: Iterates all latest workflow runs for the PR, lists all jobs, filters by failure conclusions (failure/timed_out/cancelled/skipped), and reruns each matching job individually via reRunJobForWorkflowRun
  • Renumbered: Existing stop/cancel command renumbered from Command 3 to Command 4

In order to uphold a high standard for quality for code contributions, Apache BookKeeper runs various precommit
checks for pull requests. A pull request can only be merged when it passes precommit checks.


Be sure to do all the following to help us incorporate your contribution
quickly and easily:

If this PR is a BookKeeper Proposal (BP):

  • Make sure the PR title is formatted like:
    <BP-#>: Description of bookkeeper proposal
    e.g. BP-1: 64 bits ledger is support
  • Attach the master issue link in the description of this PR.
  • Attach the google doc link if the BP is written in Google Doc.

Otherwise:

  • Make sure the PR title is formatted like:
    <Issue #>: Description of pull request
    e.g. Issue 123: Description ...
  • Make sure tests pass via mvn clean apache-rat:check install spotbugs:check.
  • Replace <Issue #> in the title with the actual Issue number.

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.

1 participant