[flake]: lnwallet/test/bitcoind.TestLightningWalletBitcoindRPCPolling/spend_unconfirmed_outputs

オープン 初心者向け
#11,642 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend, testing

調査の方向性

lnwallet/test/test_interface.goのassertTxInWalletと、lnwallet/testのTestLightningWalletBitcoindRPCPollingケースを読んでください。既存の単一のListTransactionDetails呼び出しと、issueで説明されている非同期ポーリングの動作を比較してください。トランザクションが現れるまでアサーションが上限時間内で待機し、対象のテストがbitcoind RPCポーリングバックエンドで成功すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

test flake

Automated flake report from the lnd flakes cop (claudell).

Occurrence

Failure

--- FAIL: TestLightningWalletBitcoindRPCPolling/btcwallet/bitcoind-rpc-polling:spend_unconfirmed_outputs
    test_interface.go:2426: transaction 00f124047bb72cf6... not found

Line 2426 is assertTxInWallet(t, alice, txHash, false), immediately after bob spends unconfirmed change to alice via sendCoins(..., minConfs=0).

Diagnosis

assertTxInWallet (lnwallet/test/test_interface.go:196) does a single ListTransactionDetails and t.Fatalfs if the tx is absent — no polling. The failing binary is the bitcoind RPC polling backend (TestLightningWalletBitcoindRPCPolling), which learns about mempool transactions asynchronously by polling bitcoind, so alice's wallet can legitimately not know about the just-broadcast tx at assert time. The node behaved correctly; the test asserted faster than the backend can observe.

This is the same missing-poll family as #11507 (fixed by open PR #11508 for get_transaction_details), but a different test and a different assertion line, so that PR does not cover it. The smallest fix is to make assertTxInWallet poll for a bounded time — for this backend, eventual mempool visibility is the real signal, not an assertion that should hold instantly.

Note: the flake agent's environment has no btcd/bitcoind chain backend, so this could not be reproduced locally and no fix PR is attached yet.

主要言語
Go
スター
8.2k
フォーク
2.3k
平均マージ
1日 11時間
マージ済み PR(30日)
103

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

lightningnetwork/lnd のほかの issue

lightningnetwork/lnd の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。