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

clarify logic in endpointstranslator.go #5927

Merged
merged 3 commits into from
Jan 2, 2024

Conversation

xiangpingjiang
Copy link
Contributor

fix #5800

Signed-off-by: pingjiang <xiangpingjiang1998@gmail.com>
@xiangpingjiang xiangpingjiang requested a review from a team as a code owner November 1, 2023 15:59
@xiangpingjiang xiangpingjiang requested review from tsaarni and skriss and removed request for a team November 1, 2023 15:59
Copy link

github-actions bot commented Nov 1, 2023

Hi @xiangpingjiang! Welcome to our community and thank you for opening your first Pull Request. Someone will review it soon. Thank you for committing to making Contour better. You can also join us on our mailing list and in our channel in the Kubernetes Slack Workspace

@sunjayBhatia sunjayBhatia added the release-note/none-required Marks a PR as not requiring a release note. Should only be used for very small changes. label Nov 16, 2023
Signed-off-by: 钧羽 <xiangpingjiang.xpj@antgroup.com>
Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

commented re: unit test failures, cc @sunjayBhatia to check my logic here

internal/xdscache/v3/endpointstranslator.go Outdated Show resolved Hide resolved
internal/xdscache/v3/endpointslicetranslator.go Outdated Show resolved Hide resolved
@skriss skriss requested a review from sunjayBhatia December 5, 2023 20:14
@skriss
Copy link
Member

skriss commented Dec 18, 2023

@xiangpingjiang will you be able to address the failing unit tests here?

@xiangpingjiang
Copy link
Contributor Author

@xiangpingjiang will you be able to address the failing unit tests here?

yes, I will do it this week

Copy link
Member

@sunjayBhatia sunjayBhatia left a comment

Choose a reason for hiding this comment

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

left a comment on the open thread, seems like what @skriss suggested should work just fine, tested locally myself and with a few other options suggested all get the units to pass

Signed-off-by: 钧羽 <xiangpingjiang.xpj@antgroup.com>
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (13d0e36) 78.56% compared to head (4f74a4c) 78.69%.
Report is 59 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #5927      +/-   ##
==========================================
+ Coverage   78.56%   78.69%   +0.12%     
==========================================
  Files         139      138       -1     
  Lines       19614    19719     +105     
==========================================
+ Hits        15410    15518     +108     
+ Misses       3901     3896       -5     
- Partials      303      305       +2     
Files Coverage Δ
internal/xdscache/v3/endpointstranslator.go 88.64% <83.33%> (ø)
internal/xdscache/v3/endpointslicetranslator.go 82.31% <60.00%> (-0.60%) ⬇️

... and 34 files with indirect coverage changes

Copy link
Member

@skriss skriss left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @xiangpingjiang

@sunjayBhatia sunjayBhatia merged commit 4871aaf into projectcontour:main Jan 2, 2024
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/none-required Marks a PR as not requiring a release note. Should only be used for very small changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clarify logic in endpointstranslator.go
3 participants