Skip to content

fix(cluster): respin on pytest outcomes too - #3745

Merged
mkoura merged 1 commit into
masterfrom
respin_on_base_exception
Oct 6, 2026
Merged

mkoura merged 1 commit into
masterfrom
respin_on_base_exception

Conversation

@mkoura

@mkoura mkoura commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

respin_on_failure caught only Exception, so pytest.skip, pytest.xfail and pytest.fail raised inside the guard (directly or from helpers like blockers.GH.finish_test) left the changed state for the following tests. E.g. test_committee_min_size xfailing on ledger#4204 handed over the instance with resigned CC members.

Catch BaseException except KeyboardInterrupt, drop the now redundant set_needs_respin() calls in the Leios quorum test and document the behavior in agent docs.

`respin_on_failure` caught only `Exception`, so `pytest.skip`,
`pytest.xfail` and `pytest.fail` raised inside the guard (directly or
from helpers like `blockers.GH.finish_test`) left the changed state for
the following tests. E.g. `test_committee_min_size` xfailing on
ledger#4204 handed over the instance with resigned CC members.

Catch `BaseException` except `KeyboardInterrupt`, drop the now
redundant `set_needs_respin()` calls in the Leios quorum test and
document the behavior in agent docs.
@mkoura
mkoura requested a review from saratomaz as a code owner October 6, 2026 13:34
@mkoura
mkoura merged commit bbaf0fe into master Oct 6, 2026
3 checks passed
@mkoura
mkoura deleted the respin_on_base_exception branch October 6, 2026 13:37
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.

1 participant