Uh oh!
There was an error while loading. Please reload this page.
Add e2e config startup tests - #142
Conversation
👋 Thanks for assigning @joostjager as a reviewer! |
ldk-reviews-bot
commented
Mar 5, 2026
🔔 1st Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Mar 9, 2026
🔔 2nd Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Mar 11, 2026
🔔 3rd Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Mar 14, 2026
🔔 4th Reminder Hey @jkczyz! This PR has been waiting for your review. |
1859bb4 to
957057fCompareldk-reviews-bot
commented
Mar 16, 2026
🔔 5th Reminder Hey @jkczyz! This PR has been waiting for your review. |
Uh oh!
There was an error while loading. Please reload this page.
ldk-reviews-bot
commented
Mar 18, 2026
🔔 6th Reminder Hey @jkczyz! This PR has been waiting for your review. |
143c748 to
0d33256Compareldk-reviews-bot
commented
Mar 21, 2026
🔔 7th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Mar 23, 2026
🔔 8th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Mar 25, 2026
🔔 9th Reminder Hey @jkczyz! This PR has been waiting for your review. |
69b3d64 to
81f6bf3Compareldk-reviews-bot
commented
Mar 28, 2026
🔔 10th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Mar 30, 2026
🔔 11th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Apr 1, 2026
🔔 12th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Apr 4, 2026
🔔 13th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Apr 6, 2026
🔔 14th Reminder Hey @jkczyz! This PR has been waiting for your review. |
ldk-reviews-bot
commented
Apr 8, 2026
🔔 15th Reminder Hey @jkczyz! This PR has been waiting for your review. |
Camillarhi
commented
Jun 2, 2026
Thanks for this. Building this branch with |
benthecarman
commented
Jun 17, 2026
Cleaned up to be a lot simpler than previous iteration |
joostjager
left a comment
There was a problem hiding this comment.
E2E tests seem to be pretty heavy for config validation. Can't that be done just as well on the unit test level?
Perhaps a smoke test is useful that tests one invalid config, see how that traverses the full stack.
benthecarman
commented
Jun 18, 2026
Yeah we already have config unit tests, the goal of these is to make it so we test things that our config can't really validate and also make sure we are properly handling a valid config. Removed some of the tests that were basically recreations of the config unit tests and added more that actually target where we could and should throw errors. |
joostjager
left a comment
There was a problem hiding this comment.
The latest shape is better after trimming config tests.
I do still get a slight feeling of overlap with ldk-node coverage. Going forward, I think we should be pretty strict about keeping that duplication to a minimum. Just test the things in ldk-server that also mainly live there.
Left a few non-blocking remarks.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| config.lines().filter(|line| !line.trim_start().starts_with(key)).collect::<Vec<_>>().join("\n") | ||
| } | ||
| fn replace_config_line(config: &str, key: &str, new_line: &str) -> String { |
There was a problem hiding this comment.
I am not sure about this mix of having a config builder, but then also surgically modifying it again. Might be a bit brittle too. Any way to make this more consistent/robust?
There was a problem hiding this comment.
made this a lot cleaner
Resolve the e2e harness conflicts around gRPC config startup and add coverage for supported configuration variants and startup failures. AI-assisted-by: OpenAI Codex
joostjager
left a comment
There was a problem hiding this comment.
Nicer indeed with the builder
| pub enum ChainSource { | ||
| Bitcoind { rpc_address: String, rpc_user: String, rpc_password: String }, | ||
| Electrum { server_url: String }, | ||
| Esplora { server_url: String }, |
There was a problem hiding this comment.
Electrum and Esplora seem to be unused. Would remove it if it is dead currently.
There was a problem hiding this comment.
I am just gonna leave for now, we may implement it eventually.
Uh oh!
There was an error while loading. Please reload this page.
Continuation of #128 / #113
Add config test suite that verifies server startup with various config combinations (to prevent things like #129) and validates errors for invalid configs.