Skip to content

test: retry the teardown's deletes on CalDAV - #65

Merged
tobixen merged 1 commit into
mainfrom
conformance-tidy-retry
Nov 25, 2026
Merged

tobixen merged 1 commit into
mainfrom
conformance-tidy-retry

Conversation

@tobixen

@tobixen tobixen commented Nov 25, 2026

Copy link
Copy Markdown
Member

Commit message:

test: retry the teardown's deletes on CalDAV

tidy_up() deleted what a test stored in a borrowed collection in one
try, so a DELETE that robur dropped failed the test's teardown.  Those
deletes now go through sweep() as well, which the CalDAV test module
already overrides to retry.  As in caldav's own test cleanup, a delete
that finds nothing is taken as done and is not checked afterwards: a
later run sweeps whatever stays.  Deleting a collection the test made
is not retried here; caldav's Calendar.delete() already retries where
the server's hints call calendar deletion fragile.

Prompts:
> just do the retries [= the retries for the teardown's deletes on
> robur, left out of the sweep change]

> (on a review finding that teardown now passes when a delete finds
> nothing) I don't think we should spend a lot of effort verifying
> that the calendar disappeared during cleanup - unless the caldav
> server hint says that deleting is fragile.  Consider that the
> teardown shouldn't take too much time, and that it may anyway be
> needed to do cleanup on the start of the test (because the test may
> have been interrupted without performing any teardown earlier).
> Also, check that the cleanup mechanisms in the calendaring-client is
> more or less in sync with the cleanup meachnisms (sic) in the caldav
> library.

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

Follows up #64.

🤖 Generated with Claude Code

tidy_up() deleted what a test stored in a borrowed collection in one
try, so a DELETE that robur dropped failed the test's teardown.  Those
deletes now go through sweep() as well, which the CalDAV test module
already overrides to retry.  As in caldav's own test cleanup, a delete
that finds nothing is taken as done and is not checked afterwards: a
later run sweeps whatever stays.  Deleting a collection the test made
is not retried here; caldav's Calendar.delete() already retries where
the server's hints call calendar deletion fragile.

Prompts:
> just do the retries [= the retries for the teardown's deletes on
> robur, left out of the sweep change]

> (on a review finding that teardown now passes when a delete finds
> nothing) I don't think we should spend a lot of effort verifying
> that the calendar disappeared during cleanup - unless the caldav
> server hint says that deleting is fragile.  Consider that the
> teardown shouldn't take too much time, and that it may anyway be
> needed to do cleanup on the start of the test (because the test may
> have been interrupted without performing any teardown earlier).
> Also, check that the cleanup mechanisms in the calendaring-client is
> more or less in sync with the cleanup meachnisms (sic) in the caldav
> library.

Assisted-By: Claude Opus 5.5
Reviewed-by: Tobias Brox <tobias@redpill-linpro.com>
@tobixen
tobixen merged commit 83c5f1b into main Nov 25, 2026
8 checks passed
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