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

Remove unnecessary make command to install tools in e2e tests #72

Conversation

ivanvc
Copy link
Member

@ivanvc ivanvc commented Feb 15, 2025

The make kustomize and controller-gen targets are prerequisites of the targets later called in the e2e tests (controller-gen from manifests, and kustomize from install), so there's no need to trigger them manually.

The make kustomize and controller-gen targets are prerequisites of the
targets later called in the e2e tests, so there's no need to manually
trigger them.

Signed-off-by: Ivan Valdes <ivan@vald.es>
// gen manifest files
log.Println("Generate manifests...")
cmd = exec.Command("make", "manifests")
cmd := exec.Command("make", "manifests")
Copy link
Member

Choose a reason for hiding this comment

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

It seems that even `make manifests" isn't needed. Feel free to raise a new PR to remove & test it. thx

install: manifests kustomize ## Install CRDs into the K8s cluster specified in ~/.kube/config.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. manifests is a prereq from test-e2e. So, we could also call docker-build by setting it as a prereq for test-e2e. I'll open a pull request with this change, too.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, nevermind. It is a pre-requisite for install, as you mentioned. It doesn't make sense to have it as prereq for test-e2e, because if the tests are run with go test, it won't have the manifests. It makes more sense to remove it from test-e2e.

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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

@ahrtr ahrtr merged commit ce2b389 into etcd-io:main Feb 15, 2025
5 checks passed
@ivanvc ivanvc deleted the remove-unnecessary-make-command-installs-in-e2e-tests branch February 15, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants