Repository navigation
Description
TestEmbeddedPrebuiltExecutionCancellation/watchdog-publication failed the embedded UT runner's cancellation/cleanup contract: a runtime TERM trap parsing error was followed by exit 92 and live fixture-owned processes.
Original failure
Source PR: #29833
Exact PR head: 7edeaf2c5107f6e4ec1c69c2bba91c646a40716d. Clean current official main comparison: 42d42546fd2c2b2449cb81cea47f81d300139753.
Workflow: https://github.com/matrixorigin/matrixone/actions/runs/38114519263, attempt 1, pull_request_target, Go 1.27.1, Ubuntu/x86.
Failed checks inspected in full using gh run view 38114519263 --log-failed (and the complete UT Coverage job log):
The last two failures are cascades, not separate product failures. The two underlying failures are tracked separately.
Coverage UT command from the complete job log:
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}Stable failure signature (process IDs normalized):
ut_embedded_schedule_test.go:663:
embedded execution cancellation watchdog-publication: exit status 92
runner left live fixture-owned processes after exit
[ut_stderr] environment: trap: line 2: unexpected EOF while looking for matching `)'
[ut_stderr] environment: -c: line 2: unexpected EOF while looking for matching `)'
BASH 5.2.21(1)-release
TEST_PUBLISHED ...
RESTORED ... pending=0
HOOK ... watchdog=... pending=0
PUBLISHED ... watchdog=...
ROOT_NOTIFIED ...
EXECUTE_CANCELLED 92
--- FAIL: TestEmbeddedPrebuiltExecutionCancellation/watchdog-publication
Expected cancellation is exit 143 with EXECUTE_CANCELLED 143 and joined/terminated fixture children. Exit 92 here records the failed cleanup contract. This is a runtime cancellation/trap failure, not a Go compilation/type/static-analysis/security-gate failure. Its Linux root cause remains unresolved.
Comparison and attribution evidence
Classification: non-PR flaky candidate under the authorized exception. No claim that clean main reproduced the original signature or that the defect is fixed.
- The complete Coverage UT log identifies the original fixture failure; coverage merge and CI Required are downstream cascades.
- Three independent processes at the exact PR head ran the exact failing subtest with
-short -tags=matrixone_test -covermode=set, Go 1.27.1 and CGo; all passed. GNU Bash 5.2.21, built from official sources and patches, was selected via PATH for the harness. - The complete PR diff does not change
optools,run_ut.sh, the cancellation fixture, process-group ownership, signal traps or CI harness. This test imports only standard-library Go packages and executes mock Go/prebuilt child scripts; it executes no production Stage code. These test/harness sources are unchanged between the PR's official merge base and the comparison main. The CI-widecoverpkgcannot instrument production code that this standalone shell fixture neither imports nor executes. - Three independent processes on the clean current official-main worktree ran the same command and passed; source status remained clean.
| Revision | Round 1 | Round 2 | Round 3 |
|---|---|---|---|
PR 7edeaf2c5107f6e4ec1c69c2bba91c646a40716d |
PASS, 1.854s | PASS, 1.047s | PASS, 1.061s |
main 42d42546fd2c2b2449cb81cea47f81d300139753 |
PASS, 2.492s | PASS, 1.424s | PASS, 1.450s |
All six logs name the selected watchdog-publication subtest, report PASS and have zero terminal status. Package durations are shown. The earlier exploratory Bash 3.2 run is excluded from this matrix.
Platform limitation: these controls are Darwin/arm64. PATH-selected harness Bash matches CI 5.2.21, but mock child scripts with an absolute /bin/bash shebang use the host's Bash 3.2; Ubuntu uses 5.2.21 for that shebang too. The original Linux signal/cleanup failure has not been reproduced locally, and the isolated test does not recreate CI-wide load. Coverage mode is retained; optools has no non-test Go statements, so its focused profile reports [no statements]. These passes support the bounded flaky-candidate exception, not full Linux equivalence. The PR's own Stage change closure has existing passing exact-head validation.
Focused reproduction
From each clean revision with the repository's CGo inputs, set PATH to a GNU Bash 5.2.21 installation and run:
PATH="$BASH521_BIN:$PATH" .agents/skills/mo-dev/scripts/mo-cgo-test \
-v -short -count=1 -timeout=120s -tags=matrixone_test \
-covermode=set -coverprofile="$TMPDIR/watchdog-publication.cover" \
-run '^TestEmbeddedPrebuiltExecutionCancellation$/^watchdog-publication$' ./optoolsOn Linux, also use the original coverage command above to preserve concurrent workload and /bin/bash identity. Investigate deferred TERM handling, restored trap text and fixture process-group cleanup around watchdog publication.
Impact: Coverage UT fails; Coverage cannot obtain a complete UT profile and CI Required fails in the same run. Search of open and closed issues for the exact test, watchdog-publication, and unexpected EOF/trap found no matching issue.
After both underlying failures have tracking issues, request one failed-jobs rerun of run 38114519263 and verify the new attempt was accepted. Passing a rerun would not erase this cleanup defect.
Activity
fix: remove lifecycle waits from embedded race fixtures (#29875)