Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apple_dns: Update the Apple DNS resolution details #36536

Merged
merged 5 commits into from
Oct 14, 2024

Conversation

fredyw
Copy link
Member

@fredyw fredyw commented Oct 10, 2024

This PR updates the DNS resolution details from apple_dns_success to apple_dns_immediate_success for an immediate success and from not_set to apple_dns_success for a successful case. This PR also adds missing test cases for the Apple DNS resolution details.

Risk Level: low
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: apple_dns

Signed-off-by: Fredy Wijaya <fredyw@google.com>
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #36536 was opened by fredyw.

see: more, trace.

@fredyw
Copy link
Member Author

fredyw commented Oct 10, 2024

/retest

1 similar comment
@fredyw
Copy link
Member Author

fredyw commented Oct 10, 2024

/retest

Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw fredyw marked this pull request as ready for review October 10, 2024 18:12
@fredyw
Copy link
Member Author

fredyw commented Oct 10, 2024

/assign @alyssawilk

Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

argh failed to mail last week

@@ -378,6 +378,8 @@ void AppleDnsResolverImpl::PendingResolution::onDNSServiceGetAddrInfoReply(
if (!(flags & kDNSServiceFlagsMoreComing) && isAddressFamilyProcessed(kDNSServiceProtocol_IPv4) &&
isAddressFamilyProcessed(kDNSServiceProtocol_IPv6)) {
ENVOY_LOG(debug, "DNS Resolver flushing queries pending callback");
pending_response_.status_ = ResolutionStatus::Completed;
pending_response_.details_ = "apple_dns_success";
Copy link
Contributor

Choose a reason for hiding this comment

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

was this broken before? Can we regression test?
/wait

Copy link
Member Author

Choose a reason for hiding this comment

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

We discovered some instances of not_set in our testing, which gives the impression that the DNS query never gets executed. This is because by default, the status is set to Completed and details to not_set. This PR aims to fix the potential confusion.

I also updated the PR to add missing tests for the DNS resolution details that previously didn't exist.

Signed-off-by: Fredy Wijaya <fredyw@google.com>
Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw fredyw marked this pull request as draft October 14, 2024 15:32
@fredyw fredyw changed the title dns: Update the Apple DNS resolution details apple dns: Update the Apple DNS resolution details Oct 14, 2024
@fredyw fredyw changed the title apple dns: Update the Apple DNS resolution details apple_dns: Update the Apple DNS resolution details Oct 14, 2024
Signed-off-by: Fredy Wijaya <fredyw@google.com>
@fredyw
Copy link
Member Author

fredyw commented Oct 14, 2024

/retest

@fredyw fredyw marked this pull request as ready for review October 14, 2024 17:42
Copy link
Contributor

@alyssawilk alyssawilk left a comment

Choose a reason for hiding this comment

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

thanks for suffering through testing via CI :-)

@fredyw fredyw merged commit 93d05d5 into envoyproxy:main Oct 14, 2024
20 checks passed
@fredyw fredyw deleted the apple_dns_details branch October 14, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants