Skip to content

[github-actions] Retry transient workflow failures (#175)#176

Merged
coisa merged 2 commits intomainfrom
codex/175-retry-transient-gh-failures
Apr 23, 2026
Merged

[github-actions] Retry transient workflow failures (#175)#176
coisa merged 2 commits intomainfrom
codex/175-retry-transient-gh-failures

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 23, 2026

Related Issue

Closes #175

Motivation / Context

Repository workflows occasionally fail because GitHub-side infrastructure flakes during checkout or fetch operations even though rerunning the same run immediately succeeds. We want a bounded, visible rerun policy for those transient failures without teaching CI to paper over real workflow, test, or validation regressions.

Changes

  • add a repository-local retry-transient-failures.yml workflow that listens for failed workflow runs
  • inspect failed job logs for transient GitHub-side checkout and transport signatures such as HTTP 500 fetch failures and packfile or ref-listing transport errors
  • rerun failed jobs once when every failed job matches the transient signature set
  • emit a deterministic step summary showing whether the rerun was requested or skipped
  • document the retry behavior in the README and GitHub Actions usage guide
  • add a changelog entry for the new workflow resilience behavior

Verification

  • ruby -e 'require "yaml"; YAML.load_file(".github/workflows/retry-transient-failures.yml"); puts "ok"'
  • composer dev-tools changelog:check
  • git diff --check

Documentation / Generated Output

  • updated README.md
  • updated docs/usage/github-actions.rst
  • updated CHANGELOG.md

Changelog

  • Added an Unreleased changelog entry for transient GitHub Actions retry behavior.

Reviewer Notes

  • .github/wiki remains locally modified in the workspace but is intentionally not part of this PR.
  • This implementation is repository-local on purpose. It improves this repository's workflow resilience without changing the packaged consumer workflow set yet.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 23, 2026

@coisa coisa merged commit 68c7766 into main Apr 23, 2026
17 checks passed
@coisa coisa deleted the codex/175-retry-transient-gh-failures branch April 23, 2026 17:15
@github-project-automation github-project-automation Bot moved this from Backlog to Released in PHP Fast Forward Project Apr 23, 2026
github-actions Bot added a commit that referenced this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

[github-actions] Retry transient GitHub infrastructure failures in workflows

1 participant