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

Antonio Vieiro avieiro at openjdk.org
Wed Nov 19 16:57:30 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.

Antonio Vieiro has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' of https://git.openjdk.org/jdk11u-dev into backports/JDK-8336451-2
 - 8336451: [11u] GHA macos-13 and macos-15 builders are unable to resolve local hostname
 - Backport 7fe25530c47cacc11c5214ef7ef4db443701eabf

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

Changes:
  - all: https://git.openjdk.org/jdk11u-dev/pull/3122/files
  - new: https://git.openjdk.org/jdk11u-dev/pull/3122/files/2e624f30..e9c98fb3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3122&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3122&range=01-02

  Stats: 94 lines in 6 files changed: 30 ins; 43 del; 21 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