test: ping hostname instead of localhost #1284

Merged
viceice merged 2 commits from test/ipv6 into main 2026-01-13 12:56:00 +00:00
Owner

docker v26 always enables ipv6 on loopback

extracted from #1150

  • other
    • PR: test: ping hostname instead of localhost
docker v26 always enables ipv6 on loopback - https://github.com/moby/moby/releases/tag/v26.0.0 extracted from #1150 <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - other - [PR](https://code.forgejo.org/forgejo/runner/pulls/1284): <!--number 1284 --><!--line 0 --><!--description dGVzdDogcGluZyBob3N0bmFtZSBpbnN0ZWFkIG9mIGxvY2FsaG9zdA==-->test: ping hostname instead of localhost<!--description--> <!--end release-notes-assistant-->
test: ping hostname instad of localhost
All checks were successful
checks / build and test (pull_request) Successful in 44s
checks / validate mocks (pull_request) Successful in 25s
checks / validate pre-commit-hooks file (pull_request) Successful in 37s
cascade / forgejo (pull_request_target) Has been skipped
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Has been skipped
issue-labels / release-notes (pull_request_target) Successful in 4s
checks / runner exec tests (pull_request) Successful in 31s
checks / integration tests (docker-latest) (pull_request) Successful in 9m17s
checks / runner integration tests (pull_request) Successful in 4m46s
checks / integration tests (docker-stable) (pull_request) Successful in 10m50s
f9d379520c
docker v26 always enables ipv6 on loopback
- https://github.com/moby/moby/releases/tag/v26.0.0
viceice changed title from test: ping hostname instad of localhost to test: ping hostname instead of localhost 2026-01-13 09:35:07 +00:00
viceice scheduled this pull request to auto merge when all checks succeed 2026-01-13 10:29:54 +00:00
Member

What's the benefit of this change?

There should probably be quotes around $(cat /etc/hostname). Just to be on the safe side.

What's the benefit of this change? There should probably be quotes around `$(cat /etc/hostname)`. Just to be on the safe side.
Author
Owner

@aahlenst wrote in #1284 (comment):

What's the benefit of this change?

when upgrading to debian trixy, then we get docker v26 instead of v20 and because the host is ipv6 capable docker will enable ipv6 on the loopback device, so this test fails. see older builds of #1150

There should probably be quotes around $(cat /etc/hostname). Just to be on the safe side.

Will add quotes at 0f0fccc020

@aahlenst wrote in https://code.forgejo.org/forgejo/runner/pulls/1284#issuecomment-73076: > What's the benefit of this change? when upgrading to debian trixy, then we get docker v26 instead of v20 and because the host is ipv6 capable docker will enable ipv6 on the loopback device, so this test fails. see older builds of #1150 > There should probably be quotes around `$(cat /etc/hostname)`. Just to be on the safe side. Will add quotes at 0f0fccc02024a668d78d4f3bc2b18c7148369f66
test; add quotes
All checks were successful
issue-labels / release-notes (pull_request_target) Successful in 3s
checks / build and test (pull_request) Successful in 40s
checks / validate mocks (pull_request) Successful in 22s
checks / validate pre-commit-hooks file (pull_request) Successful in 32s
checks / runner exec tests (pull_request) Successful in 27s
checks / integration tests (docker-latest) (pull_request) Successful in 8m58s
checks / integration tests (docker-stable) (pull_request) Successful in 10m48s
checks / runner integration tests (pull_request) Successful in 4m5s
cascade / forgejo (pull_request_target) Successful in 1m7s
cascade / debug (pull_request_target) Has been skipped
cascade / end-to-end (pull_request_target) Successful in 5s
0f0fccc020
Signed-off-by: viceice <[email protected]>
Member

@viceice wrote in #1284 (comment):

when upgrading to debian trixy, then we get docker v26 instead of v20 and because the host is ipv6 capable docker will enable ipv6 on the loopback device, so this test fails. see older builds of #1150

I took me some time to connect the dots. It's about testing the --enable-ipv6 switch which isn't possible if Docker does its own thing.

@viceice wrote in https://code.forgejo.org/forgejo/runner/pulls/1284#issuecomment-73100: > when upgrading to debian trixy, then we get docker v26 instead of v20 and because the host is ipv6 capable docker will enable ipv6 on the loopback device, so this test fails. see older builds of #1150 I took me some time to connect the dots. It's about testing the `--enable-ipv6` switch which isn't possible if Docker does its own thing.
aahlenst approved these changes 2026-01-13 12:38:38 +00:00
Author
Owner

@aahlenst wrote in #1284 (comment):

@viceice wrote in #1284 (comment):

when upgrading to debian trixy, then we get docker v26 instead of v20 and because the host is ipv6 capable docker will enable ipv6 on the loopback device, so this test fails. see older builds of #1150

I took me some time to connect the dots. It's about testing the --enable-ipv6 switch which isn't possible if Docker does its own thing.

yes. 🤗

@aahlenst wrote in https://code.forgejo.org/forgejo/runner/pulls/1284#issuecomment-73105: > @viceice wrote in #1284 (comment): > > > when upgrading to debian trixy, then we get docker v26 instead of v20 and because the host is ipv6 capable docker will enable ipv6 on the loopback device, so this test fails. see older builds of #1150 > > I took me some time to connect the dots. It's about testing the `--enable-ipv6` switch which isn't possible if Docker does its own thing. yes. 🤗
viceice canceled auto merging this pull request when all checks succeed 2026-01-13 12:54:17 +00:00
viceice scheduled this pull request to auto merge when all checks succeed 2026-01-13 12:54:28 +00:00
viceice deleted branch test/ipv6 2026-01-13 12:56:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/runner!1284
No description provided.