Repository navigation
Description
Is there an existing issue for the same bug?
- Searched open and closed issues for both exact test names and the normalized cancellation-timeout signature; no matching issue was found.
Branch Name
PR #30707, branch codex/loom/develop/c28ce3081c3bed5186197a904bea1b2e02b3fbc8fc16db146231dcf582e6807f.
Commit ID
Failing PR head: 59fa5ffdc39fdecc39fd7a122192804bd94d4fe2.
Clean official-main control: 32591dcf3757a0ae4c2dec52cfd8d98761bd3454.
Other Environment Information
- Original CI: Linux/amd64, Go 1.27.1, race detector,
matrixone_testtag, CGO enabled,-short -p 6 -timeout 40m. - Focused controls: native Linux/arm64 container, Go 1.27.1, CGO enabled, the same race/tag/short/package-parallelism mode. These are ARM64 nonreproduction controls, not an AMD64 reproduction.
- Source snapshots were exported directly with
git archivefor the two immutable revisions into separate clean container directories; no local source edits were applied. PR tree:5dd7b5866e70aee49780ee98917a83f47de986a8; main tree:4c1c10b19aa8f5518bd15147b82a140f806c9d76.
Actual Behavior
PR #30707, run 39574779715 attempt 1, failed in the Unit Testing step of Ubuntu UT job 119137547122. CI Required job 119171355963 propagated this failure.
--- FAIL: TestCgroupWatcherIdleStop (8.90s)
notify_linux_test.go:88: cgroup watcher did not stop after cancellation
--- FAIL: TestCgroupWatcherEvents (10.01s)
notify_linux_test.go:120: cgroup watcher did not stop after cancellation
panic.go:694: cgroup watcher did not stop after cancellation
The helper waits five seconds for Stop to finish. Events also times out in deferred cleanup. Watcher-exit log lines do not identify individual watchers, so they do not prove every task finished. The raw log and diagnostic artifact show no race-detector report, compilation/type/static failure or deterministic result assertion. Bracketing resource samples have zero OOM/max events; CPU pressure alone is not a proven cause.
Expected Behavior
Cgroup watcher cancellation and cleanup should finish reliably, without this UT cancellation timeout.
Steps to Reproduce
Original CI entry point: make ut using its Linux race lane. Focus the exact two failed cases with:
CGO_ENABLED=1 GOWORK=off go test -mod=readonly -vet=off -count=1 \
-race -short -tags matrixone_test -p 6 -timeout 40m -v \
-run '^TestCgroupWatcher(IdleStop|Events)$' ./pkg/common/systemRun the command three separate times in each immutable source snapshot, preserving the real exit status. The focused package uses standard CGo and gosigar, with no MatrixOne native-library imports; CI's blanket forced libmo/usearch linkage and build-only linker admission wrapper are not needed by this focused execution path.
Additional information
Classification: non-PR flaky candidate under the prescribed bounded-control protocol, with no confirmed root cause or pre-existing-defect claim. All four conditions are recorded:
- Full failed-job logs and the raw system-package events were read; the only product/test failure class is cancellation timeout in the two named tests.
- The two exact failing cases passed in three separate original-PR-head invocations: 1.022s, 1.027s and 1.028s, each with exit 0. Both named tests passed in every invocation.
- The watcher, stopper, logging paths and CI harness are unchanged by this PR. The Linux test dependency closure contains 290 packages and nine MatrixOne package directories. Its only intersection with changed PR packages is
pkg/defines: only unused MORPC constant declarations differ; no selected dependency references those epochs and there are no new runtime initialization effects. The actual watcher/test call paths are unchanged. - The same command passed in three separate clean-current-main invocations: 1.026s, 1.029s and 1.027s, each with exit 0. Both named tests passed in every invocation. Failure was not reproduced; that is the expected nonreproduction evidence for this flaky-candidate protocol, not a confirmed pre-existing-defect claim.
The PR's own conflict/protocol repair is separately validated: full protobuf, compiler, function and planner packages with vet; authenticated JSON SQL regressions; incremental lint. JSON comparisons advance to v127 while upstream VIEWS retains v126. ASOF lifecycle/race and unchanged BVT case evidence also passes.
The initial ARM64 container setup used Go 1.26.4 and stopped before tests. An amd64-emulated Go 1.27.1 setup then crashed inside cmd/go module indexing before tests. Neither setup failure is counted as a test result or evidence about the original CI failure.
A single failed-jobs rerun of run 39574779715 will be requested after this issue is recorded. No unrelated product code is changed to force the lane green.
Activity
Fix mixed JSON and numeric comparisons (#30707)
test: start lifecycle budgets at launch and order account cleanup (#3…
XuPeng-SH commentedon Oct 24, 2026
Closing as not planned for this investigation, as requested by the assignee for failures that remain unreproduced/unexplained after bounded checks. On current main
dae02bbaaaa18aac7fa9b788e42f4483b3adf091, Linux/amd64 Go 1.27.1 with race + matrixone_test and GOMAXPROCS=2, the exact IdleStop and Events cases each passed 30 repetitions. Source review confirms IN_NONBLOCK + os.File poller cancellation, joined context.AfterFunc close completion, and Stop waiting for admitted callbacks. No causal violation was identified, so no timeout increase, polling replacement, or production cancellation change was made. This does not prove full-lane stability or that the CI occurrence was harmless. Reopen with watcher/Stopper/close-callback stacks captured before teardown at the cancellation guard.