Skip to content

Conversation

@marc-vanderwal
Copy link
Contributor

Purpose

This PR provides an implementation of Get-Parent-NS-Names-and-IPs.

Context

See zonemaster/zonemaster#1418.

Changes

How to test this PR

Unit tests should pass.

@matsduf
Copy link
Contributor

matsduf commented Oct 29, 2025

Can the new unit test file format introduced by #1467 be used in this case too?

@marc-vanderwal
Copy link
Contributor Author

Can the new unit test file format introduced by #1467 be used in this case too?

Alas, no, because MethodsV2 tests do not work quite the same way as test case tests do. I’d need to implement a slightly different DSL if we wanted a format similar to #1467. It would be nice to have that, but it didn’t feel urgent to me because we are much less likely to touch MethodsV2 unit tests than test case tests.

@marc-vanderwal marc-vanderwal force-pushed the feature/get-parent-ns-names-and-ips branch from 5faaa92 to d6e9c1a Compare October 29, 2025 13:46
matsduf
matsduf previously approved these changes Oct 29, 2025
Copy link
Contributor

@matsduf matsduf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. Besides reviewing I rely on the scenarios/unit tests having passed.

@tgreenx tgreenx added V-Patch Versioning: The change gives an update of patch in version. RC-Features Release category: Features. labels Oct 30, 2025
@matsduf
Copy link
Contributor

matsduf commented Nov 3, 2025

Just two small comments on the language. Else this looks good. Since the unit tests pass I see no issues.

Implement the new method Get-Parent-NS-Names-and-IPs as per the
specification. And make sure that it is memoized properly.
Somehow, introducing Get-Parent-NS-Names-and-IPs, then redefining
Get-Parent-NS-IPs in terms of Get-Parent-NS-Names-and-IPs, has had side
effects on some unit tests that perform tests against live zones:
suddenly, they tried to perform queries to a variety of name
servers (among which M-root).

I haven’t fully investigated the reason why the tests failed, but it
might be because the order of the servers being queried has changed. I
also suspect some of the name servers have changed IP addresses since
recording.

The offending .t files are t/Test.t, t/Test-dnssec.t and
t/Test-connectivity.t.

Rerecording the corresponding data files is enough to fix everything,
except for t/Test-dnssec.data where it was necessary to splice part of
the newly recorded data into the existing data so that everything
continues to work. It is rather inelegant, but it gets the job done
until the affected tests are migrated to the new scenario-based
framework.
@marc-vanderwal marc-vanderwal force-pushed the feature/get-parent-ns-names-and-ips branch from 72cf62b to e24a21e Compare November 3, 2025 10:42
@marc-vanderwal
Copy link
Contributor Author

@matsduf and @tgreenx, I’ve addressed your comments. Can you please review again?

@tgreenx tgreenx merged commit e5011ce into zonemaster:develop Nov 4, 2025
3 checks passed
@tolvmannen tolvmannen added the S-ReleaseTested Status: The PR has been successfully tested in release testing label Dec 8, 2025
@matsduf matsduf removed the V-Patch Versioning: The change gives an update of patch in version. label Dec 8, 2025
@matsduf matsduf added the V-Minor Versioning: The change gives an update of minor in version. label Dec 8, 2025
@matsduf
Copy link
Contributor

matsduf commented Dec 8, 2025

Tag change to V-Minor: #1479 (review)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RC-Features Release category: Features. S-ReleaseTested Status: The PR has been successfully tested in release testing V-Minor Versioning: The change gives an update of minor in version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants