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

OCPBUGS-10534: Refactor status reporting logic to send updates more often #339

Merged
merged 1 commit into from
May 27, 2023

Conversation

suleymanakbas91
Copy link
Contributor

@suleymanakbas91 suleymanakbas91 commented May 9, 2023

This PR refactors status reporting logic to send updates more often.

  • api/v1alpha1/lvmvolumegroupnodestatus_types.go: Adds a new Progressing status to volume groups.
  • cmd/vgmanager/main.go: Minor fixes and cleanup.
  • controllers/lvmcluster_controller.go: Modifies LVMCluster to report Ready only when all the volume groups are ready.
  • pkg/vgmanager/devices.go: Moves finding available devices logic into a separate file.
  • pkg/vgmanager/devices_test.go: Adds a unit test.
  • pkg/vgmanager/status.go: Implements functions for volume group status calculation and setting.
  • pkg/vgmanager/vgmanager_controller.go: Adds status updates for each failure and success.

@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 May 9, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 9, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 9, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: suleymanakbas91

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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 9, 2023
@openshift-ci openshift-ci bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 9, 2023
@suleymanakbas91 suleymanakbas91 force-pushed the dangling branch 4 times, most recently from 8561b86 to 2529f3b Compare May 10, 2023 11:16
@suleymanakbas91
Copy link
Contributor Author

/test all

@codecov-commenter
Copy link

Codecov Report

Merging #339 (2529f3b) into main (c54c93e) will decrease coverage by 2.53%.
The diff coverage is 0.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #339      +/-   ##
==========================================
- Coverage   57.10%   54.58%   -2.53%     
==========================================
  Files          21       23       +2     
  Lines        1844     1920      +76     
==========================================
- Hits         1053     1048       -5     
- Misses        714      794      +80     
- Partials       77       78       +1     
Impacted Files Coverage Δ
pkg/vgmanager/devices.go 0.00% <0.00%> (ø)
pkg/vgmanager/status.go 0.00% <0.00%> (ø)
pkg/vgmanager/vgmanager_controller.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 10, 2023

@codecov-commenter: user codecov-commenter is not trusted for pull request #339

@suleymanakbas91 suleymanakbas91 force-pushed the dangling branch 8 times, most recently from 18d3a42 to 5207396 Compare May 11, 2023 10:34
@suleymanakbas91 suleymanakbas91 force-pushed the dangling branch 5 times, most recently from 9d0d872 to 9d94235 Compare May 26, 2023 13:10
@openshift-ci openshift-ci bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels May 26, 2023
@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels May 26, 2023
@openshift-ci-robot
Copy link

@suleymanakbas91: This pull request references Jira Issue OCPBUGS-10534, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @radeore

In response to this:

/jira refresh

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 openshift-ci bot requested a review from radeore May 26, 2023 13:16
@openshift-ci-robot
Copy link

@suleymanakbas91: This pull request references Jira Issue OCPBUGS-10534, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.14.0) matches configured target version for branch (4.14.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, POST)

Requesting review from QA contact:
/cc @radeore

In response to this:

This PR refactors status reporting logic to send updates more often.

  • api/v1alpha1/lvmvolumegroupnodestatus_types.go: Adds a new Progressing status to volume groups.
  • cmd/vgmanager/main.go: Minor fixes and cleanup.
  • controllers/lvmcluster_controller.go: Modifies LVMCluster to report Ready only when all the volume groups are ready.
  • pkg/vgmanager/devices.go: Moves finding available devices logic into a separate file.
  • pkg/vgmanager/devices_test.go: Adds a unit test.
  • pkg/vgmanager/status.go: Implements functions for volume group status calculation and setting.
  • pkg/vgmanager/vgmanager_controller.go: Adds status updates for each failure and success.

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.

@suleymanakbas91 suleymanakbas91 force-pushed the dangling branch 4 times, most recently from a7b0ce6 to 3bea6da Compare May 26, 2023 14:57
@suleymanakbas91
Copy link
Contributor Author

/retest

@jeff-roche
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 26, 2023
@suleymanakbas91
Copy link
Contributor Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 26, 2023
@jeff-roche
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2023
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 26, 2023
@jeff-roche
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 26, 2023
@openshift-ci-robot
Copy link

/retest-required

Remaining retests: 0 against base HEAD 0c57987 and 2 for PR HEAD 7c72a67 in total

@suleymanakbas91
Copy link
Contributor Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 27, 2023

@suleymanakbas91: 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 9e64470 into openshift:main May 27, 2023
@openshift-ci-robot
Copy link

@suleymanakbas91: Jira Issue OCPBUGS-10534: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-10534 has been moved to the MODIFIED state.

In response to this:

This PR refactors status reporting logic to send updates more often.

  • api/v1alpha1/lvmvolumegroupnodestatus_types.go: Adds a new Progressing status to volume groups.
  • cmd/vgmanager/main.go: Minor fixes and cleanup.
  • controllers/lvmcluster_controller.go: Modifies LVMCluster to report Ready only when all the volume groups are ready.
  • pkg/vgmanager/devices.go: Moves finding available devices logic into a separate file.
  • pkg/vgmanager/devices_test.go: Adds a unit test.
  • pkg/vgmanager/status.go: Implements functions for volume group status calculation and setting.
  • pkg/vgmanager/vgmanager_controller.go: Adds status updates for each failure and success.

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.

@suleymanakbas91 suleymanakbas91 deleted the dangling branch September 19, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants