Skip to content

WIP: Windows test-content layer — tool-identity stand-down for issue76_93 (root D-2) - #604

Merged
caomengxuan666 merged 4 commits into
masterfrom
fix/windows-test-content-layer
Oct 26, 2026
Merged

caomengxuan666 merged 4 commits into
masterfrom
fix/windows-test-content-layer

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Root D fixes for the niubash Windows test-content layer (full adjudication: ~/workspace/niubash-ci-fix/D-REPORT.md; enumeration evidence in closed PR #601).

D-2 (this PR's original scope) — issue76_93_find_pipeline_capture failed deterministically on GH runners because find resolves to C:\Windows\System32\find.exe (Microsoft FIND) and sort to System32 sort.exe: resolvable under command -v but foreign. The fixture now probes each tool's GNU behavior (plain top-level pipelines) and stands down with the resolved path + probe evidence on stderr. GNU assertions unchanged wherever GNU/GNU-semantics tools are present.

D-1 — create_no_window_parent_reuses_caller_hidden_console flaked once (4 distinct conhost PIDs) in 9 executions. Instrumented adjudication (32 sessions, 5 ms sampling, idle + parallel load): exactly one conhost per session, created 3–27 ms after the root niu, ppid = root, alive all session — the product behavior is correct; the counter was attributing lingering conhosts via raw PID walks under PID recycling. run_and_observe_exe now counts only conhosts created at/after the root (fail-open on unreadable timestamps).

Verified: run 40296914346 = 8/8 jobs green on this branch. The latest run (40298825503) is red only at cargo fmt --check on crates/niubash-runtime/src/completion/column_menu.rs:128 — fmt dirt that master tip 05bf4d0 brought in itself (master's own run 40298459970 is red there too); this PR's diff touches only the two test files. Re-run once master fmt is clean.

…vability

Root D-2 adjudication: on the GH windows runner, find resolves to
C:\Windows\System32\find.exe (Microsoft FIND) and sort to System32
sort.exe; both 'resolve' under command -v, reject the GNU semantics,
and starve the pipeline (count=0). The fixture now probes each
tool's GNU behavior (plain top-level pipeline shapes) and stands
down with the resolved path + probe evidence on stderr instead of
asserting GNU expectations against a foreign namesake. GNU and
GNU-semantics tools (Git usr\bin, winuxcmd links) pass the probes
unchanged, so dev-machine coverage is preserved.
…ID walk alone

Root D-1 adjudication: the gate's lone '4 distinct conhost PIDs'
failure is an observation artifact. The counter unioned every
conhost whose ppid chain reached the root PID; a conhost lingering
from a dead niu whose PID was recycled as the new root satisfies
that walk without ever being allocated by the observed session.
Instrumented reruns (creation-time probe, 5 ms sampling) found
32/32 sessions — idle and under parallel gate load — with exactly
one conhost, created 3-27 ms after the root niu, ppid = root,
alive for the whole session; the gate itself passed 8 of 9
executions. No product change: run_and_observe_exe now only counts
conhosts created at/after the root (unreadable timestamps keep
the sighting, failing open). Visible-window offender attribution
is unchanged.
Line endings are not identity: a Windows-native GNU-semantics
tool may emit CRLF. Without normalization the sort probe could
stand the tests down on a correctly-provisioned dev machine.
Microsoft FIND still trips the find probe (0 lines counted).
@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 26, 2026 09:51
@caomengxuan666
caomengxuan666 merged commit b0b18ac into master Oct 26, 2026
9 of 10 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/windows-test-content-layer branch October 30, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant