ducktape: retry apt/PPA installs in ocsf-server#30386
Open
andrewhsu wants to merge 1 commit into
Open
Conversation
Wrap apt and add-apt-repository commands with a retry_apt helper using exponential backoff (3 attempts, 30s/60s sleep) to ride out transient Canonical Launchpad PPA outages observed in CDT. Multiple cdt-aws and cdt-gcp nightly builds across 2026-05-03..05 failed at this exact step with `Connection refused` or `connection timed out` to ppa.launchpadcontent.net, or `HTTP 504` from Launchpad's REST API during `add-apt-repository` signing-key fetch. Affected: redpanda build 84028 plus vtools builds 28906, 28905, 28904, 28902, 28900, 28894, 28880. Worst-case wall-time added on the failure path: ~1m30s of sleep plus per-attempt apt time. Happy path: no observable change. [DEVPROD-4196] Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves resilience of the ducktape OCSF server Docker build step by retrying apt/PPA operations that have been failing intermittently due to Canonical/Launchpad outages in CDT (DEVPROD-4196).
Changes:
- Added a
retry_apthelper that retries apt-related commands with exponential backoff (3 attempts, 30s/60s delays). - Wrapped
apt-get update,apt-get install, andadd-apt-repositoryinvocations intests/docker/ducktape-deps/ocsf-serverwithretry_aptto reduce flakiness.
Collaborator
CI test resultstest results on build#84102
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wrap apt and add-apt-repository commands in
tests/docker/ducktape-deps/ocsf-serverwith aretry_apthelper using exponential backoff (3 attempts, 30s/60s sleep) to ride out transient Canonical/Launchpad PPA outages observed in CDT.Multiple cdt-aws and cdt-gcp nightly builds across 2026-05-03..05 failed at this exact step with
Connection refusedorconnection timed outtoppa.launchpadcontent.net, orHTTP 504from Launchpad's REST API duringadd-apt-repository's signing-key fetch:connection timed outConnection refusedConnection refusedConnection refusedConnection refusedConnection refused(downstream Elixir 1.12 vs~> 1.14mismatch)connection timed outHTTP 504from Launchpad REST APIWorst-case wall-time added on the failure path: ~1m30s of sleep plus per-attempt apt time. Happy path: no observable change.
This is a transient mitigation. Eliminating the runtime dependency on Launchpad infrastructure (mirror erlang/elixir to a Redpanda-controlled host, or bake into the base AMI) is tracked separately in DEVPROD-4198.
[DEVPROD-4196]
Backports Required
Release Notes