-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup ldk node for integration tests #70
Conversation
b3e4248
to
6c16bc0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that this is as good as we're going to get if we want nodes run "as code" in the itests / all the things that we need to test onion functionality.
This is a lot of code to include in the repo just for tests, and I'm worried about the maintainability of cherry-picking it in. How about:
- We fork ldk-sample to the lndk org
- Create a new branch that has the functionality we need
- Add it as a dependency for our tests
I know we've gone in circles a bit about how best to handle this, but I think we'll be able to save quite a few LOC by just rebasing a branch?
@carlaKC Yeah I'm a bit frustrated because this feels like sort of where we started. But I think overall we're getting to a better place. Actually this triggered an idea -- which might be what you're describing above but I'm not sure. Initially when starting this project I had created a fork of But now having worked with both I think the best middle ground would be to fork If that sounds good, I'll port over this code to a |
Yeah, that's what I was thinking.
+1, seems like the right one to use. I think what we have here is good - and can pretty much just be copied as-is onto a new branch in a fork. So not a change of approach, just moving around where we keep things - rationale being that it'll be easier to maintain than copying things over when they change. I know it's frustrating switching paths all the time, but it is a once-off cost to getting something that's long term sustainable. |
@carlaKC Awesome, glad we're on the same page! And yeah good point -- best to spend some time on this for long-term sustainability |
Sorry if it came across as "let's start from scratch for the 1000th time" ☠️ I think we're getting there! |
6c16bc0
to
de4ef91
Compare
The bitcoind package introduces a security vulnerability in the time dependency. But since bitcoind is only used in the integration tests, we can safely ignore this advisory.
de4ef91
to
3b9539a
Compare
@carlaKC Yeah I think I just misunderstood at first! Addressed your two comments above and updated this PR with the ldk-sample as a separate fork. Not sure if you want to take another look at the ldk-sample portion as well: lndk-org/ldk-sample#1 I already merged because I was having trouble importing it here, but didn't need to in hindsight |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test test_ldk_send_onion_message ... ok
lfgggg 🚀
Took a look at this post-merge and it looks good to me 🙌 |
@orbitalturtle I'm happy to go ahead and merge this if you are! |
This PR sets up the ldk node needed to run our integration tests: