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

Antonio Vieiro duke at openjdk.org
Mon Aug 26 11:28:10 UTC 2024


On Wed, 14 Aug 2024 20:52:58 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

>> 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.
>
> LGTM, but I'm not an expert in this area.

Hi @TheRealMDoerr . Thanks for the review.

Github has now deployed new images that solve the problem, so this PR is no longer required, closing the PR then.

[Here's a test](https://github.com/vieiro/gha-macos-resolve-hostname/actions/runs/10558777738) to verify the images work properly with `getaddrinfo`.

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2861#issuecomment-2309975004


More information about the jdk-updates-dev mailing list