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

Fix filtering of successors bundles #480

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Oct 23, 2023

Description

Closes #477

Reviewer Checklist

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

@m1kola m1kola added kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Oct 23, 2023
@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 Oct 23, 2023
@codecov
Copy link

codecov bot commented Oct 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3fc434d) 83.64% compared to head (74a2810) 83.52%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #480      +/-   ##
==========================================
- Coverage   83.64%   83.52%   -0.12%     
==========================================
  Files          23       23              
  Lines         862      868       +6     
==========================================
+ Hits          721      725       +4     
- Misses         96       97       +1     
- Partials       45       46       +1     
Flag Coverage Δ
e2e 64.86% <50.00%> (-0.69%) ⬇️
unit 78.44% <100.00%> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...al/resolution/variablesources/installed_package.go 71.42% <100.00%> (+3.98%) ⬆️

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@m1kola m1kola marked this pull request as ready for review October 23, 2023 15:17
@m1kola m1kola requested a review from a team as a code owner October 23, 2023 15:17
@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 Oct 23, 2023
Previously we were not filtering bundles by package name.
This could cause the code to select incorrect successors
becuase we were only filtering all bundle by versions.

With this change we make sure that we are selecting bundles
from the same package.

Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@m1kola
Copy link
Member Author

m1kola commented Oct 23, 2023

Updated commit message to have a bit more details.

Copy link
Contributor

@dtfranz dtfranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@dtfranz dtfranz added this pull request to the merge queue Oct 23, 2023
Merged via the queue into operator-framework:main with commit e9733c5 Oct 23, 2023
11 of 12 checks passed
@m1kola m1kola deleted the fix_filtering branch October 24, 2023 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect filtering of bundles for semver upgrades
2 participants