Skip to content

[flake]: invoices.TestInvoiceRegistry/MultipleSetHeightExpiry #11641

Backlog

Description

@litbot-9000

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

Occurrence

Failure

panic: test timed out after 1m0s

The test's own 1-minute timeout (test_utils_test.go:400) fired while the main test goroutine was blocked at invoiceregistry_test.go:2966 on <-hodlChan1, waiting for the MPP-timeout HtlcFailResolution right after ctx.clock.SetTime(testTime.Add(30 * time.Second)). (The same dump also shows a goroutine parked in a dockertest StopContainer HTTP call, which is teardown noise rather than the cause.)

The queued PR for that run (#11632) does not touch the invoices package, so this is not a queued-PR regression.

Diagnosis

Same lost-tick race as #9548: the invoice registry arms the HTLC auto-release timer with clock.TickAfter(deadline.Sub(clock.Now())) — two separate calls on a TestClock the test advances from another goroutine. When SetTime lands between the Now() read and the TickAfter registration, the trigger is scheduled at deadline + advancement and never fires inside the test window. FailPartialAMPPayment_* (#9548) and now MultipleSetHeightExpiry_Postgres block on exactly that missing timer.

Open PR #11638 adds Clock.TickAt (registers the absolute trigger time under the clock's lock) and is expected to resolve this test as well. Tracking this test separately so occurrences have a durable home; this can be closed once #11638 merges and the leg stays green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions