#1093029 calypso: use sd_notify method to sync with supervisor when listener started

Package:
calypso
Source:
calypso
Submitter:
Andrew Bower
Date:
2025-01-14 21:57:03 UTC
Severity:
normal
Tags:
#1093029#5
Date:
2025-01-14 18:14:02 UTC
From:
To:
Dear Maintainer,

Thanks for providing calypso!

I want to use calypso as a CardDAV server against which to test a CardDAV
client. The reliability of the automated tests would be improved if there were
a way to synchronise the listener startup with the software under test.

Currently the "Starting HTTP[S] server" notice approximates this
synchronisation but it actually happens before bind/listen. This could be
improved both by using a standardised scheme and performing the notification
after the server has started listening on the socket.

I don't use systemd myself but if calypso used the NOTIFY_SOCKET method (see
sd_notify(3)) then users could also use the 'notify' service type with systemd
user units.

Could calypso be extended to use this method, please?

Thanks,

Andrew

#1093029#10
Date:
2025-01-14 21:54:36 UTC
From:
To:
Dear Maintainer,

Please find attached a patch to implement startup synchronisation with
python3-sdnotify.

This is also available at
https://salsa.debian.org/debian/calypso/-/merge_requests/4 but I notice
that this is not listed in the package metadata as being the
authoritative packaging repo. (I also can't clone the upstream repo.)

Thanks,

Andrew

#1093029#17
Date:
2025-01-14 21:56:28 UTC
From:
To:
Sorry, really attached this time.