Skip to content

Allow retrying failed run-step skips - #476

Merged
adamruzicka merged 1 commit into
Dynflow:masterfrom
jakduch:fix/390-finalize-skip-recovery
Sep 25, 2026
Merged

adamruzicka merged 1 commit into
Dynflow:masterfrom
jakduch:fix/390-finalize-skip-recovery

Conversation

@jakduch

@jakduch jakduch commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #390

When skipping a failed run step also fails, its finalize step is already marked as skipped. Retrying the recovery currently attempts the invalid skipped -> skipped transition and leaves the execution plan unrecoverable.

Make FinalizeStep#mark_to_skip idempotent and cover retrying the failed skip with a regression test.

Verified with:

  • bundle exec ruby -Itest test/rescue_test.rb
  • bundle exec rubocop lib/dynflow/execution_plan/steps/finalize_step.rb test/rescue_test.rb
  • bundle exec rake test on Ruby 3.3 / SQLite (403 runs, 1491 assertions)

@adamruzicka adamruzicka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is fine, that one failing test should be addressed on master already

@adamruzicka
adamruzicka merged commit dc28b82 into Dynflow:master Sep 25, 2026
11 of 12 checks passed
@adamruzicka

Copy link
Copy Markdown
Contributor

Thank you @jakduch !

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.

Steps in finalize get skipped even if skipping a step in run phase fails

2 participants