Repository navigation
fix(devcontainer): start Docker on Ubuntu 26.04 hosts and replace flaky installs - #2826
Merged
Merged
Conversation
Retina Code Coverage ReportTotal coverage no change |
Quang Nguyen (nddq)
force-pushed
the
nddq/devcontainer-ci-flakes
branch
from
October 6, 2026 15:00
5a185a8 to
d31b6f3
Compare
Quang Nguyen (nddq)
force-pushed
the
nddq/devcontainer-ci-flakes
branch
from
November 16, 2026 15:46
d31b6f3 to
465b1f3
Compare
Quang Nguyen (nddq)
marked this pull request as ready for review
November 16, 2026 15:48
Quang Nguyen (nddq)
requested review from
carlotaarvela and
Mugesh (mugeshsp)
November 16, 2026 15:48
ibezrukavyi
previously approved these changes
Nov 16, 2026
…ky installs The DevContainer workflow times out on every run since ubuntu-latest moved to Ubuntu 26.04. The docker-in-docker feature at 2.16.1 always selects iptables-legacy in the container. The Ubuntu 26.04 kernel has no legacy iptables NAT tables, so dockerd does not start. The postStartCommand then waits for docker info until the job reaches its time limit. Bump the feature to 4.1.3, which selects the iptables backend at container start from the kernel modules of the host. The build also fails intermittently in three features: - The LLVM feature downloads llvm.sh from apt.llvm.org and adds that apt repository. Requests to apt.llvm.org from GitHub runners fail intermittently, and sometimes DNS returns only an IPv6 address that the build container cannot reach. The repository adds no packages. Its noble builds of LLVM 17 (1:17.0.6~++...) sort below Ubuntu's 1:17.0.6-9ubuntu1, so apt installs the Ubuntu packages. - The kind feature resolves "latest" through the GitHub API without a token. Shared runner IPs hit the rate limit (HTTP 403), and "latest" can resolve to an alpha tag that has no release (HTTP 404). - The kubectl-helm-minikube feature downloads the Helm release signature from GitHub with curl -sSL, without --fail and without a retry. When GitHub answers with an error, curl saves the error body as the signature file, and gpg --verify stops the build. The feature also installs the latest Helm release, not the Helm version in go.mod. Install clang-17 and llvm-17 from the Ubuntu archive in the apt-deps step in place of the LLVM feature. Add kind and the Helm CLI as tools in go.mod, and install them with go install, which downloads through the Go module proxy. Set the Helm option of the kubectl-helm-minikube feature to "none". helm.sh/helm/v4 is a direct dependency, so the Helm CLI now has the version of the Helm SDK, and Dependabot updates it. Also set the minikube option to "none". The repository uses kind, not minikube, and the feature downloads the latest minikube release on each build. go.mod marks the kind tool dependency as indirect, and Dependabot skips indirect dependencies by default, so allow sigs.k8s.io/kind by name. The Go version check also passes when the versions differ. The Go feature installs 1.24.11, but go.mod requires 1.26.8. With GOTOOLCHAIN=auto, go version downloads and reports the go.mod version. Set the feature to 1.26.8, and run the check with GOTOOLCHAIN=local. Pin golangci-lint to the go.mod tool version, which the lint workflow builds, so that the editor lints like CI. Signed-off-by: Quang Nguyen <[email protected]>
Quang Nguyen (nddq)
force-pushed
the
nddq/devcontainer-ci-flakes
branch
from
November 16, 2026 16:34
465b1f3 to
c1ac9b2
Compare
Quang Nguyen (nddq)
enabled auto-merge
November 16, 2026 16:41
ibezrukavyi
approved these changes
Nov 17, 2026
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.
Description
The DevContainer workflow times out on every run since
ubuntu-latestmoved to Ubuntu 26.04 on 2026-11-12.ghcr.io/devcontainers/features/docker-in-dockerat2.16.1always selectsiptables-legacyin the container. The Ubuntu 26.04 kernel has no legacy iptables NAT tables, so dockerd does not start:The
postStartCommandthen waits fordocker infountil the job reaches its 30-minute limit. Upstream fixed this in devcontainers/features#1637 and moved the selection to container start in4.0.0.Before that, the workflow failed often because three features download from hosts that GitHub runners cannot reach reliably.
LLVM:
ghcr.io/devcontainers-community/features/llvmrunsllvm.shfromapt.llvm.organd adds that apt repository. The requests toapt.llvm.orgfail intermittently, and sometimes DNS returns only an IPv6 address that the build container cannot reach:The repository adds no packages. Its noble builds of LLVM 17 (
1:17.0.6~++…) sort below Ubuntu's1:17.0.6-9ubuntu1, so apt installs the Ubuntu packages anyway.kind:
ghcr.io/devcontainers-extra/features/kindresolveslatestthrough the GitHub API without a token. Shared runner IPs hit the rate limit, andlatestcan resolve to an alpha tag that has no release:Helm:
ghcr.io/devcontainers/features/kubectl-helm-minikubedownloads the Helm release signature from GitHub withcurl -sSL, without--failand without a retry. When GitHub answers with an error,curlsaves the error body as the signature file, andgpg --verifystops the build:The feature also installs the latest Helm release (
v4.3.2today), not thev4.1.4ingo.mod.The Go version check also passes when the versions differ. The Go feature installs
1.24.11, butgo.modrequiresgo 1.26.8. WithGOTOOLCHAIN=auto,go versiondownloads and reportsgo1.26.8.This PR:
2.16.1→4.1.3. That version selectsiptables-legacyoriptables-nftat container start, from the kernel modules of the host.apt-depsstep installsclang-17andllvm-17from the Ubuntu archive (the same packages as before) and creates theclangandllvm-stripsymlinks.sigs.k8s.io/kindv0.33.0joins thetoolblock ingo.mod, andgo-setuprunsgo install sigs.k8s.io/kind.go.modmarks tool dependencies// indirect, which Dependabot skips by default, sodependabot.yamlallowssigs.k8s.io/kindby name. Minor and patch updates arrive with thek8sgroup.helmoption of the feature tonone.helm.sh/helm/v4/cmd/helmjoins thetoolblock ingo.mod, andgo-setupinstalls it with kind.helm.sh/helm/v4is a direct dependency, so the Helm CLI now has the version of the Helm SDK, and Dependabot updates it already.minikubeoption of the feature tonone. The repository uses kind, not minikube, and the feature downloads the latest minikube release on each build. The feature still installskubectl.1.26.8and runs the version check withGOTOOLCHAIN=local. Also pinsgolangciLintVersionto2.11.4, thego.modversion that the golangci-lint workflow builds, so that the editor lints like CI.Checklist
git commit -S -s ...). See this documentation on signing commits.Screenshots (if applicable) or Testing Completed
Built the dev container with
@devcontainers/cli0.90.0(the CLI version thatdevcontainers/ciuses) on an Ubuntu 24.04 host and ran the workflow'srunCmdin it. All steps pass, including the Go version check:helmandkindresolve to/go/bin. The feature build log has no Helm download and no minikube download, and the image has nominikubebinary.go generaterebuilds the eBPF objects, andgolangci-lint --versionreports2.11.4.Docker
29.9.3starts in the dev container withiptables-legacy, the backend that the feature selects on this host. With the alternative set toiptables-nftby hand, dockerd also starts anddocker runworks. The Ubuntu 24.04 host cannot reproduce the Ubuntu 26.04 failure, so the DevContainer workflow run on this PR validates that path.