Repository navigation
Fix nightly update workflow: retry and decouple downstream dispatches - #9756
timosachsenberg wants to merge 1 commit into
Conversation
…ndent The 2026-07-18 nightly run failed because `gh workflow run containerdeploy.yml --ref nightly` hit a transient HTTP 500 from the GitHub API. Since each downstream dispatch step ran without retry and without continue-on-error, a single flaky dispatch call aborted the whole job outright, even after the nightly branch had already been fast-forwarded and (in this case) some downstream workflows had already been triggered. Add a small retry-with-backoff helper for `gh workflow run` calls and make each downstream dispatch step independent (continue-on-error), so a transient failure on one dispatch no longer prevents the others from running. A final verification step still fails the job if any dispatch did not ultimately succeed, so real, persistent failures are still surfaced rather than silently swallowed.
|
@timosachsenberg The following names might be missing from the
Please consider applying the following patch: --- AUTHORS 2026-07-18 03:40:10.492487924 +0000
+++ AUTHORS.new 2026-07-18 03:40:15.668080514 +0000
@@ -27,6 +27,7 @@
- Chris Bielow
- Christian Ehrlich
- Christie Mathews
+ - Claude
- Clemens Groepl
- Cornelia Friedle
- Daniel Jameson |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe change adds a retrying GitHub workflow dispatch script and updates nightly orchestration to use it for five downstream workflows. Dispatch steps continue on error, while a final verification step fails the workflow if any dispatch remains unsuccessful. ChangesNightly dispatch reliability
Sequence Diagram(s)sequenceDiagram
participant update_nightly.yml
participant dispatch_with_retry.sh
participant gh
participant DownstreamWorkflows
update_nightly.yml->>dispatch_with_retry.sh: dispatch workflow and ref
dispatch_with_retry.sh->>gh: run workflow dispatch
gh->>DownstreamWorkflows: trigger workflow
dispatch_with_retry.sh-->>update_nightly.yml: return outcome
update_nightly.yml->>update_nightly.yml: verify dispatch outcomes
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
The scheduled "Update nightly from develop" run on 2026-07-18 (run 29625727900) failed at the "Deploy container images" step:
Root cause: this step calls
gh workflow run containerdeploy.yml --ref nightlyto trigger the container deploy workflow. This explicit dispatch is actually necessary (not redundant) —containerdeploy.ymlalso has apush: branches: [nightly]trigger, but GitHub suppresses new workflow runs triggered by pushes made with the workflow's own token, so thegit push origin nightlyearlier in the job does not fire it. That day, GitHub's Actions API returned a transientHTTP 500on the dispatch call, and since the step had no retry logic, the whole job aborted — no container images were built fornightlythat day. Checking the last 30 days ofDeploy container imagesruns confirms there is normally exactly one run per day; 2026-07-18 has none.A second, related problem: each of the five downstream
gh workflow runsteps (Call CI,Build Develop for cache,Build wheels,Deploy to Bioconda,Deploy container images) ran sequentially with nocontinue-on-error. A transient failure on any one of them (not just the last) would have aborted the job and skipped triggering the remaining downstream workflows too, even though they are logically independent of each other.Fix
.github/workflows/scripts/dispatch_with_retry.sh, a small helper that retries agh workflow rundispatch up to 3 times with exponential backoff, to absorb transient GitHub API errors like the 500 seen above.continue-on-error: true, so a failure on one dispatch no longer prevents the others from being attempted.This is not a workaround to force CI green: the job will still fail (with a clear
::error::per workflow) if a dispatch genuinely cannot be triggered after retries. It only adds resilience against transient upstream API errors and removes an unnecessary coupling between independent dispatch steps.Checklist
bash -nsyntax check; workflow YAML validated withyaml.safe_loadGenerated by Claude Code
Summary by CodeRabbit