orca/.github/workflows
Jinjing 433df4be3c
fix(runtime): prevent file watcher SIGSEGV from crashing orca serve (#8370)
* Fix crash-isolated file watcher process pool for orca-serve SIGSEGV afte

Replace the worker-thread runtime file watcher with a forked, crash-isolated
@parcel/watcher child process pool so a native FSEvents fault can no longer
take down the main/serve process, and add bounded event batching, delivery
backpressure, and quarantine-based recovery for faulty watch roots.

* Fix crash-isolated file watcher teardown and shutdown leaks

- Fault harness could throw before mkdtemp/realpath completed, skipping
  cleanup; now tracks each temp path independently and races an async
  watcher-callback error so it can't escape the try/finally unhandled.
- In-process fallback swallowed unsubscribe failures via a bare rejection
  handler that could still throw; use .catch() instead.
- Watcher process entry's cancel-subscribe handler now reuses the async
  unsubscribe path when a crawl already finished, releasing the native
  handle instead of leaking it (blocks worktree unlock on Windows).
- Runtime watcher process pool exposed no real dispose(); shutdown now
  kills pooled children so they don't outlive the main process.

* Fix disposeSlot double-iteration bug in file watcher pool teardown

Remove the unnecessary array snapshot in dispose(): disposeSlot mutates
allSlots by deleting the slot being visited, and deleting the
in-progress element during Set iteration is well-defined, so the spread
copy was dead weight left over from prior debugging.

* Fix pending file watcher installs not aborting on unsubscribe

- Local/WSL watcher installs and SSH fs.watch setup now honor the
  in-flight AbortSignal, so the last unwatch cancels a slow native
  subscribe or remote setup instead of waiting for it to finish.
- Thread signal through IFilesystemProvider.watch and SSH-backed
  file explorer watches for the same early-cancel behavior.

* Fix crash-resubscribe hangs and SSH watch teardown races in file watcher

- Add a bounded deadline for post-crash resubscription crawls so one
  stuck root quarantines instead of pinning its whole shard forever.
- Report FSEvents overflow as recoverable so delivery continues after
  a dropped-events error instead of surfacing as terminal.
- Make WSL watcher abort errors real DOMException instances so
  AbortSignal-based cancellation checks recognize them.
- Rework SSH watch registration so ownership of the shared setup
  request (not just the first caller) decides teardown, preventing
  one caller's abort from cancelling another's shared watch and
  guaranteeing exactly one fs.unwatch per registration.
- Reformat reliability-gates.jsonc arrays and refresh WSL/SSH coverage
  entries and evidence runs to match the above.

* Add CI gate to run the file-watcher SIGSEGV fault harness under Electron

- The reliability gate and release workflows (mac, Linux) previously only
  exercised the crash-isolation harness under vanilla Node, which doesn't
  catch runtime differences in the actual Electron binary that ships to
  users.
- Adds an `ELECTRON_RUN_AS_NODE=1 pnpm exec electron ...` run of the same
  harness alongside the existing Node run, so #8212's SIGSEGV-survival
  contract is proven against both runtimes before packaging.

* Add CI gate blocking Linux/macOS release packaging on watcher fault reco

Adds a contract test asserting release-cut.yml and release-mac-build.yml
run the runtime-file-watcher-fault-harness after building and before
publishing artifacts, so a regression in watcher process fault recovery
fails release packaging instead of shipping silently.

* Fix use-after-clear crash in failAllWatcherSubscriptions

Snapshot the records map before iterating, since onTerminalError
hooks can dispose the supervisor and clear `records` mid-loop,
causing a crash. Also update the matching test to assert against
the shared buildParcelWatcherIgnoreOptions helper instead of a
loose arrayContaining match.

* Fix use-after-clear crash in failAllWatcherSubscriptions

Snapshot watcher records with Array.from instead of spread, since
spread syntax over an iterator that's mutated mid-loop by
onTerminalError hooks can produce inconsistent results.
2026-07-12 18:15:15 -07:00
..
computer-e2e.yml fix(cli): preserve multiline arguments on Windows (#8374) 2026-07-12 02:13:41 -07:00
daemon-relocation-spike.yml Windows terminal update-survival (single consolidated PR) (#7538) 2026-07-07 19:21:07 -04:00
e2e.yml Stabilize sharded e2e CI concurrency (#6312) 2026-06-24 18:39:02 -07:00
golden-e2e-experiment.yml Temporarily disable Windows golden E2E CI (#5897) 2026-06-20 02:11:18 -07:00
homebrew-bump.yml
issue-os-labeler.yaml
linux-wayland-gpu-sandbox.yml fix(terminal): converge post-spawn PTY size reconcile to fix split-mount column desync (#6725) 2026-06-29 12:12:35 -07:00
mobile-android-release.yml fix(mobile): keep Android release versionCode committed (#7271) 2026-07-03 15:26:11 -07:00
mobile-ios-release.yml fix(mobile): fail fast when iOS App Store train is closed (#6633) 2026-06-29 14:08:23 -07:00
mobile.yml Open terminal file links on mobile (#7134) 2026-07-02 18:17:47 -07:00
pr.yml fix(git): cache unsupported capabilities per host (#8109) 2026-07-10 18:19:36 -07:00
pullfrog.yml Improve inactive workspace cleanup UX (#3600) 2026-06-28 11:38:23 -07:00
readme-downloads-badge.yml Use generated README downloads badge 2026-06-16 11:09:40 -07:00
release-cut.yml fix(runtime): prevent file watcher SIGSEGV from crashing orca serve (#8370) 2026-07-12 18:15:15 -07:00
release-mac-build.yml fix(runtime): prevent file watcher SIGSEGV from crashing orca serve (#8370) 2026-07-12 18:15:15 -07:00
terminal-perf.yml Expose terminal perf workflow profile knobs (#4826) 2026-06-07 12:48:46 -07:00
track-community-prs.yaml
win-update-e2e.yml Windows terminal update-survival (single consolidated PR) (#7538) 2026-07-07 19:21:07 -04:00
win-update-survival-e2e.yml fix(cli): preserve multiline arguments on Windows (#8374) 2026-07-12 02:13:41 -07:00
windows-signing-rehearsal.yml Sign Windows inner binaries during release (fail-open two-request SignPath flow) (#7866) 2026-07-09 01:29:10 -04:00