Repository navigation
fix(update): release the restart lease before the service refresh (#5760) #6404
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fafb427
fix(update): release the restart lease before the service refresh (#5…
lidge-jun 923da9b
fix(update): re-acquire the restart lease before the direct-start fal…
lidge-jun bb61bf2
test(update): resolve the restart-lease authority the way the module …
lidge-jun d085621
test(update): dump the held-lease child's output when it outlives the…
lidge-jun 3c0f7d1
test(update): report the child's effective lock path on POSIX survival
lidge-jun 36a2690
Merge commit '58a26f0c13e7fa7c469219d8bbd3dfca0a9e33c4' into devin/17…
devin-ai-integration[bot] a5e3da7
Fix restart lease test child authority fixture
devin-ai-integration[bot] 26cebf7
Merge commit '06cc3815c06a10120d89ef986c46be95be37f28a' into devin/17…
devin-ai-integration[bot] e572fde
Align restart child home with test guard
devin-ai-integration[bot] 505f2b2
fix(update): fail the job when the restart lease stays claimed after …
lidge-jun e7a5905
Merge remote-tracking branch 'origin/dev' into rel-devin/up-6404
lidge-jun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On macOS and Linux, releasing the ownership-mutation lease before spawning the entire
service repaircommand creates a takeover race:repairService()reads ownership once atsrc/service/repair.ts:169, but a desktop claim can commit immediately afterward while the repair continues to rewrite, stop, and restart the service. If that refresh serves successfully, the early return at line 1234 skips the new reacquisition/veto entirely, so the updater can mutate a service that became desktop-owned during the released window. Keep the lease through the repair's ownership check and service mutations, releasing it only at the OS-manager activation boundary, then revalidate ownership before accepting success.Useful? React with 👍 / 👎.