Skip to content

ci(flink-image): abort throttled archive.apache.org downloads instead of hanging - #221

Merged
brownjuly2003-code merged 1 commit into
mainfrom
ci/flink-dockerfile-curl-guards
Jul 20, 2026
Merged

ci(flink-image): abort throttled archive.apache.org downloads instead of hanging#221
brownjuly2003-code merged 1 commit into
mainfrom
ci/flink-dockerfile-curl-guards

Conversation

@brownjuly2003-code

Copy link
Copy Markdown
Owner

Root cause of the flink-smoke 30-min hangs (#213/#218/#219 lanes, and the 2x10-min bounded stalls on the #220 lane): the flink binary tarball download from archive.apache.org — a server that throttles aggressively — ran as curl -fsSL with no timeouts and no progress output. A throttled/wedged connection therefore produced zero output right after the ca-certificates layer and hung until something killed the job.

Fix: --connect-timeout 30 --speed-limit 65536 --speed-time 60 --retry 5 --retry-all-errors on the archive.apache.org and Maven Central downloads — any transfer crawling below 64 KB/s for 60 s aborts and retries. Combined with the bounded build + retry from #220, the lane now self-heals from mirror throttling instead of hanging or failing the whole job.

This PR's own flink-smoke check exercises exactly this build path.

🤖 Generated with Claude Code

… of hanging

The flink binary tarball comes from archive.apache.org, which throttles
aggressively; a wedged connection produces zero curl output and the image
build hung 10-30 min on four flink-smoke runs today (#213/#218/#219/#220
lanes) — always right after the ca-certificates layer, i.e. at this curl.
Speed guard: abort any transfer below 64 KB/s for 60 s, retry up to 5
times; combined with the bounded build from #220 the lane now self-heals.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

DORA Metrics

  • Window: last 30 days
  • Branch: main
  • Deployment frequency: 120 total / 28.0 per week
  • Lead time for changes: avg 0.82h / median 0.0h
  • Change failure rate: 77.5% (93/120)
  • MTTR: 20.13h across 5 incident(s)

@brownjuly2003-code
brownjuly2003-code merged commit 6660bd5 into main Jul 20, 2026
27 checks passed
@brownjuly2003-code
brownjuly2003-code deleted the ci/flink-dockerfile-curl-guards branch July 20, 2026 18:42
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