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

Sort out binary installation in Makefile #399

Merged
merged 1 commit into from
Feb 5, 2023

Conversation

adrianchiris
Copy link
Collaborator

  • Align all binaries to use a predefined bin dir in project
  • Add cleanup for bin dir
  • modify/rename go-get-tool to go-install-tool and clean up its logic
  • cleanup lint target

Signed-off-by: adrianc [email protected]

@adrianchiris adrianchiris requested a review from SchSeba January 17, 2023 16:12
@github-actions
Copy link

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@adrianchiris
Copy link
Collaborator Author

/cc @bn222

@github-actions github-actions bot requested a review from bn222 January 17, 2023 16:12
@coveralls
Copy link

coveralls commented Jan 17, 2023

Pull Request Test Coverage Report for Build 4097427392

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 25.476%

Files with Coverage Reduction New Missed Lines %
controllers/sriovibnetwork_controller.go 2 67.33%
Totals Coverage Status
Change from base Build 3993689913: 0.2%
Covered Lines: 1913
Relevant Lines: 7509

💛 - Coveralls

@@ -53,7 +54,7 @@ else
GOBIN=$(shell go env GOBIN)
endif

GOLANGCI_LINT = $(GOBIN)/golangci-lint
GOLANGCI_LINT = $(BIN_DIR)/golangci-lint
Copy link
Member

Choose a reason for hiding this comment

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

We can also get rid of L51. Right?

# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes this logic is no longer needed in Makefile. will remove

- Align all binaries to use a predefined bin dir in project
- Add cleanup for bin dir
- modify/rename go-get-tool to go-install-tool and clean up its logic
- cleanup lint target
- remove logic to determine GOBIN from go env cmd

Signed-off-by: adrianc <[email protected]>
@SchSeba
Copy link
Collaborator

SchSeba commented Feb 5, 2023

/lgtm

thanks!

@github-actions
Copy link

github-actions bot commented Feb 5, 2023

Thanks for your PR,
To run vendors CIs use one of:

  • /test-all: To run all tests for all vendors.
  • /test-e2e-all: To run all E2E tests for all vendors.
  • /test-e2e-nvidia-all: To run all E2E tests for NVIDIA vendor.

To skip the vendors CIs use one of:

  • /skip-all: To skip all tests for all vendors.
  • /skip-e2e-all: To skip all E2E tests for all vendors.
  • /skip-e2e-nvidia-all: To skip all E2E tests for NVIDIA vendor.
    Best regards.

@adrianchiris
Copy link
Collaborator Author

@zeeke @SchSeba thx for reviewing. just addressed @zeeke comment.

once CI is green and you are happy with it, please merge :)

@SchSeba SchSeba merged commit aab5b91 into k8snetworkplumbingwg:master Feb 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants