-
Notifications
You must be signed in to change notification settings - Fork 295
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
🌱 Add verify-import-restrictions to enforce import restrictions #2338
Conversation
Hi @laozc. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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/test-infra repository. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #2338 +/- ##
==========================================
- Coverage 50.27% 50.16% -0.12%
==========================================
Files 87 87
Lines 8041 8041
==========================================
- Hits 4043 4034 -9
- Misses 3673 3680 +7
- Partials 325 327 +2 ☔ View full report in Codecov by Sentry. |
It looks like the behavior is not consistent on different machine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit.
Nice catch!!
@laozc If you want / have time you can open the same PR against core CAPI once we merge this PR in CAPV (we can only add import-restrictions to the packages that are already fixed, but that is fine, xref: kubernetes-sigs/cluster-api#9011 (comment)) (otherwise we can take the core CAPI part) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
Thank you!! /lgtm /assign @killianmuldoon @chrischdi |
LGTM label has been added. Git tree hash: 81840bfa1b54a5aadd9b68beef022d5546902fd9
|
Sure. I will open up a PR against CAPI later. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
What this PR does / why we need it:
This PR introduces a new make target
verify-import-restrictions
to verify imports in source codesto prevent regression mentioned in #2159.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #2159