Skip to content

[Bug]: CI flaky candidate: all_consumers_skipped races scheduler completion #30232

Closed

Description

@iamlinjunhong

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Searched open and closed issues for the exact test, all_consumers_skipped, scheduler stopped, consumer retired, and broadcast_product_lifetime. Closed #29642 fixed shared-producer cancellation ownership; its comments record related HashJoin instances of this test assertion. This issue tracks the remaining test notification/completion ordering, rather than reopening that production defect. Open #30209 tracks a different LoopJoin ancestor_stop / context canceled assertion.

Branch Name

fix/space-result-length-30186; clean current official main comparison.

Commit ID

PR #30207 exact head: 8cd351768615823e9b579a5d213172f5a5815365.
Clean official main: ddb76ea12cc05ac7517c026fa237516865f86c2b.

Other Environment Information

Original CI: Ubuntu/x86, Go 1.27.1, CGo enabled, matrixone_test, short mode, set coverage across the CI-selected repository packages; race was not enabled in this coverage job.
Paired local controls: macOS arm64, Go 1.27.1, same short/tag/CGo mode through the repository wrapper. Native source inputs are identical on both revisions; the main wrapper verified and reused the primary lane's native artifacts. Coverage controls instrument only pkg/sql/compile, not the full CI coverage package set. No Linux-equivalent runtime reproduction is claimed.

Actual Behavior

Run 38573726776, attempt 1, checked the exact PR head and failed in UT Coverage job 115886085321:

TestBroadcastLoopJoinRemoteSourceOwnership/all_consumers_skipped
broadcast_product_lifetime_test.go:428:
scheduler stopped before the empty consumer retired: <nil>
--- FAIL: TestBroadcastLoopJoinRemoteSourceOwnership/all_consumers_skipped (0.01s)

The complete failed-job logs report zero build failures and only this child test, its parent, and its package as failed events. Panic-like lines are the expected fault-injection tests, not an additional failed event.

The failing coverage command is:

go test -mod=readonly -count=1 -json -short -v -tags matrixone_test \
  -timeout=20m -p "${COVERAGE_UT_PACKAGE_PARALLELISM}" \
  -covermode=set -coverprofile="${coverage_profile}" -coverpkg="${cover_pkgs}" \
  ${test_scope}

Coverage job 115913253733 then failed prerequisites: coverage merge blocked: a required producer did not publish a complete coverage profile; no coverage verdict was calculated.
CI Required job 115930648902 reported Error: matrixone-ci: cancelled. Independently, the UT check annotations explicitly record manual cancellation. That cancelled job has no runner, steps or downloadable log; it is not evidence of a product failure.

Expected Behavior

The fixture should accept normal scheduler completion after the empty consumer has already retired. It should still reject completion before retirement and preserve checks for independent cleanup, source termination, error propagation, empty output and allocation release.

Steps to Reproduce

After the repository-supported native build, use the following selection on the PR and independently clean current official main:

.agents/skills/mo-dev/scripts/mo-cgo-test -short -tags matrixone_test \
  -count=3 -v -timeout=120s \
  -run '^TestBroadcastLoopJoinRemoteSourceOwnership$/^all_consumers_skipped$' \
  ./pkg/sql/compile

Both revisions passed all three consecutive runs. Additional set-coverage controls use the same selection and -covermode=set -coverpkg=./pkg/sql/compile: PR head passed three runs, clean main passed a bounded 100-run stress. These controls did not reproduce the Linux assertion; that is the expected evidence boundary of this non-PR flaky candidate, not a confirmed production root cause.

Additional information

Four attribution checks:

  1. Read the complete failed logs for all three checks and captured their terminal signatures. This is a runtime timing assertion, not compilation/type checking/static/security failure or a data-race report.
  2. The exact failing subtest passed three consecutive times on the exact PR head with CI's race/tag/CGo selection mode (race disabled).
  3. The complete PR differential contains ten SPACE implementation/metadata, focused SQL integration, and BVT expectation files. It does not change the shared producer, LoopJoin, scheduler, fixture or CI harness. The synthetic fixture binds only int8 </= expressions; it never invokes SPACE. Changes in pkg/sql/compile, pkg/sql/colexec, pkg/vm, go.mod and go.sum are empty relative to official main.
  4. A verified clean official main worktree passed the same exact-subtest command three consecutive times. The main set-coverage 100-run control also passed. The current PR's five focused SPACE parent tests (including boundary, overflow, NULL/mask, decimal rounding and all return overloads) passed.

Source-level candidate explanation: productOuterJoinGate.Call closes ended before returning. MergeRun waits for child completion and then can return nil. For all_consumers_skipped, both retired and the buffered result(nil) can be ready before the test goroutine resumes. The select at line 424 can then choose result even though retirement already occurred. The current fatal assertion assumes notification selection order, which is stronger than the lifecycle contract. This is source reasoning; the CI interleaving was not captured directly.

Independent related observations: PR #29152 coverage run 37924039556/job 113799264820 and PR #29798 coverage run 38041641179/job 114183059618, recorded in closed #29642, have the same normalized assertion for sibling HashJoin fixtures. They strengthen the ordering hypothesis but do not replace the paired controls for this exact LoopJoin case.

No unrelated compile code or lifecycle assertion was modified in PR #30207. After this tracking issue is published, the failed jobs of this run will be rerun once. A repeated failure needs fresh attribution, not an unbounded rerun loop.

Activity

  1. added 5 commits that reference this issue on Oct 15, 2026
    7f644b3
    cd3548f
    1f2d674
    abaa39d
    9149593
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions