-
Notifications
You must be signed in to change notification settings - Fork 33
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
test: split envtest/real cluster tests #788
Merged
fabriziosestito
merged 12 commits into
kubewarden:main
from
fabriziosestito:test/parallel-execution
Jul 5, 2024
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b5d4c12
test: adds real-cluster envtest/k3s label to controller test suite; a…
fabriziosestito 16a46d1
test: policy controller tests can now run in parallel; label tests as…
fabriziosestito c7f1979
test: remove assertions waiting for pods in policy server controller …
fabriziosestito 01828b9
test: update and clean-up test utils
fabriziosestito 7236b92
build(Makefile): update Makefile to kubebuilder v4; split integration…
fabriziosestito 46bf6c9
ci: update ci integration-tests job
fabriziosestito fbc51cd
docs: document testing in CONTRIBUTING.md
fabriziosestito ee182da
chore: fix lint
fabriziosestito 60b499b
docs: explain how to focus tests
fabriziosestito 3b1947d
chore: add missing FIXME comment
fabriziosestito 6a7e1a2
build(Makefile): bump POLICY_SERVER_VERSION
fabriziosestito 4e341e1
ci: remove golangci action workaround
fabriziosestito File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
TODO: cache this step, maybe file an issue for that
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 am experimenting with something atm. Kubebuilder generates a Makefile that installs the needed tools in a
bin
directory in the project root. We could add ginkgo to the automatically installed tools, cache the bin directory, and invalidate the cache if the Makefile changes. WDYT?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.
That sounds fine to me, provided the tools versions are pinned in the Makefile. We have that layout in other repos.
I would prefer a GH action because they can or tend to verify the tools prior to install, even if that means that we manually sync tool version in makefile and GHA.