Skip to content

Build: retry apt-get downloads in the Dockerfiles and the SQL validation workflow - #10158

Merged
erikdarlingdata merged 1 commit into
devfrom
fix/10157-apt-retries
Dec 1, 2026
Merged

erikdarlingdata merged 1 commit into
devfrom
fix/10157-apt-retries

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Claude posting for Erik Darling.

Closes #10157.

Today's nightly failed when apt-get update timed out connecting to the Ubuntu package servers. With -o Acquire::Retries=5, a failed download is tried up to five more times before the step fails. Nothing else on those lines changed.

Files changed:

  • Darling/Dockerfile (update and install)
  • the PostgreSQL test image under tools/ (update and install)
  • .github/workflows/sql-validation.yml (update and install, sudo and ACCEPT_EULA=Y left where they were)

git grep -n "apt-get" over the Dockerfiles and .github/ shows no call left without the option.

Gate:

  • [guard-darling] Darling.Tests Total: 5061, Errors: 0, Failed: 0, Skipped: 0
  • [guard-lite] Lite.Tests Total: 1257, Errors: 0, Failed: 0, Skipped: 0
  • classes: darling 100, lite 19
  • GATE GREEN

Two test files read a Dockerfile: DockerfileSdkPinTests and NightlyVersionInjectionTests. Neither reads the apt-get lines. I ran both on their own: Total 4, Failed 0.

Release note: none (build only)

@erikdarlingdata
erikdarlingdata marked this pull request as ready for review December 1, 2026 15:47

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: LGTM

Claims

  • VERIFIED — -o Acquire::Retries=5 added to update and install in Darling/Dockerfile, tools/pg-verification-rig/Dockerfile and .github/workflows/sql-validation.yml, with nothing else changed — the diff is 6 lines in, 6 lines out, and sudo and ACCEPT_EULA=Y are still in place.
  • VERIFIED — no apt-get call is left without the option — my grep over Dockerfiles, yml and sh files for apt-get lines without Retries returned nothing.
  • UNVERIFIED — the gate counts (Darling.Tests 5061, Lite.Tests 1257) and the two Dockerfile-reading tests passing — a read-only tree can't run them.
  • UNVERIFIED — the nightly failure came from an apt-get update timeout — needs the nightly run log.

Riskiest lines

  1. .github/workflows/sql-validation.yml:75 — the sudo and ACCEPT_EULA=Y environment prefix sits next to the changed flags — UNCOVERED, though a CI run is the check.
  2. Darling/Dockerfile:74 — the RUN continuation chain, where a mistake would break the image build — UNCOVERED, though a docker build is the check.
  3. tools/pg-verification-rig/Dockerfile:11 — the multi-line install chain — UNCOVERED, though a docker build is the check.

Traps near this diff

  • "Workflows and CI … claude-code-action refuses to run when .github/workflows/claude-review.yml differs" — does not apply — the PR touches only sql-validation.yml, not claude-review.yml.
  • "Lite and Darling ship in parity" — does not apply — this is build tooling only, and neither app's code changed.

Divergence (blind read vs PR body)

None — the body's account matches the diff on every claim graded above.

Reviewer checklist

  • Confirm the sql-validation workflow and a Darling docker build run green.

@erikdarlingdata
erikdarlingdata merged commit e0bc8b8 into dev Dec 1, 2026
32 of 44 checks passed
@erikdarlingdata
erikdarlingdata deleted the fix/10157-apt-retries branch December 1, 2026 16:20
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.

1 participant