-
Notifications
You must be signed in to change notification settings - Fork 22
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
Refactoring container crate into container family #2199
base: main
Are you sure you want to change the base?
Conversation
Created a staging project on OBS for Tumbleweed: home:defolos:BCI:Staging:Tumbleweed:Tumbleweed-2199 Build ResultsRepository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=tumbleweed TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/tumbleweed/tumbleweed-2199/ tox -- -n auto The following images can be pulled from the staging project:
|
Created a staging project on OBS for 7: home:defolos:BCI:Staging:SLE-15-SP7:7-2199 Build ResultsRepository
Repository
Repository
Repository
Repository
Repository
Repository
Repository
Build succeeded ✅ To run BCI-tests against this PR, use the following command: OS_VERSION=15.7 TARGET=custom BASEURL=registry.opensuse.org/home/defolos/bci/staging/sle-15-sp7/7-2199/ tox -- -n auto The following images can be pulled from the staging project:
|
Created a staging project on OBS for 6: home:defolos:BCI:Staging:SLE-15-SP6:6-2199 |
c08a628
to
48bed4b
Compare
48bed4b
to
18a6af7
Compare
18a6af7
to
cf3898a
Compare
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 not yet what I was anticipating, currently this is just a bit more a rename of the ContainerCrate
class.
What I'd like to see (eventually, we don't have to get there in a single PR):
- crate/family shouldn't start mutating containers passed to it
- the bot & package file writing code should switch to use ContainerFamily directly
Also, this currently is breaking multibuild generation: deb6b4a#diff-25c1eeff6e17b5c4eaac44d821f42827a798b8c8d36f6ef005edb1ae7771f041R84
cf3898a
to
70eb2a9
Compare
70eb2a9
to
dd424ad
Compare
dd424ad
to
c3d28ef
Compare
@@ -1435,6 +1441,85 @@ def prepare_template(self) -> None: | |||
pass | |||
|
|||
|
|||
class ContainerFamily: |
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.
Hey @rcmadhankumar . I do like the new name suggestion "Family" instead of "Crate". However I was going into a slightly different route in #2085 - perhaps it would make sense to revive that with the updated name and rebase it instead?
I've spent many hours trying to split the dreaded "package" module into smaller, more modular and more consumable chunks, so can we please keep this Family class separate and independent of a several thousand line long module already? I understand there are recursive imports with the type annotations. we either have to omit them or use the string form to avoid them though rather than piling it together into one module.
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.
yes, there were some recursive import issues, i will try moving it out.
This is what #2085 is doing.. |
As per the implementation in container family, if container has more than one flavors, then we need set version_in_uid to false. Only then multibuild content will be generated. Tome cat containers doesn't have this attribute set, do we need to set for tomcat containers or any changes needed in check version in uid function?
Are we expecting something like this?
there were looping imports and that's why i moved it inside a single file, but i think i will work on moving it out as if there is a way. |
No description provided.