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

Ensure pkg/install do not import pkg/plugin/framework #8180

Closed

Conversation

kaovilai
Copy link
Contributor

@kaovilai kaovilai commented Sep 3, 2024

Signed-off-by: Tiger Kaovilai tkaovila@redhat.com

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Fixes #8157 (hopefully forever)
Rebased after #8145. This passes with #8145 and moving images.go away from /internal/velero which contain imports to pkg/plugin/framework which imports many cloud sdks. (created #8207)

This PR can be replaced or supplemented by #8208

Please indicate you've done the following:

  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Created a changelog file or added /kind changelog-not-required as a comment on this pull request.
  • Updated the corresponding documentation in site/content/docs/main.

@kaovilai
Copy link
Contributor Author

kaovilai commented Sep 3, 2024

/kind changelog-not-required

@github-actions github-actions bot added the kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes label Sep 3, 2024
@kaovilai kaovilai force-pushed the unit-test-dependency-installpkg branch from c0635ae to 30a9224 Compare September 3, 2024 15:29
@kaovilai kaovilai marked this pull request as ready for review September 10, 2024 22:11
@kaovilai kaovilai force-pushed the unit-test-dependency-installpkg branch from 30a9224 to 55d1b0b Compare September 10, 2024 22:11
@kaovilai
Copy link
Contributor Author

looks like 8145 ultimately failed to pass this test after some force pushes later. moving back to draft.

@kaovilai kaovilai marked this pull request as draft September 10, 2024 22:45
@kaovilai kaovilai changed the title Unit test to ensure install pkg do not import cloud providers. Ensure install pkg do not import cloud providers. Sep 10, 2024
@kaovilai kaovilai force-pushed the unit-test-dependency-installpkg branch from 4dd01bf to 21b6dac Compare September 10, 2024 23:23
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 59.19%. Comparing base (46801a0) to head (27aa8e5).
Report is 29 commits behind head on main.

Files with missing lines Patch % Lines
pkg/cmd/cli/install/install.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8180      +/-   ##
==========================================
- Coverage   59.21%   59.19%   -0.03%     
==========================================
  Files         367      367              
  Lines       30708    30775      +67     
==========================================
+ Hits        18184    18216      +32     
- Misses      11069    11102      +33     
- Partials     1455     1457       +2     

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

blackpiglet
blackpiglet previously approved these changes Sep 11, 2024
@kaovilai
Copy link
Contributor Author

This PR becomes unnecessary if #8208 merges.

pkg/install/install_test.go Outdated Show resolved Hide resolved
@kaovilai kaovilai changed the title Ensure install pkg do not import cloud providers. Ensure pkg/install do not import pkg/plugin/framework Sep 11, 2024
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Signed-off-by: Tiger Kaovilai <passawit.kaovilai@gmail.com>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
@kaovilai kaovilai force-pushed the unit-test-dependency-installpkg branch from 95ac94d to 27aa8e5 Compare September 12, 2024 15:31
@ywk253100
Copy link
Contributor

Closing this one as #8208 is merged

@ywk253100 ywk253100 closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has-unit-tests kind/changelog-not-required PR does not require a user changelog. Often for docs, website, or build changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New dependencies relates to aws and azure sdk on Velero 1.14
3 participants