-
Notifications
You must be signed in to change notification settings - Fork 8
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
apt: enable uca repositories #52
Conversation
Codecov Report
@@ Coverage Diff @@
## main #52 +/- ##
==========================================
+ Coverage 82.48% 83.96% +1.48%
==========================================
Files 12 13 +1
Lines 685 786 +101
Branches 157 182 +25
==========================================
+ Hits 565 660 +95
- Misses 88 89 +1
- Partials 32 37 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good already, I am bit worried about removing keyring validation which was the main thing that was worked on to bring the package-repositories functionality to more craft applications
87b0749
to
8ba3858
Compare
In last push:
There's one last thing, currently I template the sources file with Seems like there's a bug on the Rockcraft side where the pull stages are not re-triggered after an update on the repositories ? will look more into it on monday |
Thanks for the work! Before I get on the nitty-gritty of the code review I think we should discuss the
I would very much like to have the cloud-archive repo be consistent with the other repo types (key in /etc/apt/keyrings, referenced by source.list file in /etc/apt/sources.list.d/). I think we could support that if the keyring is available in keyserver.ubuntu.com, @gboutry do you know if the key is there? |
Yes, it looks like the key is present at http://keyserver.ubuntu.com/pks/lookup?search=391A9AA2147192839E9DB0315EDB1B62EC4926EA&fingerprint=on&op=index |
This commit adds the possibility to enable repositories from the Ubuntu Cloud Archive. The Ubuntu Cloud Archive is a repository that enables users to install backported and patched versions of Openstack on Ubuntu LTS releases.
In last fp:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very nice! I think the only thing left is, for sanity's sake, to test this in rockcraft itself (via a spread test)
I can do it for you but I'll need a valid cloud
repo and the name of a package it contains; do you have these handy?
Thanks again!
Thanks @tigarmo, of course. In
In
Note that Soon there will be |
Thanks! Here's a test case that failed in rockcraft but is missing in craft-archives (missing from def test_validate_repository_empty_dict():
with pytest.raises(pydantic.ValidationError):
validate_repository({}) |
- Fix parsing control flow - Add empty dict test case
Indeed, there was an issue in the control flow. I fixed it and added this test case! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The builds for rockcraft and snapcraft passed; I think the remaining missing coverage is fine because we should toss all of that duplicated "manual validation" soon anyway (there's an issue for it).
So LGTM! Thanks again!
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
tox
?lint-pyright
fails, no logs about whyExample of rockcraft.yaml: