Repository navigation
fix: findings of the reviews before 0.54.0 (prepare in the main tree, lane usage limit, clone address) - #637
Merged
Merged
Conversation
… lane usage limit, clone address) - prepare in the main tree (#630): a restart that prepares stops the other running services with the same outputs and starts them again after; a start that would prepare under one is refused. The key is taken from the inputs as prepare left them, so `npm install` rewriting the lockfile is not due again and its own write is no notice. The notice goes when the service stops. The restart_on match comes from the watcher; a failed key goes through restart_failed. - The node reads at most 1 MiB of a lane daemon's /v1/usage (S1). - clone_url refuses %3F, %23 and %25 (S2). - kept_for_lanes on a service's view: a singleton and what it comes after; the dashboard counts the same services as the daemon's stop. - Windows before 10 21H2: the whole working set where the private one is missing; macOS: the footprint test compares within a tolerance. Bug-Class: shared-output-race Bug-Class: stale-cache Bug-Class: unbounded-input Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
What and why
The code review (
/code-review high) and a security review ofv0.53.0..7f159a2before 0.54.0 found twelve points; the reports are keptinternally. This fixes ten of them; one is #636, one cleanup is folded in.
preparenames the sameoutputsand starts them again after it; astart that would prepare under such a service is refused with a hint
(
npm cifailed on their locked files on Windows, elsewhere they lostnode_modulesunder them).prepareleft them: annpm installthat rewrites the lockfile is not due again, and its own writeis no notice (the notice now checks the inputs against the mark).
restart_onrestarts the service (noper-event clone and glob compile); a key that cannot be read goes
through
restart_failed./v1/usageis read (http_body_util::Limited); what answers on thatport is the lane's.
POST /hub/clone(feat(hub,ui): Add a stack clones with the users Git client #629, security):%3F,%23and%25arerefused, so no encoded query or fragment reaches GitHub Desktop's link.
kept_for_lanes(a singleton and what it comes
after, transitively; the same functionas the daemon's stop), and the dashboard counts those, not only the
singletons. Additive field, older daemons fall back to
singleton.private one stays zero; the macOS footprint test compares within a
tolerance instead of exactly.
Decided on my own:
kept_for_lanesas a new view field (additive, indocs/dashboard-api.md); refusing a plain start under a sharer instead ofstopping it from inside the start.
Verified
a_prepare_that_rewrites_its_inputs_is_not_due_again(red: "due again after its own write"),
outputs_a_running_service_shares_are_not_prepared_under_it(red: theprepare ran under
admin), the node test with a body past the limit (red:read whole),
a_clone_url_is_https_and_a_plain_path(red:%23), thestore test for
kept_for_lanes(red:mainActivestayed true).what_a_singleton_comes_after_is_kept_for_the_lanes(the extracted closure),
a_windows_without_the_private_figure_gives_the_whole_working_set.cargo fmt,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace(923 passed);ui: typecheck, 326 tests, build.macos-15).Bug-Class: shared-output-race, stale-cache, unbounded-input
🤖 Generated with Claude Code