Skip to content

test: bound archive lifecycle state-machine verification #319

Closed

Description

@Sinity

Problem

The full local verification baseline can hang in tests/unit/storage/test_repository_state_machine.py::TestArchiveLifecycle::runTest.

Observed during the message-role filter cleanup:

uv run devtools verify

The run reached pytest and then stayed in one xdist worker on:

tests/unit/storage/test_repository_state_machine.py::TestArchiveLifecycle::runTest

A direct single-test repro also failed to complete within 90 seconds:

timeout 90s uv run pytest -q -n0 tests/unit/storage/test_repository_state_machine.py::TestArchiveLifecycle::runTest

Scope

  • Make the archive lifecycle state-machine test bounded and diagnostically useful.
  • Preserve its coverage intent rather than deleting or weakening it blindly.
  • Ensure devtools verify cannot hang indefinitely on this test.

Acceptance Criteria

  • The state-machine test either completes within a predictable local budget or reports a useful failure.
  • devtools verify can complete locally without manual intervention.
  • Any Hypothesis settings or fixture-level timeouts are documented in the test where they are applied.
  • The fix is verified with the direct state-machine test and devtools verify.

Activity

  1. added 4 commits that reference this issue on Apr 22, 2026
    8192eb3
    6fb036c
    c08be9d
    2a4a36a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions