Skip to content

Remove package pkg/netutils #6955

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

Merged

Conversation

pipiland2612
Copy link
Contributor

@pipiland2612 pipiland2612 commented Apr 1, 2025

Which problem is this PR solving?

Description of the changes

  • Remove package pkg/netutils by
    • removing unused function FixLocalhost
    • moving function GetPort as private util function getPortForAddr within package cmd/query/app - the only place where this function is used

How was this change tested?

  • running existing tests in the project

Checklist

@pipiland2612 pipiland2612 requested a review from a team as a code owner April 1, 2025 19:07
@pipiland2612 pipiland2612 requested a review from pavolloffay April 1, 2025 19:07
@pipiland2612 pipiland2612 force-pushed the 6869-use-internal-package branch 2 times, most recently from 6f3eafc to 93293a4 Compare April 1, 2025 19:25
@pipiland2612 pipiland2612 force-pushed the 6869-use-internal-package branch from 93293a4 to ef44c08 Compare April 1, 2025 19:34
@pipiland2612
Copy link
Contributor Author

@yurishkuro This change is ready. I would love to hear your feedback!

@mahadzaryab1 mahadzaryab1 added the changelog:refactoring Internal code refactoring without functional changes label Apr 1, 2025
Copy link

codecov bot commented Apr 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.18%. Comparing base (289983c) to head (ef44c08).
Report is 9 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6955      +/-   ##
==========================================
- Coverage   96.22%   96.18%   -0.05%     
==========================================
  Files         344      343       -1     
  Lines       20253    20245       -8     
==========================================
- Hits        19488    19472      -16     
- Misses        577      583       +6     
- Partials      188      190       +2     
Flag Coverage Δ
badger_v1 10.21% <ø> (ø)
badger_v2 2.12% <ø> (ø)
cassandra-4.x-v1-manual 15.36% <ø> (ø)
cassandra-4.x-v2-auto 2.11% <ø> (ø)
cassandra-4.x-v2-manual 2.11% <ø> (ø)
cassandra-5.x-v1-manual 15.36% <ø> (ø)
cassandra-5.x-v2-auto 2.11% <ø> (ø)
cassandra-5.x-v2-manual 2.11% <ø> (ø)
elasticsearch-6.x-v1 20.12% <ø> (ø)
elasticsearch-7.x-v1 20.21% <ø> (ø)
elasticsearch-8.x-v1 20.38% <ø> (ø)
elasticsearch-8.x-v2 2.12% <ø> (ø)
grpc_v1 11.28% <ø> (ø)
grpc_v2 8.23% <ø> (ø)
kafka-3.x-v1 10.51% <ø> (ø)
kafka-3.x-v2 2.12% <ø> (ø)
memory_v2 2.12% <ø> (ø)
opensearch-1.x-v1 20.26% <ø> (ø)
opensearch-2.x-v1 20.26% <ø> (ø)
opensearch-2.x-v2 2.12% <ø> (ø)
tailsampling-processor 0.57% <ø> (ø)
unittests 94.96% <100.00%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yurishkuro yurishkuro added this pull request to the merge queue Apr 1, 2025
Merged via the queue into jaegertracing:main with commit 48c80bb Apr 1, 2025
56 of 57 checks passed
@pipiland2612 pipiland2612 deleted the 6869-use-internal-package branch April 1, 2025 20:46
amilbcahat pushed a commit to amilbcahat/jaeger that referenced this pull request May 4, 2025
## Which problem is this PR solving?
- part of jaegertracing#6869

## Description of the changes

- Remove package pkg/netutils by
   - removing unused function `FixLocalhost`
- moving function GetPort as private util function `getPortForAddr`
within package `cmd/query/app` - the only place where this function is
used

## How was this change tested?

- running existing tests in the project

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

Signed-off-by: pipiland <[email protected]>
amilbcahat pushed a commit to amilbcahat/jaeger that referenced this pull request May 4, 2025
## Which problem is this PR solving?
- part of jaegertracing#6869

## Description of the changes

- Remove package pkg/netutils by
   - removing unused function `FixLocalhost`
- moving function GetPort as private util function `getPortForAddr`
within package `cmd/query/app` - the only place where this function is
used

## How was this change tested?

- running existing tests in the project

## Checklist
- [x] I have read
https://github.com/jaegertracing/jaeger/blob/master/CONTRIBUTING_GUIDELINES.md
- [x] I have signed all commits
- [x] I have added unit tests for the new functionality
- [x] I have run lint and test steps successfully
  - for `jaeger`: `make lint test`
  - for `jaeger-ui`: `npm run lint` and `npm run test`

Signed-off-by: pipiland <[email protected]>
Signed-off-by: amol-verma-allen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:refactoring Internal code refactoring without functional changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants