Skip to content

Bump Go toolchain to 1.26.11 - #7170

Open
andrewd-zededa wants to merge 2 commits into
lf-edge:masterfrom
andrewd-zededa:go-1.26.11
Open

andrewd-zededa wants to merge 2 commits into
lf-edge:masterfrom
andrewd-zededa:go-1.26.11

Conversation

@andrewd-zededa

@andrewd-zededa andrewd-zededa commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Description

Bump the Go toolchain from 1.26.10 to 1.26.11 in the two builder images:

  • pkg/alpine/Dockerfile (GO_VERSION, downloaded from go.dev)
  • the top-level Makefile (GOVER default)
  • build-tools/src/scripts/Dockerfile (GOVER default)

Go 1.26.11 fixes GO-2026-6859 in the
standard library.

This resolves the OSV-Scanner (scan-pr / osv-scan) failure on #7038.
That PR adds the new pkg/kube/lh-snap-revert module, and OSV-Scanner reports
GO-2026-6859 as a new vulnerability against its Go stdlib version. #7038 now
declares toolchain go1.26.11 to pass the scan. But both builder images set
GOTOOLCHAIN=local, so the toolchain line is ignored and the binary is still
compiled with Go 1.26.10. Moving the images to 1.26.11 is what actually removes
the vulnerable stdlib, from lh-snap-revert and from every other Go binary EVE
builds (pillar, newlog, edgeview, kube-init, ...).

This is a targeted version bump, kept separate from the broader CVE refresh
in #7006 so it can land on its own.

PR dependencies

None. The second commit bumps the eve-alpine hash in all consumer
Dockerfiles (via tools/bump_dockerfiles.pl until
make check-docker-hashes-consistency is clean), as in #7029.

How to test and validate this PR

  • make pkg/alpine builds, and go version in the resulting image reports
    go1.26.11.
  • The eve-build-$USER builder image (build-tools/src/scripts) builds, and
    go version inside it reports go1.26.11.
  • CI build and test jobs pass.

Changelog notes

Go toolchain updated to 1.26.11 (fixes GO-2026-6859 in the Go standard library).

PR Backports

  • 17.0-stable: To be backported (on Go 1.26.10).
  • 16.0-stable: No, it is on Go 1.24.x; a 1.26 move there is a separate change.
  • 14.5-stable: To be backported (on Go 1.26.10).
  • 13.4-stable: No, it is on Go 1.24.x; a 1.26 move there is a separate change.

Checklist

  • I've provided a proper description

  • I've added the proper documentation (no docs reference the Go version)

  • I've tested my PR on amd64 device

  • I've tested my PR on arm64 device (builder images built and checked on
    arm64; no device test)

  • I've written the test verification instructions

  • I've set the proper labels to this PR

  • I've checked the boxes above, or I've provided a good reason why I didn't
    check them.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 31.46%. Comparing base (9267176) to head (f2c8dcf).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7170      +/-   ##
==========================================
+ Coverage   30.99%   31.46%   +0.47%     
==========================================
  Files         562      573      +11     
  Lines      101231   102826    +1595     
==========================================
+ Hits        31380    32359     +979     
- Misses      67412    68069     +657     
+ Partials     2439     2398      -41     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rene

rene commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

@andrewd-zededa , if you wanna bump this, you need to bump all alpine dependencies as well....

@andrewd-zededa

Copy link
Copy Markdown
Contributor Author

Thanks — added a second commit bumping the eve-alpine hash in all dependent Dockerfiles, same as #7029.

@github-actions
github-actions Bot requested a review from europaul November 20, 2026 17:45

@eriknordmark eriknordmark left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

andrewd-zededa and others added 2 commits November 23, 2026 13:53
Bump the Go toolchain from 1.26.10 to 1.26.11 in:
- pkg/alpine/Dockerfile (GO_VERSION, downloaded from go.dev)
- the top-level Makefile (GOVER default)
- build-tools/src/scripts/Dockerfile (GOVER default)

Go 1.26.11 fixes GO-2026-6859 in the standard library. Both builder
images set GOTOOLCHAIN=local, so a module's go.mod toolchain line does
not change the compiler; every Go binary built from them carried the
1.26.10 standard library until the images themselves move.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Andrew Durbin <andrewd@zededa.com>
Update all package hashes after a change to a package that others are built from.

Signed-off-by: Andrew Durbin <andrewd@zededa.com>
@andrewd-zededa

Copy link
Copy Markdown
Contributor Author

Rebased onto current master to resolve conflicts. The Go 1.26.11 commit is unchanged; the hash commit was regenerated with tools/bump-and-commit.sh since master's package trees had moved.

@github-actions

Copy link
Copy Markdown
Contributor

TestAppsSuite: failures likely caused by this PR

TestVGAPassthroughNoHostAccess

Failure
bpftrace-compiler exited before running the tracer (exit status 1); its last output:
2026/11/24 02:15:23 could not find compiled script in cache, compiling now ...
#1 [internal] load remote build context
#1 DONE 0.1s

#1 [internal] load remote build context
#1 DONE 0.1s

#2 copy /context /
#2 DONE 0.0s

#3 resolve image config for docker.io/docker/buildkit-syft-scanner:stable-1
#3 DONE 1.1s

#4 [internal] load metadata for docker.io/lfedge/eve-alpine:3a8c6b2742af0f1e40d16063fb5ccfb1a1aece6f
#4 ...

#5 [internal] load metadata for docker.io/lfedge/eve-bpftrace:e51fc41d3febd6dff4bec557f8780175d4bfc4e9
#5 ERROR: docker.io/lfedge/eve-bpftrace:e51fc41d3febd6dff4bec557f8780175d4bfc4e9: not found
the script's output:
reusing builder state volume linuxkit-builder-state
creating builder container 'linuxkit-builder' in context 'default'
a82b054549e840d94356e934f05fd7100b17d134ce273369ff1c30975ded90fc
waiting for buildkit builder to be ready, up to 30 seconds
buildkit builder ready!
building for platform linux/amd64
Claude's conclusion

This confirms it directly — nothing more needed to investigate.

Root cause: The test's own bpftrace-compiler helper tries to build a tracer image on-demand, and that build fails at FROM lfedge/eve-bpftrace:e51fc41d3febd6dff4bec557f8780175d4bfc4e9 — buildkit reports docker.io/lfedge/eve-bpftrace:e51fc41d3febd6dff4bec557f8780175d4bfc4e9: not found. That exact hash is introduced by this PR's f2c8dcfb2 Update all package hashes commit, which bumps eve-tools/bpftrace-compiler/root/Dockerfile and pkg/bpftrace/Dockerfile from lfedge/eve-bpftrace:2d0823ce... to lfedge/eve-bpftrace:e51fc41d.... That new tag apparently hasn't been pushed to Docker Hub yet (or isn't public), so any build depending on it — including the test harness's own bpftrace-compiler, which pulls eve-bpftrace directly from Hub rather than building it locally — fails immediately. This is a new failure signature with no prior occurrence in the ledger (unlike the previously well-documented TestVGAPassthroughNoHostAccess vCPU-thread tracer false-positive bug, which this is not); it's a pre-existing-tracer-build issue surfaced by this specific PR's vendored-hash bump, not the historical tracer whitelist bug, not environmental/broker flakiness.

This branch has not been deployed

No deployments
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.

3 participants