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

MGMT-15114: remove event for cluster registration failed #5330

Conversation

rccrdpccl
Copy link
Contributor

Related to #5324

We decided that ClusterRegistrationFailed event it's useless as it is, therefore we're going to remove it.

In this PR we'll also include migration to clean up events not bound to clusters.

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 29, 2023

@rccrdpccl: This pull request references MGMT-15114 which is a valid jira issue.

In response to this:

Related to #5324

We decided that ClusterRegistrationFailed event it's useless as it is, therefore we're going to remove it.

In this PR we'll also include migration to clean up events not bound to clusters.

List all the issues related to this PR

  • New Feature
  • Enhancement
  • Bug fix
  • Tests
  • Documentation
  • CI/CD

What environments does this code impact?

  • Automation (CI, tools, etc)
  • Cloud
  • Operator Managed Deployments
  • None

How was this code tested?

  • assisted-test-infra environment
  • dev-scripts environment
  • Reviewer's test appreciated
  • Waiting for CI to do a full test run
  • Manual (Elaborate on how it was tested)
  • No tests needed

Checklist

  • Title and description added to both, commit and PR.
  • Relevant issues have been associated (see CONTRIBUTING guide)
  • This change does not require a documentation update (docstring, docs, README, etc)
  • Does this change include unit-tests (note that code changes require unit-tests)

Reviewers Checklist

  • Are the title and description (in both PR and commit) meaningful and clear?
  • Is there a bug required (and linked) for this change?
  • Should this PR be backported?

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Jun 29, 2023
@rccrdpccl
Copy link
Contributor Author

/cc @avishayt @osherdp @gamli75

@openshift-ci openshift-ci bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 29, 2023
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 29, 2023
@rccrdpccl
Copy link
Contributor Author

/uncc @eliorerz @romfreiman

@avishayt
Copy link
Contributor

We can also clean up the event definition itself

@rccrdpccl rccrdpccl force-pushed the MGMT-15114-remove-cluster-registration-failed-event branch from aecbd9a to d29b291 Compare June 29, 2023 13:07
@openshift-ci openshift-ci bot added the api-review Categorizes an issue or PR as actively needing an API review. label Jun 29, 2023
@codecov
Copy link

codecov bot commented Jun 29, 2023

Codecov Report

Merging #5330 (ac3bba9) into master (5d319db) will increase coverage by 0.23%.
The diff coverage is 64.28%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5330      +/-   ##
==========================================
+ Coverage   67.49%   67.72%   +0.23%     
==========================================
  Files         225      226       +1     
  Lines       33214    33397     +183     
==========================================
+ Hits        22417    22619     +202     
+ Misses       8781     8763      -18     
+ Partials     2016     2015       -1     
Impacted Files Coverage Δ
internal/bminventory/inventory.go 69.85% <ø> (+0.02%) ⬆️
internal/cluster/cluster.go 66.57% <0.00%> (+0.06%) ⬆️
...230629113604_delete_events_with_unbound_cluster.go 80.00% <80.00%> (ø)
internal/migrations/migrations.go 89.28% <100.00%> (+0.39%) ⬆️

... and 2 files with indirect coverage changes

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2023
@rccrdpccl
Copy link
Contributor Author

/retest

@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 5d319db and 2 for PR HEAD d29b291 in total

@rccrdpccl rccrdpccl force-pushed the MGMT-15114-remove-cluster-registration-failed-event branch from d29b291 to 188e366 Compare June 29, 2023 14:01
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2023
@rccrdpccl rccrdpccl force-pushed the MGMT-15114-remove-cluster-registration-failed-event branch from 188e366 to 1516e9a Compare June 29, 2023 14:37
@openshift-ci openshift-ci bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jun 29, 2023
Signed-off-by: Riccardo piccoli <rpiccoli@redhat.com>
@rccrdpccl rccrdpccl force-pushed the MGMT-15114-remove-cluster-registration-failed-event branch from 1516e9a to ac3bba9 Compare June 29, 2023 14:42
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 29, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD a6fd277 and 2 for PR HEAD ac3bba9 in total

@openshift-ci
Copy link

openshift-ci bot commented Jun 29, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avishayt, gamli75, rccrdpccl

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [avishayt,gamli75,rccrdpccl]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gamli75
Copy link
Contributor

gamli75 commented Jun 30, 2023

/retest-required

@openshift-ci
Copy link

openshift-ci bot commented Jun 30, 2023

@rccrdpccl: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit 7c7a001 into openshift:master Jun 30, 2023
14 checks passed
@osherdp
Copy link
Contributor

osherdp commented Jul 2, 2023

/cherry-pick cloud_hotfix_releases

@openshift-cherrypick-robot

@osherdp: new pull request created: #5332

In response to this:

/cherry-pick cloud_hotfix_releases

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

danielerez pushed a commit to danielerez/assisted-service that referenced this pull request Oct 15, 2023
)

Signed-off-by: Riccardo piccoli <rpiccoli@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review Categorizes an issue or PR as actively needing an API review. approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants