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

⚠: Ambiguous Resolution #1165

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

dtfranz
Copy link
Contributor

@dtfranz dtfranz commented Aug 22, 2024

Changes the behavior of catalog resolution by returning an error when multiple packages are available from multiple catalogs.

Users will need to use forthcoming label selectors to narrow down catalogs when this occurs.

Closes #1110

Description

Reviewer Checklist

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

@dtfranz dtfranz requested a review from a team as a code owner August 22, 2024 15:09
Copy link

netlify bot commented Aug 22, 2024

Deploy Preview for olmv1 ready!

Name Link
🔨 Latest commit 132c34d
🔍 Latest deploy log https://app.netlify.com/sites/olmv1/deploys/66c7aaeea37cbf0008c2fe24
😎 Deploy Preview https://deploy-preview-1165--olmv1.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

internal/resolve/catalog.go Outdated Show resolved Hide resolved
@tmshort
Copy link
Contributor

tmshort commented Aug 22, 2024

You need to update the test-e2e, which will be a pain in the ass until the selector is available (see #1164) so we might want to merge that one in first...

@tmshort
Copy link
Contributor

tmshort commented Aug 22, 2024

You might want to rebase now that #1164 is merged.

Changes the behavior of catalog resolution by returning an error when multiple packages are available from multiple catalogs.

Signed-off-by: dtfranz <dfranz@redhat.com>
@dtfranz
Copy link
Contributor Author

dtfranz commented Aug 22, 2024

PR has been rebased and updated with @tmshort 's e2e test.

Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 78.94737% with 4 lines in your changes missing coverage. Please review.

Project coverage is 75.28%. Comparing base (245e580) to head (132c34d).
Report is 2 commits behind head on main.

Files Patch % Lines
internal/resolve/catalog.go 78.94% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1165      +/-   ##
==========================================
- Coverage   75.42%   75.28%   -0.15%     
==========================================
  Files          35       35              
  Lines        1925     1934       +9     
==========================================
+ Hits         1452     1456       +4     
- Misses        330      332       +2     
- Partials      143      146       +3     
Flag Coverage Δ
e2e 58.32% <78.94%> (+0.19%) ⬆️
unit 50.72% <78.94%> (-0.19%) ⬇️

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

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

Copy link
Contributor

@tmshort tmshort left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 22, 2024
@dtfranz dtfranz added this pull request to the merge queue Aug 22, 2024
Merged via the queue into operator-framework:main with commit 2391092 Aug 22, 2024
18 of 19 checks passed
@skattoju skattoju mentioned this pull request Sep 25, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on ambiguous resolution + test
2 participants