Skip to content

ci(release): force Maven to IPv4 and skip tests on release deploy#1983

Merged
jfallows merged 3 commits into
developfrom
claude/release-workflow-support-branches-ss82ns
Jul 2, 2026
Merged

ci(release): force Maven to IPv4 and skip tests on release deploy#1983
jfallows merged 3 commits into
developfrom
claude/release-workflow-support-branches-ss82ns

Conversation

@jfallows

@jfallows jfallows commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Description

Mainline (develop) companion covering two release-workflow fixes:

  1. Force Maven to IPv4 — set MAVEN_OPTS: -Djava.net.preferIPv4Stack=true at the workflow level. maven.packages.aklivity.io publishes an AAAA (IPv6) record (2a12:5240::1) whose endpoint isn't routable from GitHub-hosted runners, so dependency downloads failed with "Network is unreachable"; forcing IPv4 uses the reachable 89.106.200.1.

  2. Skip tests on release deploy — add -DskipTests to Deploy via Maven. Those tests already run in build.yml CI, so this makes releases faster and avoids the k3po IPv6 spec tests (which bind [::1] inside the Maven JVM) conflicting with the preferIPv4Stack workaround above.

Note: the real fix for (1) is infra-side (drop/repair the AAAA record if the IPv6 endpoint isn't served); this is a reliable runner-side workaround in the meantime.

No associated issue.

🤖 Generated with Claude Code

claude added 2 commits July 1, 2026 22:59
maven.packages.aklivity.io publishes an AAAA record whose IPv6 endpoint is not
routable from GitHub-hosted runners, so dependency downloads fail with "Network
is unreachable" when the JVM tries the IPv6 address. Set MAVEN_OPTS
-Djava.net.preferIPv4Stack=true at the workflow level so all mvnw invocations
use the reachable IPv4 address.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5bGVS9PYHAbXzqiHZDXie
The release deploy re-ran the full test suite; those tests already run in the
build workflow, so skip them here for faster releases. This also avoids the
k3po IPv6 spec tests (which bind [::1] in the Maven JVM) conflicting with the
-Djava.net.preferIPv4Stack workaround needed for the package repo download.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5bGVS9PYHAbXzqiHZDXie
@jfallows jfallows changed the title ci(release): force Maven to IPv4 to avoid unreachable IPv6 package repo ci(release): force Maven to IPv4 and skip tests on release deploy Jul 2, 2026
… stack

-Djava.net.preferIPv4Stack=true fixed the release deploy's unreachable AAAA
record for maven.packages.aklivity.io, but it disables the JVM's IPv6 stack
entirely, which build.yml cannot tolerate since it runs the k3po IT suite
(including IPv6 loopback tests that bind [::1]). Replace it with a transient
/etc/hosts entry that pins only that hostname to its IPv4 address, leaving the
JVM's IPv6 stack untouched. Apply to build, codeql (scan) and release so all
three stop depending on IPv6 reachability to that host.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01C5bGVS9PYHAbXzqiHZDXie

@jfallows jfallows left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LGTM

@jfallows jfallows merged commit ad1c4cf into develop Jul 2, 2026
42 checks passed
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.

2 participants