Skip to content

mcpx: TestScriptViewCommandTimeoutKillsSpawnedWorkers fails in Fleet executor containers #13713

Description

@dezren39

Summary

pkgs/mcpx/internal/daemon test TestScriptViewCommandTimeoutKillsSpawnedWorkers fails deterministically inside the Fleet executor container, while it passes on local runs and on GitHub-hosted runners.

Evidence

Likely cause (unverified)

The test checks syscall.Kill(pid, 0) for the spawned sleep. In a container whose PID 1 does not reap orphans, a killed orphan can remain a zombie, and kill(pid, 0) still succeeds on a zombie. Confirm by checking for zombie state (/proc/<pid>/stat) inside the executor, then either make the test treat zombies as gone, or run the container with an init.

Acceptance

  • TestScriptViewCommandTimeoutKillsSpawnedWorkers passes in the Fleet executor container.
  • Process-group termination behaviour in scriptview.go is unchanged.

Found while completing #13577 (PR #13660).

Refs #13660

Activity

  1. added
    bug
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Refs #13660 — the PR that completes #13577 is awaiting merge; this issue tracks the separate pre-existing Fleet-container failure found while verifying it.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Progress — xaltha, 2026-11-23 ~17:20 CST. PR #13842 opened (branch xaltha/13713-mcpx-scriptview-timeout, commit 4350044df).

    Slice: the test treated a zombie as alive. TestScriptViewCommandTimeoutKillsSpawnedWorkers polled syscall.Kill(pid, 0); in a container whose PID 1 does not reap orphans the killed worker stays a zombie and signal 0 keeps succeeding. The test now polls a processExited helper (/proc/<pid>/stat state Z on linux, P_stat == SZOMB on darwin), mirroring internal/e2e's exited. The helper has its own oracle test (alive / killed-unreaped / reaped). scriptview.go is untouched — the process-group termination behaviour is unchanged, satisfying the second acceptance criterion by diff.

    Evidence (remote dispatch, fleet-command.yml fallback — fleet queue dispatch is blocked by TLS defect #13185):

    Caveat: the pass was observed on the GitHub-hosted dispatch runner (which reproduced the failure), not in a Fleet executor container itself — the executor-container pass is inferred from the zombie mechanism the oracle test pins. If the executor run still fails, the next slice is to look at the executor's PID 1 / init rather than the test.

    Next slice after this PR: none for this issue if the executor run goes green — both acceptance criteria are then met and the issue can close with the executor run as evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstatus:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions