Skip to content

Conversation

@enigbe
Copy link
Owner

@enigbe enigbe commented Feb 10, 2025

What this PR does:

This is another follow-up PR to lightningdevkit#407 where we test the log facade and custom logging interfaces.

It follows an earlier conversation to address testing without explicitly configuring the logger in all test cases.

@enigbe enigbe force-pushed the 2025-02-test-logging-interface branch 2 times, most recently from da2edcc to d85c5c5 Compare February 10, 2025 14:27
@enigbe enigbe force-pushed the 2025-02-test-logging-interface branch 3 times, most recently from 30bee82 to 4e59771 Compare February 23, 2025 22:51
tnull added 11 commits March 3, 2025 15:32
Starting with v1.2, the `idna_adapter` crate switched to use `icu4x`,
which requires a rust version of 1.81, conflicting with our MSRV.

Here, we hence pin `idna_adapter` to v1.1 in our MSRV CI.
Previously, we named internal fields/APIs `lspsX_service` as us being
the client was implied. Since we're about to also add service-side
functionalities, such naming would start to get confusing. We hence
rename them to follow a `lspsX_client` scheme, and will add the
service-side APIs using the `service` terminology.
.. and while we're at it we move the VSS child key indexes to constants.
.. we might eventually want to drop them anyways, but for now we rename
them to make them easily discernable from their counterparts in
`builder.rs`.
.. for consistency, as we're about to add `LSPS2ServiceConfig` there,
too.
We add the capability to configure LSPS2 service mode in `Builder` and
`LiquiditySourceBuilder`.
.. and forward it to our `LiquditySource`.
.. to align with other event handling variants: First log, then act,
then emit event if everything went okay.
.. so far we just silently fail if something goes wrong, eventually
we'll need to implement retrying channel opens to honor buy requests
that didn't succeed on the first attempt.
…ervice-support

Add bLIP-52 / LSPS2 service-side support
@enigbe enigbe force-pushed the 2025-02-test-logging-interface branch from 4e59771 to 7e27939 Compare March 4, 2025 12:06
General improvements:
- Add TestConfig wrapper around Config to allow per-test
log field overrides while preserving the general test setup.

- Test facade logger.

- Add logging module and validate log entries.

- Improve UniFFI logging adding UniFFI flag for relevant
log objects.

- Remove facade level, because the concrete `Log` impl
controls max log level.
@enigbe enigbe force-pushed the 2025-02-test-logging-interface branch from 7e27939 to 56d5dc9 Compare March 10, 2025 16:01
@enigbe enigbe merged commit 22cb1df into main Mar 17, 2025
22 of 28 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.

3 participants