Skip to content

Make DnsFilterTest.RandomizeFirstAnswerTest less brittle#39464

Merged
yanavlasov merged 1 commit intoenvoyproxy:mainfrom
yanavlasov:fix-dns-filter-test
May 15, 2025
Merged

Make DnsFilterTest.RandomizeFirstAnswerTest less brittle#39464
yanavlasov merged 1 commit intoenvoyproxy:mainfrom
yanavlasov:fix-dns-filter-test

Conversation

@yanavlasov
Copy link
Copy Markdown
Contributor

@yanavlasov yanavlasov commented May 14, 2025

Use a different insertion and retrieval order into std::unordered_multimap. This fixes the problem where libstdc++ implementation starting in GCC13 always ends up producing the first address in the answer and causing the test to fail.

Risk Level: Low
Testing: Unit Test
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Fixes #24330

Signed-off-by: Yan Avlasov <yavlasov@google.com>
@yanavlasov yanavlasov requested a review from mattklein123 as a code owner May 14, 2025 13:59
@yanavlasov yanavlasov merged commit fcbc0ca into envoyproxy:main May 15, 2025
24 checks passed
@yanavlasov yanavlasov deleted the fix-dns-filter-test branch May 15, 2025 20:32
fishpan1209 pushed a commit to fishpan1209/envoy that referenced this pull request May 22, 2025
…39464)

Use a different insertion and retrieval order into
std::unordered_multimap. This fixes the problem where libstdc++
implementation starting in GCC13 always ends up producing the first
address in the answer and causing the test to fail.

Risk Level: Low
Testing: Unit Test
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: N/A
Fixes envoyproxy#24330

Signed-off-by: Yan Avlasov <yavlasov@google.com>
Signed-off-by: Ting Pan <panting@google.com>
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