Files
openclaw/test/scripts
Peter Steinberger ba65a56ffd test(scripts): fix pid-write race in tsc-boundary SIGTERM test (#109140)
The child wrote its pid with fs.writeFileSync, which makes the file visible at
open() (0 bytes) before the content lands. Under CI load the existsSync-gated
reader in waitForFile could observe the empty file, so readFileSync returned ''
and Number.parseInt yielded NaN, making isProcessAlive(NaN) false and failing the
pre-kill liveness assertion (checks-node-compact-small-6 flake). Write the pid to
a temp file and rename it into place so the path only appears with full content.
2026-07-16 09:54:49 -07:00
..
2026-06-04 20:49:50 -04:00
2026-06-04 20:49:50 -04:00
2026-06-04 20:49:50 -04:00