Skip to content

CI cleanup failure: embedded watchdog-publication TERM trap exits 92 with live fixture processes #29882

Closed

Description

@iamlinjunhong

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):

Check Job link Finding
Matrixone CI execution / UT Test on Ubuntu/x86 https://github.com/matrixorigin/matrixone/actions/runs/38114519263/job/114396678320 Race in truncate-cancellation test; Unit Testing, exit 2
Matrixone UT Coverage execution / UT Coverage on Ubuntu/x86 https://github.com/matrixorigin/matrixone/actions/runs/38114519263/job/114396696291 Embedded cancellation fixture failure; final Fail on coverage UT failure, exit 1
Matrixone Coverage execution / Coverage https://github.com/matrixorigin/matrixone/actions/runs/38114519263/job/114404378424 Producer failure: no complete UT coverage profile; no coverage verdict calculated
CI Required https://github.com/matrixorigin/matrixone/actions/runs/38114519263/job/114409391855 Aggregate Error: matrixone-ci: failure

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.

  1. The complete Coverage UT log identifies the original fixture failure; coverage merge and CI Required are downstream cascades.
  2. 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.
  3. 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-wide coverpkg cannot instrument production code that this standalone shell fixture neither imports nor executes.
  4. 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$' ./optools

On 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

  1. self-assigned this
    on Oct 11, 2026
  2. added a commit that references this issue on Oct 11, 2026
    e6606fc
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