Skip to content

Resolve #4153: Make lane watch fixture teardown deterministic - #4303

Merged
ayden94 merged 6 commits into
mainfrom
issue-4153
Nov 25, 2026
Merged

ayden94 merged 6 commits into
mainfrom
issue-4153

Conversation

@ayden94

@ayden94 ayden94 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Summary

Make the lane-v4 readiness/watch fixture shut down reliably under the original Node test suite's inter-file concurrency.

Closes #4153

Changes

  • Keep the fixture root until the watch and record-writer processes, their owned descendants, and the loopback resources have closed.
  • Add deterministic coverage for teardown failures, including ENOTEMPTY, transient EPERM, and a signaled writer.
  • Isolate the writer from an inherited WATCH_PORT without changing the real subprocess or readiness assertions.

Testing

  • Reviewed head: 9eb44e7b1e09061573c1386d86f3bc8a67c765da; contract, code, and verification all passed. No axes omitted.
  • Full lane-v4-cli.test.mjs: two consecutive runs each on Node 24.21.0 and 24.11.0, 241 passed per run.
  • Original pnpm test:node with default inter-file concurrency: two consecutive runs each on both runtimes, 1,683 passed and one skipped per run.
  • The inherited-WATCH_PORT regression failed its intended assertion on the prior head and passed on the reviewed head with identical TAP arguments. A separate pinned-base diagnostic reproduced the ENOTEMPTY cleanup-order failure.
  • pnpm verify:local was not run. Full exact-head GitHub CI remains required before merge.

Release impact

  • This PR has consumer-visible release impact and includes a changeset.
  • This PR has no consumer-visible release impact.

Public export documentation

Not applicable: no public exports or packages changed.

Behavioral contract

  • No documented behavioral contracts were removed without migration notes.
  • Runtime invariants are covered by regression tests.

No new package contract or limitation is introduced.

Platform consistency governance (SSOT)

Not applicable: no platform contract, package README, governance document, or CI configuration changed.

@ayden94
ayden94 merged commit 002562e into main Nov 25, 2026
27 checks passed
@ayden94
ayden94 deleted the issue-4153 branch November 25, 2026 15:11
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.

execute-lane lane-v4-cli 테스트의 readiness/watch 테스트가 실패 대신 무한 대기

1 participant