Repository navigation
fix(serve): give the first AppImage serve one unpacking deadline and progress - #28015
Merged
Merged
Conversation
…progress Direct AppImage serve now unpacks its stable copy once, under one overall deadline that also bounds the registration lock wait and both extraction attempts, prints progress to stderr, and refuses fast when the private cache is not writable, not executable, or too full. Co-Authored-By: Claude <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
ELI5
On Linux, the first time
orca-linux.AppImage servestarts after an update, it unpacks the AppImage once (about 500 MB) before it registers theorcacommand. Before this change, that wait was silent and was bounded only by several separate 5-minute timers, so it could look hung for a long time. Now the wait has one deadline. It prints progress while it works, and it stops early with a clear reason if the unpack cannot work.What Changed
AppImage servecalled the CLI installer and then the bareorcadispatcher installer.noexeccache was only discovered after the extraction failed.One overall deadline (5 minutes) covers the lock wait and every extraction attempt. The CLI installer and the dispatcher run inside the same deadline.
Progress on stderr, which is where serve's diagnostics already go; stdout stays the JSON readiness channel:
[serve] First start of this AppImage: unpacking a stable copy into ~/.cache/orca/appimage (up to 300s)AppImage copy ready after Ns, or the reason it could not finishPrecondition check before extracting. The cache must be:
noexecmount fails here);If any check fails, serve skips CLI registration with that reason and carries on serving, which is what it did before after a long wait. A read-only AppImage location, such as
/opt, is fine: the AppImage directory never needed to be writable.orca servepath. Its default runtime does not extract at startup.Why
Linked Issue
Part of the D3 AppImage work, for direct serve (#18200 / #15956). It does not close either issue.
Visual Proof
N/A. The only change users see is stderr text. The packaging CI check now asserts that the line appears.
Testing
servecontainer, with a read-only AppImage bind and a fresh cache, now asserts that[serve] AppImage copy ready afteris printed.Notes
Checklist
pnpm lint,pnpm typecheckpass locally; CI covers the rest