mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4216] [CLOSED] [Engine] Keep portable watcher identity stable across process state changes #4954
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4954
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4216
Author: @yuantianxiayouqingrenzhongchengxiongmei
Created: 10/26/2026
Status: ❌ Closed
Base:
main← Head:fix/lifeline-watcher-token📝 Commits (1)
d168516[Engine] Keep portable watcher identity stable across process state changes📊 Changes
2 files changed (+76 additions, -2 deletions)
View changed files
📝
serve/lifeline.py(+5 -2)➕
serve/test_watcher_token.py(+71 -0)📄 Description
When a child changes from running to sleeping between launch and parent death, the portable watcher can leave it alive. Its identity token currently includes the mutable
ps statfield, so the same process is mistaken for a reused PID. This matches the failure reported in #3407.Compare only the start time in both the launcher and standalone watcher. Keep the state separate for zombie detection, including
ZsandZ+. Add deterministic regressions for state transitions, localized start times, PID reuse, released children and zombies.Fixes #3407.
Validation of
d168516:python -X utf8 -m unittest serve.test_watcher_token serve.test_lifeline -qran 13 tests: 11 passed, 2 POSIX/Linux cases skipped, with one unclosed-file ResourceWarning.git diff --check origin/main...HEADpassed.Not run: real macOS process validation. No native engine/backend code changes or performance claims.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.