Skip to content

Keep private server leases out of the stop result - #2739

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38333313254-private-stop
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38333313254-private-stop

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

server stop now returns false when it encounters only a private listener lease with no service.json. Its old-record fallback counted any held lease as a running service, so the return value depended on whether stop observed a listener just before or just after its preparation ended. This surfaced as an intermittent failure in PR #2732's CI run. An existing but unreadable service record still takes the fallback path.

A deterministic test holds the private lease at the stop decision: it fails on the previous code and passes with this change. The original private-preparation process test and adjacent stop cases also pass (five focused cases total).

A private listener holds server.lock before any service.json exists. cmd_stop counted that lease as a running service under the old-record fallback and could return true or false depending on the release race. Require an existing unreadable record for that fallback. A deterministic lease test fails before and passes after; the existing private-preparation stop test and adjacent stop checks pass.
@leaf-agent
leaf-agent merged commit da4dd44 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38333313254-private-stop branch October 13, 2026 05:05
max-sixty added a commit that referenced this pull request Oct 13, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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