Skip to content

Stabilize Windows reset-preflight database snapshot test #1223

Open

Description

@AnthonyRonning

The current master Windows Agent run failed store::lifecycle::tests::refused_reset_preflight_never_publishes_intent_or_retires_source at the raw main-database byte comparison: 641 passed, 1 failed, 3 ignored.

Failing source: 5d916e9bdf00752fdff70ec2c551ffc1aabd0508. Failing run/job.

The fixture snapshots the main database while its background WAL checkpointer is active. The assertion output shows a plaintext database growing from 4,096 bytes / 1 page to 237,568 bytes / 58 pages, with schema cookie 0 → 41. This strongly fits already-committed WAL frames being checkpointed between snapshots. Source confirms the foreign-file refusal happens before reset intent, handle closure or generation retirement. This failure does not establish production database corruption.

The fix is already included in PR #1222: stop and join the fixture's existing checkpoint worker before taking the baseline. SQL handles, key and store state remain open. Production SQL behavior is unchanged; no sleeps, retries or assertions were removed.

All original checks remain, including raw-byte equality, unchanged state/generation, no reset intent or retirement artifacts, foreign-file integrity and cold-reopen account survival. The original failing iteration did not reach the later cold-reopen assertions.

As of October 22 (Pacific), #1222's Windows workspace build/tests passed; its final static-provider check is pending. The old master failure remains recorded.

No duplicate implementation is needed. Broader auditing of other physical-file comparisons against live WAL stores can be handled separately.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions