Skip to content
This repository was archived by the owner on Feb 6, 2025. It is now read-only.

Clarify some code #1070

Merged
merged 2 commits into from
Jul 10, 2020
Merged

Clarify some code #1070

merged 2 commits into from
Jul 10, 2020

Conversation

evrardjp
Copy link
Contributor

Without this patch, one might be confused by the meaning of
restart, and why we are doing actions twice.

This patch makes it clear that the method used to evaluate
if zypper should run twice is in fact dependent of zypper itself
and it's return code (not on some kind of obscure code output).
It should be easier to follow/review with this kind of wording.

It also removes useless methods, to be more succint.

@evrardjp
Copy link
Contributor Author

Acceptance test failure fix: #1066

@davidcassany
Copy link
Collaborator

LGTM

davidcassany
davidcassany previously approved these changes Apr 29, 2020
@evrardjp
Copy link
Contributor Author

Rebased.

@evrardjp evrardjp force-pushed the cleanup-skuba-update-code branch from bf5483f to f0ac0e8 Compare June 15, 2020 06:10
@evrardjp
Copy link
Contributor Author

The problem in update acceptance should be fixed with #1169 when the CI is back green.

Klaven
Klaven previously approved these changes Jun 30, 2020
Copy link

@Klaven Klaven left a comment

Choose a reason for hiding this comment

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

/lgtm assuming tests pass! thanks for cleaning this up and making it more clear.

@flavio
Copy link
Member

flavio commented Jul 7, 2020

Overall LGTM, but please take a look at the test that is failing. I suspect it might not be related with this change, but I'm not 100% sure about that

evrardjp added 2 commits July 8, 2020 13:11
This is not a problem to use functions, variables for defining
the version. However they burden the reviewer, which need
to jumping through things, where it's not really necessary.
This simplifies the review and the code.
Without this patch, one might be confused by the meaning of
restart, and why we are doing actions twice.

This patch makes it clear that the method used to evaluate
if zypper should run twice is in fact dependent of zypper itself
and it's return code (not on some kind of obscure code output).
It should be easier to follow/review with this kind of wording.
@evrardjp
Copy link
Contributor Author

evrardjp commented Jul 8, 2020

Rebased. This should fix the broken test.

Copy link
Contributor

@mssola mssola left a comment

Choose a reason for hiding this comment

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

LGTM

@jenting jenting merged commit 92d79e8 into SUSE:master Jul 10, 2020
@evrardjp evrardjp deleted the cleanup-skuba-update-code branch July 10, 2020 06:46
chentex pushed a commit to chentex/skuba-1 that referenced this pull request Jul 20, 2020
* Remove unnecessary methods/variables for extracting version

This is not a problem to use functions, variables for defining
the version. However they burden the reviewer, which need
to jumping through things, where it's not really necessary.
This simplifies the review and the code.

* Clarify "restart"

Without this patch, one might be confused by the meaning of
restart, and why we are doing actions twice.

This patch makes it clear that the method used to evaluate
if zypper should run twice is in fact dependent of zypper itself
and it's return code (not on some kind of obscure code output).
It should be easier to follow/review with this kind of wording.

Co-authored-by: Jean-Philippe Evrard <jevrard@suse.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants