-
Notifications
You must be signed in to change notification settings - Fork 438
CI: Allow ldk-node integration test to target a custom fork/branch #4413
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
base: main
Are you sure you want to change the base?
Conversation
|
👋 Hi! I see this is a draft PR. |
5416878 to
a028545
Compare
|
Tried multiple approaches, but it turns out to be difficult to get that neutral status :( |
Huh, no? That is exactly the purpose. If people tend to ignore it, it rather means we need to make the icons larger. |
|
Open to suggestions. I don't think a bigger icon is going to change anything. Unless it's a branch protection, I don't think it'll work. |
|
I mean isn't the point that breaking LDK Node is a failure, just not one that has to be fixed pre-merge (because its impossible), rather one that needs to be fixed right after (ideally with a PR pre-merge)? I'm not sure that people are ignoring it, but if they are a comment from the bot after merge seems like an appropriate next-step. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4413 +/- ##
==========================================
- Coverage 86.05% 86.04% -0.02%
==========================================
Files 156 156
Lines 103384 103384
Branches 103384 103384
==========================================
- Hits 88971 88958 -13
- Misses 11900 11911 +11
- Partials 2513 2515 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I was thinking, maybe it could be a requirement to mention a repo/branch of ldk-node in the PR description that the CI for PRs then picks up and tries to build against. That needs to pass before merge can happen. If no branch is mentioned, CI will just build against ldk-node main.
In https://github.com/lightningdevkit/ldk-node/pull/789/commits, I had to fix quite a few things. |
cfdd8df to
fd86ee4
Compare
Parse the PR body for a `ldk-node: owner/repo#branch` line and use it to check out a custom ldk-node fork/branch for the integration test. When a custom branch is specified, the Cargo.toml patching step is skipped since the branch is expected to already have the right dependencies configured. Falls back to `lightningdevkit/ldk-node` at its default branch (with patching) when not specified or on push events. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
fd86ee4 to
f4d459d
Compare
Then the appropriate solution seems like a comment that tags the PR author post-merge to remind them to go fix ldk node? |
|
I probably don't need to repeat that I think the best solution is a mono repo. For the post-merge part, it probably doesn't get any better than tagging. Gating merge on a building ldk-node branch also seems like a clear win. Helps with verifying the ldk changes too. I've updated this PR to add that. |
Allows the LDK Node integration job to run against a custom ldk-node fork/branch by parsing the PR description for a
ldk-node: owner/repo#branchline. Falls back tolightningdevkit/ldk-nodeat its default branch when not specified or on push events.This lets PRs that change LDK's API pair with a corresponding ldk-node branch, avoiding expected build failures that are misleading and can mask other critical job failures on the overall commit status. This masking is more problematic since Restrict CI build matrix to Linux+MSRV for PRs #4410 reduced the PR build matrix to only linux/msrv. That change may trigger unexpected failures on main.
ldk-node: joostjager/ldk-node#rename-liquidities