Repository navigation
Description
Is there an existing issue for the same bug?
- I searched open and closed issues for
TestProducer_EnqueueFull2and run 45340518333; no matching issue was found.
Branch Name
main (observed in PR #33133 CI)
Commit ID
CI head 47a691fe61df0bce9bab07cea80fe0f0a714de39; the relevant test and runner behavior also exists at main 568f0f4fdee3c34373f27b04316a2adf7d32a78a.
Other Environment Information
- GitHub Actions Ubuntu/x86 race UT, 8 CPUs and 16 GiB cgroup.
- Failed job, diagnostic artifact.
Actual Behavior
pkg/datasync.TestProducer_EnqueueFull2 failed with context deadline exceeded while dequeuing. The test starts a one-second context before preparing 20 payloads, each of which starts and stops a transaction manager. The logged preparation occupied about 0.9 seconds; a full enqueue also uses a 100 ms retry interval. The existing second-batch notification is sent before the worker actually reaches the full queue.
The overall race UT later reached its 120-minute hard limit. The termination path exited before the normal analyzer generated failure files; the uploaded raw report was then truncated to its head and tail. In this run, the pkg/tests/issues batch failure occurred in the omitted middle, so its failing test and assertion cannot be identified from the artifact.
Expected Behavior
The queue test should observe a real full-queue transition and verify delivery without spending its hang guard on unrelated fixture setup. A terminated UT run should retain bounded failure identities and useful context even when the raw report exceeds the artifact budget, without treating incomplete cases as confirmed failures.
Steps to Reproduce
- Inspect the linked Linux race UT job and its diagnostic artifact.
- Run
TestProducer_EnqueueFull2under race instrumentation with sufficient scheduling or setup delay to consume its shared one-second budget. The linked run is the observed failure; a local macOS race run passed. - Terminate a UT run after a test failure but before normal report analysis, with a raw JSON report larger than the artifact budget and the failure in its middle. The current top-slowest summary and head/tail snapshot can both omit it.
Additional information
The same CI run also timed out in TestIssue29492MultiCNCancellationCleanup/text after KILL QUERY. Its cause has not been established and is separate from the fixes above. CI repository PR #476 prioritizes failure files when they exist, but the MatrixOne hard-termination path does not currently generate them.
Activity
test: stabilize full-queue UT and preserve timeout failures (#33158)