-
Notifications
You must be signed in to change notification settings - Fork 296
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
🌱 Introduce a new go.mod for test/ #2532
🌱 Introduce a new go.mod for test/ #2532
Conversation
/test pull-cluster-api-provider-vsphere-test-main |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2532 +/- ##
==========================================
+ Coverage 63.46% 64.14% +0.68%
==========================================
Files 119 118 -1
Lines 8592 8535 -57
==========================================
+ Hits 5453 5475 +22
+ Misses 2722 2642 -80
- Partials 417 418 +1 ☔ View full report in Codecov by Sentry. |
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.
Just some nits, rest looks good!
@@ -41,6 +43,7 @@ func NewMod(path string) (Mod, error) { | |||
}, nil | |||
} | |||
|
|||
// FindDependencyVersion return the version of a go.mod dependency. | |||
func (m Mod) FindDependencyVersion(dependency string) (string, error) { |
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.
Do we even use this?
Found nothing, maybe in your vcsim branch?
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.
I just moved stuff around, we can clean up as a follow up
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.
Just some nits, rest looks good!
#2527 is now merged, this one requires a rebase :-) |
8433e68
to
3655049
Compare
@@ -280,6 +281,7 @@ generate-go-deepcopy: $(CONTROLLER_GEN) ## Generate deepcopy go code for core | |||
.PHONY: generate-modules | |||
generate-modules: ## Run go mod tidy to ensure modules are up to date |
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.
It's highly likely that we have to introduce a dependabot action (see pr-dependabot.yaml from core CAPI).
But I'm fine waiting for the first time a dependabot PR fails with modules being out of sync and then only adding it if actually needed (it's very likely as we needed it in core CAPI & CR as well as soon as we had multiple modules referencing each other)
Thx! I like that we get rid of a few annoying dependencies in the top-level go.mod file |
3655049
to
c9dd3ff
Compare
Last two smaller findings |
c9dd3ff
to
0575040
Compare
/test pull-cluster-api-provider-vsphere-test-main |
/lgtm /hold |
LGTM label has been added. Git tree hash: de56d6e21539174bd90137fd24a0719adb97b213
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbueringer 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 |
0575040
to
8c61199
Compare
Thank you! /hold cancel |
@fabriziopandini: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
What this PR does / why we need it:
This PR introduces a go.mod file for the test/ folder, thus removing kind, docker and other dependencies from the main go.mod file, ultimately reducing the surface for CVEs/vulnerabilities for the CAPV manager