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

tests: address bridge unexported return issue #19105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manthanguptaa
Copy link
Contributor

@manthanguptaa manthanguptaa commented Dec 24, 2024

Introducing a new Bridge interface to resolve bridge unexported return issue

Part of #18370.

@k8s-ci-robot
Copy link

Hi @manthanguptaa. Thanks for your PR.

I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@manthanguptaa
Copy link
Contributor Author

manthanguptaa commented Dec 24, 2024

@ivanvc @jmhbnz requesting your review.

Also, I did push a signed commit but it still shows an unverified commit. I set up the GPG key for the same.

@manthanguptaa manthanguptaa force-pushed the tests-unexported-return branch from 2b8b165 to 0f6a30f Compare December 24, 2024 02:54
Copy link

codecov bot commented Dec 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.76%. Comparing base (801dfc3) to head (0f6a30f).
Report is 155 commits behind head on main.

Additional details and impacted files

see 36 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #19105      +/-   ##
==========================================
- Coverage   68.77%   68.76%   -0.01%     
==========================================
  Files         420      420              
  Lines       35623    35640      +17     
==========================================
+ Hits        24498    24507       +9     
- Misses       9699     9705       +6     
- Partials     1426     1428       +2     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 801dfc3...0f6a30f. Read the comment docs.

@manthanguptaa
Copy link
Contributor Author

@ivanvc polite reminder to review this

@manthanguptaa
Copy link
Contributor Author

@ivanvc can you please review this one? I hope to get this merged this week

@ivanvc
Copy link
Member

ivanvc commented Jan 16, 2025

/ok-to-test

@ivanvc
Copy link
Member

ivanvc commented Jan 16, 2025

While working on this linter rule, we have found several instances where the unexported struct does not implement an existing interface. @ahrtr, @serathius, do you have an opinion on creating a new interface vs. exporting the struct? Initially, I was leaning towards creating an interface, but now, for the sake of simplicity, exporting the interface makes more sense.

@ahrtr
Copy link
Member

ahrtr commented Jan 17, 2025

While working on this linter rule, we have found several instances where the unexported struct does not implement an existing interface. @ahrtr, @serathius, do you have an opinion on creating a new interface vs. exporting the struct? Initially, I was leaning towards creating an interface, but now, for the sake of simplicity, exporting the interface makes more sense.

Adding an interface looks good to me. One minor related comment, can we rename UnpauseConnections to "ResumeConnections" (can be in a separate PR)?

@ahrtr
Copy link
Member

ahrtr commented Jan 17, 2025

/retest

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, manthanguptaa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ivanvc
Copy link
Member

ivanvc commented Jan 18, 2025

Adding an interface looks good to me. One minor related comment, can we rename UnpauseConnections to "ResumeConnections" (can be in a separate PR)?

Should we just rename or deprecate+rename as it is an exported function?

@ahrtr
Copy link
Member

ahrtr commented Jan 18, 2025

Should we just rename or deprecate+rename as it is an exported function?

I don't think we need to deprecate+rename; We just need to rename it directly,

  • It's just a test code;
  • It's only included in main (3.6) branch, and 3.6 hasn't been released yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants