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

Feature/bseng 1937/upgrade unit by unit #237

Merged

Conversation

rgildein
Copy link
Contributor

@rgildein rgildein commented Feb 7, 2024

Add UnitUpgradeStep and is_unit_upgrade_step, also use sub_steps as
property to prevent defining it as not list of BaseStep's. Raising
TypeError in add_step if object is not based on BaseStep.

Use UnitUpgradeStep, we can upgrade packages in individual step for each unit and
run these steps in parallel or sequentially. Right now, it's run
sequentially, so no change in previous approach.

rgildein and others added 2 commits February 7, 2024 14:46
Add UnitUpgradeStep and is_unit_upgrade_step, also use sub_steps as
property to prevent defining it as not list of BaseStep's. Raising
TypeError in add_step if object is not based on BaseStep.
Like this, we can upgrade packages in individual step for each unit and
run these steps in parallel or sequentially. Right now, it's run
sequentially, so no change in previous approach.
@rgildein rgildein added the enhancement New feature or request label Feb 7, 2024
@rgildein rgildein self-assigned this Feb 7, 2024
@rgildein rgildein requested review from a team, Pjack, aieri, agileshaw and jneo8 February 7, 2024 14:02
Copy link
Contributor

@agileshaw agileshaw left a comment

Choose a reason for hiding this comment

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

Looks good, and glad that we are updating documentation to align. I just have one question.

cou/steps/__init__.py Outdated Show resolved Hide resolved
tests/unit/apps/test_auxiliary.py Outdated Show resolved Hide resolved
cou/steps/__init__.py Outdated Show resolved Hide resolved
@rgildein rgildein requested a review from agileshaw February 7, 2024 17:21
Copy link
Member

@gabrielcocenza gabrielcocenza left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@agileshaw agileshaw left a comment

Choose a reason for hiding this comment

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

LGTM

@rgildein rgildein merged commit b3df76a into canonical:main Feb 8, 2024
5 checks passed
@rgildein rgildein deleted the feature/BSENG-1937/upgrade-unit-by-unit branch February 8, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants