[jdk11u-dev] RFR: 8336451: [11u] GHA macos-13 builder is unable to resolve local hostname

Antonio Vieiro duke at openjdk.org
Tue Jul 16 15:44:24 UTC 2024


This fixes [JDK-8336451](https://bugs.openjdk.org/browse/JDK-8336451).

This is a problem with the latest Github macos runners (see https://github.com/actions/runner-images/issues/8649) that makes it impossible for `getaddrinfo` to properly resolve the builder's hostname. The issue has been opened since late 2023.

Not being able to resolve the local hostname makes `jdk/tier1` and `langtools/tier1` to fail on this platform, as the [socket transport ](https://github.com/openjdk/jdk11u-dev/blob/697d8566b1d4801cb7926fa35bbf471f8f4ba066/src/jdk.jdwp.agent/share/native/libdt_socket/socketTransport.c#L329) cannot establish a connection.

There are still some other `sprintf`s in the codebase, but these do not affect the macos builds, and can be possibly  backported later on, once the macos builds are again in place.

The macos builds and tests are expected to succeed after this fix is in place.

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

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

Commit messages:
 - 8336451: [11u] GHA macos-13 builder is unable to resolve local hostname

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

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


More information about the jdk-updates-dev mailing list