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

Refactor disk builder for use with context manager #2434

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

schaefi
Copy link
Collaborator

@schaefi schaefi commented Jan 17, 2024

In preparation to further context manager related changes in VolumeManager, LuksDevice, RaidDevice and more the disk builder code which uses these classes needs to be refactored beforehand to allow switching to context manager based cascading of the storage device classes. This commit does the refactoring and is related to Issue #2412

@schaefi schaefi requested a review from dcermak January 17, 2024 16:30
@schaefi schaefi self-assigned this Jan 17, 2024
@schaefi
Copy link
Collaborator Author

schaefi commented Jan 17, 2024

@dcermak I put you as a reviewer here but I think this sort of changes are not really reviewable. I plan to create a Staging release with this changes and let the integration tests run to see of any of them fails. So if you immediately spot something stupid that I have done feel free to comment :) Thanks much

kiwi/builder/disk.py Outdated Show resolved Hide resolved
@schaefi schaefi force-pushed the refactor_disk_builder_for_further_context_manager branch from 5dcd0cd to 3df46c7 Compare January 17, 2024 21:00
kiwi/builder/disk.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@dcermak dcermak left a comment

Choose a reason for hiding this comment

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

Overall LGTM, thanks for this. I've added a few comments but nothing really substantial

kiwi/builder/disk.py Show resolved Hide resolved
kiwi/builder/disk.py Outdated Show resolved Hide resolved
kiwi/builder/disk.py Outdated Show resolved Hide resolved
kiwi/builder/disk.py Outdated Show resolved Hide resolved
In preparation to further context manager related changes
in VolumeManager, LuksDevice, RaidDevice and more the
disk builder code which uses these classes needs to be
refactored beforehand to allow switching to context
manager based cascading of the storage device classes.
This commit does the refactoring and is related to
Issue #2412
@schaefi schaefi force-pushed the refactor_disk_builder_for_further_context_manager branch from 9ad8a51 to a1783ff Compare January 18, 2024 14:46
@schaefi schaefi merged commit 869b280 into main Jan 18, 2024
13 checks passed
@schaefi schaefi deleted the refactor_disk_builder_for_further_context_manager branch January 18, 2024 14:52
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.

2 participants