test: Remove non-portable IPv6 test #31580

pull hebasto wants to merge 1 commits into bitcoin:master from hebasto:241230-cnetaddr_basic changing 1 files +0 −7
  1. hebasto commented at 3:30 pm on December 30, 2024: member

    On Illumos-based systems, such as OpenIndiana and OmniOS, the assumption that “the default zone ID of 0 can be omitted for the default scope” is incorrect. As a result, getaddrinfo("fe80::1%0", ...) returns the EAI_NONAME error instead of resolving to “fe80::1”.

    See: https://www.illumos.org/man/3SOCKET/getaddrinfo.

    This PR removes the problematic code introduced in #19951.

  2. test: Remove non-portable IPv6 test
    On Illumos-based systems, such as OpenIndiana and SmartOS, the
    assumption that "the default zone ID of 0 can be omitted for the default
    scope" is incorrect. As a result, `getaddrinfo("fe80::1%0", ...)`
    returns the `EAI_NONAME` error.
    
    See: https://www.illumos.org/man/3SOCKET/getaddrinfo.
    d871d77825
  3. hebasto added the label Tests on Dec 30, 2024
  4. DrahtBot commented at 3:30 pm on December 30, 2024: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/31580.

    Reviews

    See the guideline for information on the review process. A summary of reviews will appear here.

  5. hebasto commented at 3:31 pm on December 30, 2024: member
  6. jonatack commented at 4:28 pm on December 30, 2024: member
    Is there a way to skip the test for Illumos-based platforms?
  7. hebasto commented at 5:18 pm on December 30, 2024: member

    Is there a way to skip the test for Illumos-based platforms?

    I’ve verified both OpenIndiana and OmniOS. The __illumos__ macro is defined to 1 in both.

  8. laanwj commented at 11:50 am on January 4, 2025: member

    i think this makes sense, relying on a “default scope” is brittle at most. Better to add the interface number explicitly. We don’t use that anywhere in our code outside the test, right? If so i think it’s okay to remove this test unconditionally.

    Or to say: it’s OS specific functionality, apparently, and it can still be used. But it is not required, and thus no test is required to ensure that it is available.

    And the only way i can see this possibly comes up, is when the user specifies such addresses on the command line, or through RPC when connecting to a peer manually.


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-01-21 06:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me