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

Fixes kind cluster cleanup in e2e make target #298

Merged

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Jul 27, 2023

Description

Currently we have kind-cluster-cleanup as a dependency in kind-cluster target. Since make only builds a target once this means that e2e target performs cleanup before creating a new cluster and skips cleanup at the end leaving cluster hanging around.

With this change, make e2e will be failing on cluster creation, if a cluster with the same name already exists, but the failure message will clearly indicate the issue.

Reviewer Checklist

  • API Go Documentation
  • Tests: Unit Tests (and E2E Tests, if appropriate)
  • Comprehensive Commit Messages
  • Links to related GitHub Issue(s)

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 27, 2023
Currently we have `kind-cluster-cleanup` as a dependency
in `kind-cluster` target. Since `make` only builds a target
once this means that `e2e` target performs cleanup
before creating a new cluster and skips cleanup at the end
leaving cluster hanging around.

With this change, `make e2e` will be failing on cluster creation,
if a cluster with the same name already exists, but the failure
message will clearly indicate the issue.

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@m1kola m1kola force-pushed the makefile-fixup-kind-cluster-cleanup branch from dfc8b3d to 051cb1c Compare July 27, 2023 16:03
@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Merging #298 (051cb1c) into main (3c55b14) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #298   +/-   ##
=======================================
  Coverage   77.00%   77.00%           
=======================================
  Files          15       15           
  Lines         687      687           
=======================================
  Hits          529      529           
  Misses        129      129           
  Partials       29       29           

@m1kola m1kola marked this pull request as ready for review July 27, 2023 16:11
@m1kola m1kola requested a review from a team as a code owner July 27, 2023 16:11
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 27, 2023
@ncdc ncdc merged commit cf47583 into operator-framework:main Jul 28, 2023
9 checks passed
@m1kola m1kola deleted the makefile-fixup-kind-cluster-cleanup branch July 28, 2023 15:21
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.

None yet

2 participants