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.

    Type Reviewers
    ACK fanquake

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  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.

  9. fanquake commented at 2:54 pm on January 23, 2025: member
    I guess we can assume that nobody has compiled and run the Bitcoin Core tests on Illumos any time in the last 4 years? Or maybe they have, but never reported the test failures (although I’d guess that someone using an OS like this, is more likely to report failures). Seems ok to drop this code in this case.
  10. fanquake approved
  11. fanquake commented at 9:01 pm on February 20, 2025: member
    ACK d871d778251c35fd55d420ecf5c278f3edfea227
  12. fanquake merged this on Feb 20, 2025
  13. fanquake closed this on Feb 20, 2025

  14. hebasto deleted the branch on Feb 20, 2025
  15. hebasto referenced this in commit b19b65f57c on Feb 20, 2025

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-02-22 06:12 UTC

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