[jdk11u-dev] RFR: 8336451: [11u] GHA macos-13 and macos-15 builders are unable to resolve local hostname

Antonio Vieiro avieiro at openjdk.org
Tue Nov 18 16:00:24 UTC 2025


This is a fix for an intermitent bug in `macos-13` and `macos-15` GHA runners, that makes it impossible for `getaddrinfo` to properly resolve `*.local` addressed, used as hostname in `macos`, making different `JDWP` and  `JDI` `macos` tests to fail.

The fix just adds  `$(hostname -f)` and `$(hostname -s)` to `/etc/hosts`, so they resolve as `127.0.0.1` as an additional step in github action runners.

All JDWP and JDI tests are expected to pass now.

-------------

Depends on: https://git.openjdk.org/jdk11u-dev/pull/3117

Commit messages:
 - 8336451: [11u] GHA macos-13 and macos-15 builders are unable to resolve local hostname

Changes: https://git.openjdk.org/jdk11u-dev/pull/3122/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3122&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8336451
  Stats: 7 lines in 1 file changed: 7 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/3122.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3122/head:pull/3122

PR: https://git.openjdk.org/jdk11u-dev/pull/3122


More information about the jdk-updates-dev mailing list