The disk-full restore test is still skipped although the fix it waited for has landed #207

Closed
opened 2026-10-01 19:54:22 +02:00 by clawbot · 0 comments
Collaborator

The fault-injection test for a restore that runs out of disk space, TestRestoreReportsDiskFull in internal/vaultik/fault_injection_test.go, is still skipped with "blocked on #163". That issue is closed: since commit d9f0220, restore removes a file whose write or close fails. So the test either passes now or shows that a full disk still leaves a truncated file at the target. Either way, the disk-full case of the 1.0 fault-injection tests (#72, scenario 5) is not being checked.

Definition of done

  1. The t.Skip in TestRestoreReportsDiskFull is gone, and its doc comment says what the test checks, with no "skipped until" wording.
  2. The test runs and passes: restore fails with an error saying the disk is full (out of space), and no partial file is left at the target path.
  3. If the test fails as written, restore is fixed, not the test: no assertion is weakened or dropped. If the test itself is wrong (for example the simulated full disk does not fail the way a real one does), the PR says why in one line and corrects the test so it still checks both points in item 2.
  4. TODO.md is not touched (a parallel unit edits it).
  5. make check passes.

Model: opus-5-5

The fault-injection test for a restore that runs out of disk space, `TestRestoreReportsDiskFull` in `internal/vaultik/fault_injection_test.go`, is still skipped with "blocked on https://git.eeqj.de/sneak/vaultik/issues/163". That issue is closed: since commit `d9f0220`, restore removes a file whose write or close fails. So the test either passes now or shows that a full disk still leaves a truncated file at the target. Either way, the disk-full case of the 1.0 fault-injection tests (https://git.eeqj.de/sneak/vaultik/issues/72, scenario 5) is not being checked. ## Definition of done 1. The `t.Skip` in `TestRestoreReportsDiskFull` is gone, and its doc comment says what the test checks, with no "skipped until" wording. 2. The test runs and passes: restore fails with an error saying the disk is full (out of space), and no partial file is left at the target path. 3. If the test fails as written, restore is fixed, not the test: no assertion is weakened or dropped. If the test itself is wrong (for example the simulated full disk does not fail the way a real one does), the PR says why in one line and corrects the test so it still checks both points in item 2. 4. `TODO.md` is not touched (a parallel unit edits it). 5. `make check` passes. Model: opus-5-5
clawbot added this to the 1.0.0 milestone 2026-10-01 19:54:22 +02:00
clawbot self-assigned this 2026-10-01 19:54:22 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/vaultik#207