multi: fix nightly lint, BOLT 12 startup, and signer teardown #11614
🔴 PR Severity: CRITICAL
gh pr view | 4 files | 34 lines changed
<details>
<summary>🔴 <strong>Critical</strong> (1 file)</summary>
lnwallet/chancloser/rbf_coop_transitions.go - lnwallet/ channel closing / RBF coop-close state machine</details>
<details>
<summary>🟡 <strong>Medium</strong> (1 file)</summary>
config.go - root config, not otherwise categorized</details>
<details>
<summary>🟢 <strong>Low</strong> (2 files, excluded from severity calculation)</summary>
config_native_sql_test.go - test-only changeitest/lnd_remote_signer_test.go - test-only change</details>
Analysis
The highest-severity file touched is lnwallet/chancloser/rbf_coop_transitions.go, which is part of the RBF cooperative-close state machine inside lnwallet/. That package is on the CRITICAL list (wallet operations, channel funding, signing, commitment transactions), so the PR is classified CRITICAL even though the diff itself is a tiny 1-line change. The rest of the change is a 1-line config.go tweak and test-only additions, which do not affect the overall severity. No file-count or line-count bump applies (2 non-test files, ~4 non-test lines changed). Recommend review by someone familiar with the channel-closer / RBF coop-close logic given the sensitivity of that package, even though the diff is small.
---
<sub>To override, add a severity-override-{critical,high,medium,low} label.</sub>
<!-- pr-severity-bot -->
LGTM 🎉
Note: I force-pushed to rewrap the commit message bodies at 72 columns; no code changes (tree identical to 5c463cb5). Please reset your local branch before pushing again.
Non-blocking follow-up idea: the BOLT 12 guard still identifies the migration by a name copied into config.go. Giving the bolt12-offers flag the same build tags as migrations_dev.go (dev && (test_db_postgres || test_db_sqlite || test_native_sql)) would make the mismatch unbuildable and let us drop bolt12Migrations/missingMigration and their tests.
/gateway review
Approve — no blockers. Three independent nightly fixes, each tight and verified:
000016_offers while the build ships 000017_offers. The one-line rename plus a tagged regression test is the right shape — and the tag (test_db_postgres || test_db_sqlite || test_native_sql) puts it in exactly the job class that failed in the nightly. Verified: the test passes at the head, and reverting to 000016_offers makes it fail, so it provably pins the bug.defer ht.Shutdown(watchOnly) ordering holds on both success and failure paths, as the body claims.gocritic suppression on the switch — nothing on the switch would re-trigger the directive.Also correct to leave the PostgreSQL invoice failures out of scope (refs #11507) rather than bundling them.
Verified by execution: go test -tags test_db_sqlite -run TestValidateBolt12OffersNativeSQL . passes at the head and fails under the mutation; gofmt and 80-col clean on the changed files (the lnd_psbt_test.go gofmt hit in the full-tree run is pre-existing on master, not this PR). Not verified: the itest itself (no Docker here) — the teardown change is read-only review, and full lint per the PR body is still pending in CI.
— claudell ⚡ (OpenClaw dev agent; approval posts as litbot-9000 and does not count toward branch protection)
Created backport PR for v0.21.x-branch:
Please cherry-pick the changes locally and resolve any conflicts.
git fetch origin backport-11614-to-v0.21.x-branch
git worktree add --checkout .worktree/backport-11614-to-v0.21.x-branch backport-11614-to-v0.21.x-branch
cd .worktree/backport-11614-to-v0.21.x-branch
git reset --hard HEAD^
git cherry-pick -x 76beaaa35a822138841061da142e73e0b75d1d17 becf725d10246c216790d19412c3c1552a60cfcb 0f4d87f8ea528f303481f21dbf7cd238cbe8eb0c
git push --force-with-lease
ziggie1984
Roasbeef
In this PR, we fix three independent failures from the November 24 nightly. Each fix is in its own commit.
The BOLT 12 startup guard still checks for
000016_offers, even though the build includes000017_offers. We update the guard and add a tagged regression test that fails with the old name. In the remote signer itests, we stop WatchOnly before generic harness cleanup can remove its signer's TLS certificate. We also remove the unusedgocriticsuppression that fails the lint job.The tagged and untagged startup tests passed locally, as did the chancloser race tests. The targeted bitcoind/SQLite native SQL run passed the BOLT 12 and remote signer cases with the new shutdown order on the success path. The final
deferkeeps that order on failure too. The local full lint run was interrupted during analysis, so full lint is still pending.Refs #11507. The separate PostgreSQL invoice failures are not addressed here.