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

Makefile refactor #305

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

adrianchiris
Copy link
Contributor

  • cleanup makefile
  • update buildtest workflow
  • ran go mod tidy, update go.mod

@adrianchiris
Copy link
Contributor Author

similar to what was done : k8snetworkplumbingwg/sriov-network-device-plugin#579

@coveralls
Copy link

coveralls commented Jul 28, 2024

Pull Request Test Coverage Report for Build 10161049791

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 12 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-10.2%) to 41.345%

Files with Coverage Reduction New Missed Lines %
pkg/utils/utils.go 12 44.23%
Totals Coverage Status
Change from base Build 10159026028: -10.2%
Covered Lines: 535
Relevant Lines: 1294

💛 - Coveralls

Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

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

LGTM

I think this should solve also:

@adrianchiris
Copy link
Contributor Author

adrianchiris commented Jul 30, 2024

LGTM

I think this should solve also:

yeap, running make build twice will not fail :)

regarding failed CI: i need to compile statically as before to not depend on libc in the system. (in container it uses different one)

- cleanup makefile
- update buildtest workflow
- ran go mod tidy, update go.mod

Signed-off-by: adrianc <[email protected]>
@adrianchiris
Copy link
Contributor Author

@zeeke can we merge this one?

@zeeke zeeke merged commit 176bd65 into k8snetworkplumbingwg:master Jul 30, 2024
10 of 11 checks passed
@thom311
Copy link
Contributor

thom311 commented Jul 31, 2024

.PHONY: all
all: fmt lint build test

The all target now also includes test. That seems undesirable to me.

In particular, because all is also the default target.

On my machine, make test fails due to lack of permissions. Maybe I am doing it wrong, and I should develop in a new rootless netns, where I have permissions or run make as root(??). But I'd rather not do that (do you?)

Compare to autotools projects, where make does not include make check.

I think either:

  • just don't include test in all target, as before.
  • add new target (check-and-build) that contains fmt lint build (but not test) and which is the new default target. Like
.PHONY: check-and-build
check-and-build: fmt lint build

.PHONY: all
all: check-and-build test

@SchSeba
Copy link
Collaborator

SchSeba commented Aug 1, 2024

agree! here with @thom311

@thom311 can you please open a PR for that?

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

Successfully merging this pull request may close these issues.

5 participants