Skip to content

APMLP-350 Test ipv6 endpoint parsing#809

Merged
ivoanjo merged 2 commits into
DataDog:mainfrom
p-datadog:test-ipv6-endpoint-parsing
Jan 3, 2025
Merged

APMLP-350 Test ipv6 endpoint parsing#809
ivoanjo merged 2 commits into
DataDog:mainfrom
p-datadog:test-ipv6-endpoint-parsing

Conversation

@p-datadog

Copy link
Copy Markdown
Member

What does this PR do?

Adds tests for parsing endpoints using ipv6 addresses, valid and malformed (since dd-trace-rb somehow generates the malformed one).

Motivation

Debugging a crash in dd-trace-rb when agent host is set to ipv6 address

Additional Notes

Anything else we should know when reviewing?

How to test the change?

Unit tests are added, there is no change in code

@p-datadog
p-datadog requested a review from a team as a code owner December 18, 2024 15:57
@codecov-commenter

codecov-commenter commented Dec 18, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.03%. Comparing base (9bd62bb) to head (cfa69b9).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #809   +/-   ##
=======================================
  Coverage   71.03%   71.03%           
=======================================
  Files         313      313           
  Lines       45900    45906    +6     
=======================================
+ Hits        32604    32611    +7     
+ Misses      13296    13295    -1     
Components Coverage Δ
crashtracker 38.25% <ø> (-0.03%) ⬇️
crashtracker-ffi 5.71% <ø> (ø)
datadog-alloc 98.73% <ø> (ø)
data-pipeline 91.87% <ø> (ø)
data-pipeline-ffi 90.54% <ø> (ø)
ddcommon 82.08% <100.00%> (+0.04%) ⬆️
ddcommon-ffi 65.84% <100.00%> (+0.24%) ⬆️
ddtelemetry 59.51% <ø> (ø)
ddtelemetry-ffi 22.46% <ø> (ø)
dogstatsd 89.59% <ø> (ø)
dogstatsd-client 79.77% <ø> (ø)
ipc 82.69% <ø> (-0.11%) ⬇️
profiling 84.29% <ø> (ø)
profiling-ffi 77.55% <ø> (ø)
serverless 0.00% <ø> (ø)
sidecar 40.91% <ø> (ø)
sidecar-ffi 3.98% <ø> (ø)
spawn-worker 54.37% <ø> (ø)
tinybytes 93.60% <ø> (ø)
trace-mini-agent 72.48% <ø> (ø)
trace-normalization 98.23% <ø> (ø)
trace-obfuscation 95.77% <ø> (ø)
trace-protobuf 77.67% <ø> (ø)
trace-utils 93.79% <ø> (ø)

@p-datadog p-datadog changed the title Test ipv6 endpoint parsing APMLP-350 Test ipv6 endpoint parsing Dec 19, 2024

@ivoanjo ivoanjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍 Thanks for improving the tests! I've also gone ahead and added you to https://github.com/orgs/DataDog/teams/libdatadog-ruby so you should have write access to this repository, to make it easier for future contributions :)

@ivoanjo

ivoanjo commented Jan 3, 2025

Copy link
Copy Markdown
Member

The "pull request triager" seems to not be working (maybe because this is coming from an external fork?), but I'm going to go ahead and merge this anyway. (Any issues or concerns -- ping me :D )

@ivoanjo
ivoanjo merged commit 872c109 into DataDog:main Jan 3, 2025
@ivoanjo

ivoanjo commented Jan 3, 2025

Copy link
Copy Markdown
Member

Update: After merging this to master, CI is green as expected:

image

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.

5 participants