Skip to content

Ensure summary step will retry failed tests#390

Merged
ianks merged 2 commits intomainfrom
ianks/fix-manual-retry
Apr 7, 2026
Merged

Ensure summary step will retry failed tests#390
ianks merged 2 commits intomainfrom
ianks/fix-manual-retry

Conversation

@ianks
Copy link
Copy Markdown
Contributor

@ianks ianks commented Apr 7, 2026

Previously, when Buildkite automatically retried a step (LSO), ci-queue would find the main queue already exhausted and exit 0 -- making the step appear green. But the error reports from the first run were still sitting in Redis, so the separate "Post Merge Testing Summary" (report command) would still fail. The retry had done nothing.

The root cause: manual_retry? gates the retry-queue path on BUILDKITE_RETRY_TYPE == "manual", so automatic retries were never re-running the failed tests.

This PR adds an elsif branch that catches the automatic case: if retry? is true and there are unresolved failures in the build record, we run the retry queue the same way manual retries do. If the test passes on automatic retry, the error report gets cleared and the summary step succeeds. If it fails again, the failure still shows up -- we're not suppressing anything.

Two new integration tests cover both paths.

@ianks ianks force-pushed the ianks/fix-manual-retry branch from bba87b4 to 631e441 Compare April 7, 2026 18:09
@ianks ianks marked this pull request as ready for review April 7, 2026 18:09
@ianks ianks merged commit 0abb690 into main Apr 7, 2026
22 checks passed
@ianks ianks deleted the ianks/fix-manual-retry branch April 7, 2026 18:26
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.

2 participants