Repository navigation
Description
Rust-baseline validation recorded separate Nextest LEAK results for the
CLI parsing test and an LSP JSON-RPC test on different runs. Both observations
remain unresolved; no shared cause is established. Track the investigation as
required work in the test-quality layer (#295), independently of the Merman
installer change (#292).
Evidence
- Candidate tree:
b3c4b59068a791b007acdccb9d416b8c70027f59, parent
04add9a84dc9bf840116c22fe01f8be0463b2241. Only CI, developer documentation,
and a Python workflow contract changed. The affected Rust source blob is
identical to that parent and the earlier baseline5695c2c4. - Full Nextest run: 1,558 passed, four configured skips, 19 slow, one LEAK.
The affected test was marked LEAK at 0.285 seconds; the baseline marked it
PASS at 0.031 seconds. All workspace doctests also passed. - The direct test path uses in-memory Cursor/Vec values and synchronous JSON
parsing, with no direct process/thread spawn. This does not establish the
warning's cause or harmlessness. - A later test log recorded a separate
LEAKfor
weaver-lsp-host::adapter::jsonrpc::tests::deserializes_error_response_with_data
at 0.291 seconds (test ordinal 916;/tmp/weaver-pr292-final-wave-dBs6Pv/test.log:1629).
In that same log, the CLI test wasPASSat 0.033 seconds (ordinal 573;
line 1253). This later pass does not erase the earlier CLILEAK; the LSP
result is a different test on a different run. The captured wave has no
terminaltest.status, so this line records the LSP warning only and does
not establish completion or success of the whole test gate. - Source inspection on the current Install Merman and Whitaker from prebuilt releases #292 candidate confirms distinct, direct
test paths: the CLI test helper in
crates/weaver-cli/src/tests/unit.rs:173-188feeds an in-memoryCursor
toread_daemon_messages; the implementation in
crates/weaver-cli/src/daemon_output.rs:89-125reads and parses those lines
synchronously. The LSP test in
crates/weaver-lsp-host/src/adapter/jsonrpc.rs:225-231parses a fixed JSON
string withserde_json::from_str. Neither test body directly spawns a
process or thread. These call paths do not establish a common cause. - Exact runner: cargo-nextest 0.9.133, commit
65e806bd589d12c4341d3696a02a9788bd437c3c. Its source classifies LEAK when
both captured streams have not been observed at EOF within the default
200 ms after child exit under the embedded default profile. It does not
identify a surviving writer. The Rust type default is 100 ms, but the
embedded profile overrides it to 200 ms. Default
leak result is Pass; no repository override or suppression was introduced. - One approved capture-preserving exact-test run under an outer process/FD
trace selected one test and passed at 0.070 seconds (producer/tee 0/0).
Both capture pipes reached EOF; the only test clone was its libtest thread,
which exited before the test process. No surviving writer was observed in
that passing run. Because LEAK did not reproduce, the hypothesis remains
inconclusive. This run does not supersede the original warning.
Effective-profile provenance: the exact pinned
embedded configuration
sets leak-timeout = "200ms". This corrects the initial report's 100 ms
claim; the experiment retained the actual profile unchanged.
A related upstream investigation is
nextest #1469.
Its Linux sibling pre-exec writer-inheritance report is an investigation lead,
not proof of this event's cause. The single selected-test experiment did not
exercise concurrent sibling tests.
Ownership and acceptance
Assignee: leynos. Execution owner: the delegated Rust baseline test-quality
Journeyman, coordinated by the train restacker. This is required follow-through
for #295, not a closed warning or a nitpick.
- Preserve the original warning and targeted trace receipts.
- A bounded sibling pre-exec (H3) diagnostic is still source-preparation-only.
Its live backend is blocked until the controller has a reviewed, finite
release-and-drain recovery path for an owned stopped sibling. No H3 run has
occurred, and this tooling gap is not evidence of either warning's cause. - Establish the actual source/harness/runner mechanism using a separately
reviewed, bounded diagnostic plan; do not stress-rerun until green. - Fix an evidenced repository defect in the relevant test-quality layer, or
link an evidenced upstream runner defect and document its owner/blocker and
the repository's established handling policy. A passing rerun alone is
insufficient to close this issue. - Keep normal capture, leak policy, compiler admission and shared caches;
do not raise the threshold or suppress LEAK to obtain a clean result. - Verify any repair on the actual restacked test-quality head and retain the
complete gate evidence. Do not mark the full train converged while this
required finding is unresolved.
Local evidence retained by the execution
- Original run:
/tmp/weaver-pr292-postmerge-gates-oct14/test.out(line 1269). - Source/call-path triage:
/tmp/weaver-pr292-nextest-leak-triage-oct14/report.md. - Pinned runner source:
/tmp/weaver-pr292-nextest-runner-source-oct14/report.md. - Single experiment:
/tmp/weaver-pr292-nextest-pipe-h1-oct14/report.md, SHA-256
071ada9d909b598d70ec45eaaf667eb4d92f41f4d9a0c175889bc9f370a490c1.
Activity
[-]Investigate intermittent Nextest LEAK in CLI parsing test[/-][+]Investigate intermittent Nextest LEAK warnings in CLI and LSP tests[/+]