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

🌱 Part 3: Reduce number of variable sources. Installed packages #499

Merged

Conversation

m1kola
Copy link
Member

@m1kola m1kola commented Oct 31, 2023

Description

Spliting #460 into smaller chunks. Related to #437

In this part I extract code related to creating installed package variables from InstalledPackageVariableSource and BundleDeploymentVariableSource into a separate function.

InstalledPackageVariableSource gets removed in this PR. BundleDeploymentVariableSource will be removed later in #501

Reviewer Checklist

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

@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 31, 2023
@m1kola m1kola changed the title Part 2: Reduce number of variable sources Part 3: Reduce number of variable sources Oct 31, 2023
@m1kola m1kola changed the title Part 3: Reduce number of variable sources Part 3: Reduce number of variable sources. Required packages Oct 31, 2023
@m1kola m1kola changed the title Part 3: Reduce number of variable sources. Required packages Part 3: Reduce number of variable sources. Installed packages Oct 31, 2023
@m1kola m1kola force-pushed the shrink_variable_sources_p3 branch 3 times, most recently from fd46b2f to 3f60963 Compare November 2, 2023 17:10
@m1kola
Copy link
Member Author

m1kola commented Nov 3, 2023

Will keep in draft for now. I think "[FAIL] Operator Install when An operator is installed from an operator catalog [It] resolves again when a new catalog is available" failure is a legit one. From a quick look I do not see what is causing it.

Everything else seems to be a result of it (looks like some dependency between e2e tests).

@m1kola m1kola force-pushed the shrink_variable_sources_p3 branch 3 times, most recently from 5dabe8f to deb7a6f Compare November 3, 2023 16:44
@m1kola
Copy link
Member Author

m1kola commented Nov 3, 2023

Will keep in draft for now. I think "[FAIL] Operator Install when An operator is installed from an operator catalog [It] resolves again when a new catalog is available" failure is a legit one. From a quick look I do not see what is causing it.

it was legit issue: I was doing things in incorrect order in BundleDeploymentVariableSource. Fixed now.

Everything else seems to be a result of it (looks like some dependency between e2e tests).

Created an issue for this: #512

@m1kola m1kola marked this pull request as ready for review November 3, 2023 16:57
@m1kola m1kola requested a review from a team as a code owner November 3, 2023 16:57
@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 Nov 3, 2023
Signed-off-by: Mikalai Radchuk <mradchuk@redhat.com>
@ncdc
Copy link
Member

ncdc commented Nov 6, 2023

@joelanford any other comments?

Copy link

codecov bot commented Nov 6, 2023

Codecov Report

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

Comparison is base (55d54ab) 84.41% compared to head (cd784a0) 84.24%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #499      +/-   ##
==========================================
- Coverage   84.41%   84.24%   -0.18%     
==========================================
  Files          23       23              
  Lines         892      895       +3     
==========================================
+ Hits          753      754       +1     
- Misses         95       96       +1     
- Partials       44       45       +1     
Flag Coverage Δ
e2e 65.69% <58.33%> (-0.23%) ⬇️
unit 79.14% <63.88%> (-0.41%) ⬇️

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

Files Coverage Δ
...al/resolution/variablesources/bundle_deployment.go 100.00% <100.00%> (+21.05%) ⬆️
...al/resolution/variablesources/installed_package.go 65.38% <59.25%> (-8.53%) ⬇️

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

@ncdc ncdc changed the title Part 3: Reduce number of variable sources. Installed packages 🌱 Part 3: Reduce number of variable sources. Installed packages Nov 6, 2023
@joelanford joelanford added this pull request to the merge queue Nov 6, 2023
Merged via the queue into operator-framework:main with commit 774ab74 Nov 6, 2023
13 of 15 checks passed
@m1kola m1kola deleted the shrink_variable_sources_p3 branch November 6, 2023 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants