Skip to content

test(iceberg): lifecycle fault waiter deadline test flakes under UT coverage #28260

Closed

Description

@gouhongshen

CI failure

Stable signature

Package github.com/matrixorigin/matrixone/test/iceberg failed TestLocalE2EWaitForLifecycleFaultWaitersHonorsDeadline with:

lifecycle fault waiter ignored deadline: all expectations were already fulfilled, call to Query select trigger_fault_point(iceberg-create-mapping-after-catalog-lock-waiters) with args [] was not expected

The coverage job reported two failed test/package events and zero build failures; the uploaded diagnostic artifact is ut-coverage-diagnostics-attempt-1.

Expected behavior

The lifecycle fault waiter deadline test should complete its deadline path without an unexpected extra fault-point query, and the package should pass under the all-package coverage workload.

Attribution evidence

  1. The failure is in the Iceberg test package and the complete failed-job log identifies the unexpected mock query above.
  2. PR fix(clone): skip external tables in database clone #28146 changes only database-clone frontend code, clone documentation, and the issue-27103 clone BVT; it does not modify test/iceberg, lifecycle fault waiters, or the coverage harness.
  3. The same workflow run passed the clone-related build and SCA jobs; the failure is independent of the PRs clone behavior.

Reproduction

Run the repository CGo coverage UT workload in a clean checkout and inspect the Iceberg package result for TestLocalE2EWaitForLifecycleFaultWaitersHonorsDeadline. Preserve the uploaded failure summary and job log when rerunning so the mock-call ordering and deadline timing can be compared.

Scope

This is tracked as an unrelated CI/test issue and is not being changed in PR #28146.

Activity

  1. self-assigned this
    on Sep 5, 2026
  2. added
    kind/bug
    severity/s0
    ai-easy
    and removed on Sep 5, 2026
  3. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    ContributorAuthor

    Investigation complete. The uploaded UT coverage diagnostics (run 33961743746, artifact 9968464979) show the exact failure in TestLocalE2EWaitForLifecycleFaultWaitersHonorsDeadline: after the 2 ms deadline and 10 ms polling interval overlapped under instrumentation, the ticker branch could win and the next loop issued a second trigger_fault_point query. The helper had no context check before that poll, so the one-query sqlmock expectation failed before the expected deadline error could be returned.

    The focused change adds a context check before every waiter poll. Existing success, query-error, empty-response, invalid-count, and deadline tests remain covered; local normal, coverage, race, package, and vet checks pass. Draft PR: #28261. The issue remains open for manual validation.

  4. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    ContributorAuthor

    PR #28261 is trying to fix this issue.

  5. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    ContributorAuthor

    Attempt-2 follow-up for run 33961743746: the Iceberg UT coverage producer completed successfully, so the original TestLocalE2EWaitForLifecycleFaultWaitersHonorsDeadline assertion did not reproduce on the permitted retry. The separate Matrixone Utils CI / Coverage job failed because coverage merge saw expected PR head 627a1b3 but actual head 70794bc after the required rebase, and refused to merge a stale diff. This is rerun/rebase coordination evidence, not a repeated Iceberg failure and not caused by PR #28146. The current rebased head workflow run 33963805586 has been rerun; no further rerun of old attempt-2 will be issued.

  6. gouhongshen commented on Sep 5, 2026

    @gouhongshen
    ContributorAuthor

    PR #28261 has merged and is awaiting manual validation. The issue remains open.

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

Metadata

Metadata

Assignees

Labels

ai-easykind/bugseverity/s0

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions