Skip to content

[1.5] Switch to Go 1.25+#5211

Merged
lifubang merged 3 commits into
opencontainers:release-1.5from
kolyshkin:1.5-5205
Apr 2, 2026
Merged

[1.5] Switch to Go 1.25+#5211
lifubang merged 3 commits into
opencontainers:release-1.5from
kolyshkin:1.5-5205

Conversation

@kolyshkin
Copy link
Copy Markdown
Contributor

Backport of #5205 to release-1.5.


Go 1.24 is no longer supported.

(this is a carry of #5169 with the additional test fix)

kolyshkin and others added 3 commits April 1, 2026 11:06
Since switching to Go 1.25 in go.mod, the "detect fd leaks" test fails
like this:

> not ok 57 runc create[detect fd leak as comprehensively as possible]
> # (in test file tests/integration/create.bats, line 76)
> #   `[ "$violation_found" -eq 0 ]' failed
> ...
> # Violation: FD 9 -> '/system.slice/runc-test_busybox.scope/cpu.cfs_quota_us'
> # Violation: FD 10 -> '/system.slice/runc-test_busybox.scope/cpu.cfs_period_us'
> ...

This happens because Go 1.25 adds a feature to dynamically set GOMAXPROC
based on current CPU quota values. This feature can be disabled by setting

	GODEBUG=containermaxprocs=0,updatemaxprocs=0

but it is harmless to keep it (except for the above test failure).

Add an exception to the test case.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit f9a9a36)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
(cherry picked from commit 99d054b)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
(cherry picked from commit 47fba7e)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin kolyshkin added this to the 1.5.0-rc.2 milestone Apr 1, 2026
@kolyshkin kolyshkin added the backport/1.5-pr A backport PR to release-1.5 label Apr 1, 2026
@kolyshkin kolyshkin changed the base branch from main to release-1.5 April 1, 2026 18:07
@kolyshkin kolyshkin changed the title 1.5 5205 [1.5] Switch to Go 1.25+ Apr 1, 2026
@kolyshkin
Copy link
Copy Markdown
Contributor Author

close/reopen to kick ci

@kolyshkin kolyshkin closed this Apr 1, 2026
@kolyshkin kolyshkin reopened this Apr 1, 2026
@kolyshkin kolyshkin requested review from AkihiroSuda, lifubang and rata and removed request for rata April 1, 2026 19:52
@lifubang lifubang merged commit ef42f35 into opencontainers:release-1.5 Apr 2, 2026
55 checks passed
@kolyshkin kolyshkin mentioned this pull request Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport/1.5-pr A backport PR to release-1.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants