Skip to content

test: retry the crash sweep's deletes on CalDAV - #64

Merged
tobixen merged 2 commits into
mainfrom
conformance-sweep-retry
Nov 25, 2026
Merged

tobixen merged 2 commits into
mainfrom
conformance-sweep-retry

Conversation

@tobixen

@tobixen tobixen commented Nov 25, 2026

Copy link
Copy Markdown
Member

Commit message:

test: retry the crash sweep's deletes on CalDAV

The sweep in borrow() deleted a dead run's leftovers in one try, so a
DELETE that robur dropped turned into a setup error for whatever test
borrowed the collection.  The deletes now go through a sweep() hook,
which the CalDAV test module overrides to retry the way seed() retries
writes; gone on a retry is taken for a lost answer to a DELETE that
went through.

Prompt: [pick from the task list: "calendaring: live conformance run on
  a server that cannot delete calendars; retry the sweep's deletes"]

Assisted-By: Claude Opus 5.5
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>

Tested: the unit tests above, and a live conformance run against a Synology server (cannot delete calendars), which exercises the kept-collection path: 266 passed, 1 expected skip. That run had no stale leftovers, so the sweep deleted nothing live.

🤖 Generated with Claude Code

API_DESIGN §3.5 said a backend remembers the STATUS and PRIORITY it
wrote next to native_status and native_priority and compares on save,
but no field held that value.  The section now puts it in a private
_native_basis on the task, handed over as StoredObject.native_basis,
says why it is not kept in the backend or recomputed from .native, and
what a direct assignment to a native value means.

This came up in the review of
#5.

Prompt: [pick from the task list: "calendaring: say where the
  remembered native STATUS/PRIORITY lives (API_DESIGN §3.5)"]

Assisted-By: Claude Opus 5.5
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
The sweep in borrow() deleted a dead run's leftovers in one try, so a
DELETE that robur dropped turned into a setup error for whatever test
borrowed the collection.  The deletes now go through a sweep() hook,
which the CalDAV test module overrides to retry the way seed() retries
writes; gone on a retry is taken for a lost answer to a DELETE that
went through.

Prompt: [pick from the task list: "calendaring: live conformance run on
  a server that cannot delete calendars; retry the sweep's deletes"]

Assisted-By: Claude Opus 5.5
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen force-pushed the conformance-sweep-retry branch from 5e4945e to c5dc313 Compare November 25, 2026 04:54
@tobixen
tobixen merged commit c5dc313 into main Nov 25, 2026
8 checks passed
@tobixen
tobixen deleted the conformance-sweep-retry branch November 25, 2026 05:01
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