-
Notifications
You must be signed in to change notification settings - Fork 72
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
Allow skipping of update phases when they were already executed #931
Conversation
cc82318
to
330b2fb
Compare
def with_non_empty_scenario(phase) | ||
next_scenario = scenario(phase) | ||
next_scenario = find_scenario(phase) |
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 was unused, so nobody noticed
rollback_needed = scenario(:pre_migrations).steps.any? { |s| s.executed? && s.success? } | ||
rollback_needed = find_scenario(:pre_migrations).steps.any? { |s| s.executed? && s.success? } |
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.
I am amazed this was not noticed
4454faa
to
93ae9d8
Compare
if skip?(phase) | ||
skip_phase(phase) | ||
else | ||
run_phase(phase) | ||
end |
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.
Due to 3a2fa00 there is currently no way to re-run a skipped phase tho :(
I tested with the packit build on el8, which helps solve the issue.
|
Fixes: 5c59f9c