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

[release-4.15] OCPBUGS-28966: fix: more sophisticated tagging migration #568

Conversation

jakobmoellerdev
Copy link
Contributor

@jakobmoellerdev jakobmoellerdev commented Feb 2, 2024

This PR solves 2 main issues:

  1. The tagging migration used lvs that were already prefiltered by the tag
  2. The tagging migration was using inefficient querying and always ran for all lvs, that now changed.

The test cases didnt reach all the paths so we didnt catch that.

@openshift-ci-robot openshift-ci-robot added jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Feb 2, 2024
@openshift-ci-robot
Copy link

@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-26768, which is invalid:

  • expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is ON_QA instead
  • expected Jira Issue OCPBUGS-26768 to depend on a bug targeting a version in 4.16.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This PR solves 2 main issues:

  1. The tagging migration used lvs that were already prefiltered by the tag
  2. The tagging migration was using inefficient querying and always ran for all lvs, that now changed.
  3. The test cases didnt reach all the paths so we didnt catch that.

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 openshift-eng/jira-lifecycle-plugin repository.

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

openshift-ci bot commented Feb 2, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jakobmoellerdev

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 Feb 2, 2024
@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2024

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (2497a69) 81.45% compared to head (197fc7e) 81.85%.

Additional details and impacted files

Impacted file tree graph

@@               Coverage Diff                @@
##           release-4.15     #568      +/-   ##
================================================
+ Coverage         81.45%   81.85%   +0.40%     
================================================
  Files                24       24              
  Lines              1790     1835      +45     
================================================
+ Hits               1458     1502      +44     
  Misses              225      225              
- Partials            107      108       +1     
Files Coverage Δ
internal/controllers/vgmanager/controller.go 75.26% <100.00%> (ø)
internal/controllers/vgmanager/status.go 80.70% <100.00%> (ø)
internal/controllers/vgmanager/lvm/lvm.go 99.10% <92.00%> (-0.90%) ⬇️
internal/tagging/tagging.go 83.01% <82.97%> (+16.35%) ⬆️

@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-26768-release-4.15-correction branch from b13d261 to fd05cf8 Compare February 2, 2024 12:47
@jakobmoellerdev jakobmoellerdev changed the title OCPBUGS-26768: fix: more sophisticated tagging migration [release-4.15] OCPBUGS-26768: fix: more sophisticated tagging migration Feb 2, 2024
@jakobmoellerdev
Copy link
Contributor Author

/test precommit-check

@jakobmoellerdev
Copy link
Contributor Author

/test lvm-operator-e2e-aws-sno

@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-26768-release-4.15-correction branch from b97c3a1 to b0cbe86 Compare February 2, 2024 17:24
Signed-off-by: Jakob Möller <[email protected]>
@jakobmoellerdev jakobmoellerdev force-pushed the OCPBUGS-26768-release-4.15-correction branch from b0cbe86 to 197fc7e Compare February 2, 2024 20:12
Copy link
Contributor

openshift-ci bot commented Feb 2, 2024

@jakobmoellerdev: 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.

@suleymanakbas91
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Feb 4, 2024
@suleymanakbas91 suleymanakbas91 changed the title [release-4.15] OCPBUGS-26768: fix: more sophisticated tagging migration [release-4.15] OCPBUGS-28966: fix: more sophisticated tagging migration Feb 4, 2024
@openshift-ci-robot openshift-ci-robot removed the jira/severity-important Referenced Jira bug's severity is important for the branch this PR is targeting. label Feb 4, 2024
@openshift-ci-robot
Copy link

@jakobmoellerdev: This pull request references Jira Issue OCPBUGS-28966, which is invalid:

  • expected Jira Issue OCPBUGS-28966 to depend on a bug targeting a version in 4.16.0 and in one of the following states: MODIFIED, ON_QA, VERIFIED, but no dependents were found

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

This PR solves 2 main issues:

  1. The tagging migration used lvs that were already prefiltered by the tag
  2. The tagging migration was using inefficient querying and always ran for all lvs, that now changed.

The test cases didnt reach all the paths so we didnt catch that.

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 openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci-robot openshift-ci-robot added the jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. label Feb 4, 2024
@suleymanakbas91 suleymanakbas91 merged commit 7fd7c35 into openshift:release-4.15 Feb 4, 2024
6 of 7 checks passed
@openshift-ci-robot
Copy link

@jakobmoellerdev: Jira Issue OCPBUGS-28966: All pull requests linked via external trackers have merged:

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

In response to this:

This PR solves 2 main issues:

  1. The tagging migration used lvs that were already prefiltered by the tag
  2. The tagging migration was using inefficient querying and always ran for all lvs, that now changed.

The test cases didnt reach all the paths so we didnt catch that.

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 openshift-eng/jira-lifecycle-plugin repository.

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/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. jira/severity-moderate Referenced Jira bug's severity is moderate 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants