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

Separate e2e tests and KIND from main Makefile #255

Merged
merged 4 commits into from
Jan 6, 2021
Merged

Conversation

cimnine
Copy link
Contributor

@cimnine cimnine commented Jan 4, 2021

Summary

Re-organized the Makefile with regards to #198 .

Left to do:

  • Actually extract code from ./Makefile into another file

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking,
    as they show up in the changelog
  • Update the documentation.
  • Update tests.
  • Link this PR to related issues.

This is a preparation step on the way to extract E2E-related code into
it's own Makefile, if possible.
@cimnine cimnine added the change Generic change that is neither a fix or feature label Jan 4, 2021
Copy link
Contributor

@ccremer ccremer left a comment

Choose a reason for hiding this comment

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

I would propose to introduce lower-case variables for "make internal" variables, not necessary intended to be edited by developers (e.g. $(KIND_BIN) to $(kind_bin). Additionally, I'd propose to create a Makevariables.mk file, to be included with include Makevariables.mk at the top of Makefile. This variables file contains only the stuff to be edited by developer or per project (e.g. docker image names etc), so that the main makefile becomes easier to port to other repositories, and indicates better which variables are meant to be customized.

Makefile Outdated Show resolved Hide resolved
@cimnine cimnine force-pushed the 198MakefileCleanup branch 3 times, most recently from 860b3e1 to b683c7f Compare January 5, 2021 07:40
@cimnine cimnine marked this pull request as ready for review January 5, 2021 07:41
@cimnine cimnine requested a review from ccremer January 5, 2021 07:41
Makefile Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
e2e/Makefile Outdated Show resolved Hide resolved
e2e/kind.mk Outdated Show resolved Hide resolved
@ccremer ccremer changed the title Makefile makeover Separate e2e tests and KIND from main Makefile Jan 5, 2021
@ccremer ccremer added this to the v1.0.0-rc3 milestone Jan 5, 2021
Most of the targets – or at least their logic – were
extracted to e2e/kind.mk and e2e/Makefile.
Most variables were extracted into Makefile.vars.mk
@ccremer ccremer mentioned this pull request Jan 5, 2021
3 tasks
@ccremer ccremer merged commit e8c37a0 into master Jan 6, 2021
@ccremer ccremer deleted the 198MakefileCleanup branch January 6, 2021 07:09
@ccremer ccremer linked an issue Jan 6, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change Generic change that is neither a fix or feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extract e2e Targets from /Makefile to /e2e/Makefile
2 participants