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

Charmhub/address charmhub limitiations #24

Conversation

addyess
Copy link
Member

@addyess addyess commented Feb 4, 2022

  • improve API used to fetch charmhub info
  • handle bundle resource revisions to override the charm default revision on non-snap based resources

@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2022

Codecov Report

Merging #24 (4a7c388) into master (a5ba085) will increase coverage by 0.90%.
The diff coverage is 95.16%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
+ Coverage   85.63%   86.54%   +0.90%     
==========================================
  Files           1        1              
  Lines         362      379      +17     
==========================================
+ Hits          310      328      +18     
+ Misses         52       51       -1     
Flag Coverage Δ
unittests 86.54% <95.16%> (+0.90%) ⬆️

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

Impacted Files Coverage Δ
shrinkwrap.py 86.54% <95.16%> (+0.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a5ba085...4a7c388. Read the comment docs.

… into charmhub/address-charmhub-limitiations
@addyess addyess force-pushed the charmhub/address-charmhub-limitiations branch 4 times, most recently from ca54c4b to 2145632 Compare February 4, 2022 19:03
@addyess
Copy link
Member Author

addyess commented Feb 4, 2022

Addresses #10 as well

@addyess addyess force-pushed the charmhub/address-charmhub-limitiations branch from 2145632 to 4a7c388 Compare February 4, 2022 19:39
Copy link
Member

@kwmonroe kwmonroe left a comment

Choose a reason for hiding this comment

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

LGTM. Really nice job handling resources for both stores as well as handling charm channels vs charm snap channels.

@@ -332,9 +326,38 @@ def download(self):
check_call(shlx(f"mv {tgz} {snap_target}"))


class ResourceDownloader(Downloader):
URL = "https://api.jujucharms.com/charmstore/v5"
class Resource(namedtuple("Resource", "name, type, path, revision, url_format")):
Copy link
Member

Choose a reason for hiding this comment

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

💯

@kwmonroe kwmonroe merged commit a58e336 into charmed-kubernetes:master Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants