Repository navigation
kicad: harden macOS write timeouts, design commit bounds, and socket paths - #1648
Merged
Merged
Conversation
…paths Issue #1630 reported KiCad writes hanging for 300s while reads succeeded on macOS v0.16.4 (primarily caused by GCD worker threads blocking SIGCHLD before #1456/#1607 and unbounded snapguard/kipc waits fixed in #1625). This hardens the remaining write-path edge cases on HEAD: - Remove `fallback: true` from embedded GUI timeout replies (`send_gui_raw` and expired-deadline `Msg::Raw`) and check `BeginCommit` timeouts before `fallback` in `ipc::run_on`, so embedded `BeginCommit` timeouts reach `explain_begin_commit_timeout_gui` (and other GUI timeouts surface real errors instead of bogus file-fallback activity entries). - Bound synchronous `design_record_note` / `commit_design` calls (`30s` timeout) via a detached task that still finishes telemetry/STEP warm-up and posts completion or failure in the thread, while distinguishing task drop from timeout. - Use `git::push` (which sets `GIT_TERMINAL_PROMPT=0`) in `canonical::push_upstream`. - Canonicalize `snapshot::repo_lock` keys via `canonical::same_file` (handling macOS `/var` -> `/private/var` symlinks) and preserve `TurnGuard.person` when recomputing an empty-`top` guard in `snapguard::write_guard_within`. - Guard headless `kicad-cli api-server` socket directories against macOS's 104-byte `SUN_LEN` limit with a per-UID `bp-ks-<uid>` fallback and strict `0o700` / non-symlink / UID ownership checks. Fixes #1630
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.
Issue #1630 reported KiCad writes hanging for 300s while reads succeeded on
macOS v0.16.4 (primarily caused by GCD worker threads blocking SIGCHLD before
#1456/#1607 and unbounded snapguard/kipc waits fixed in #1625). This hardens
the remaining write-path edge cases on HEAD:
fallback: truefrom embedded GUI timeout replies (send_gui_rawand expired-deadline
Msg::Raw) and checkBeginCommittimeouts beforefallbackinipc::run_on, so embeddedBeginCommittimeouts reachexplain_begin_commit_timeout_gui(and other GUI timeouts surface realerrors instead of bogus file-fallback activity entries).
design_record_note/commit_designcalls (30stimeout) via a detached task that still finishes telemetry/STEP warm-up and
posts completion or failure in the thread, while distinguishing task drop
from timeout.
git::push(which setsGIT_TERMINAL_PROMPT=0) incanonical::push_upstream.snapshot::repo_lockkeys viacanonical::same_file(handlingmacOS
/var->/private/varsymlinks) and preserveTurnGuard.personwhenrecomputing an empty-
topguard insnapguard::write_guard_within.kicad-cli api-serversocket directories against macOS's104-byte
SUN_LENlimit with a per-UIDbp-ks-<uid>fallback and strict0o700/ non-symlink / UID ownership checks.Fixes #1630