Repository navigation
Conversation
… readiness The readiness self-test read the process table once against its 3s deadline, so a loaded host failed activation (orcad_activation_no_readiness). Timeouts now retry within a 30s budget and, if the table never answers, start anyway with a warning. A table that answers wrongly or fails outright still fails readiness.
Collaborator
Author
|
Closing as a duplicate of #25723, which fixes the same Windows readiness timeout by falling back to a single-process creation-time query. That keeps the self-test meaningful without a 30s retry window. |
11 tasks done
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 a busy Windows machine, a freshly installed orcad server could refuse to start. Its startup self-check asks Windows for the list of running processes, and gave up if Windows took more than 3 seconds to answer. Now a slow answer gets retried, and slowness alone never stops the server from starting.
What Changed
Error: windows process table timed out. The deploy then reportedinstalled-not-activated / orcad_activation_no_readiness, and if nothing was active before, the host served nothing.src/main/orcad/orcad-runtime-native-preflight.ts:preflightWindowsProcessIdentitynow reads throughreadProcessTableWithinBudget. Only reads that timed out are retried. A read that is refused as wedged, because an earlier read hasn't called back yet, is the same slowness and is retried too.src/main/windows/windows-process-table.ts: the timed-out and wedged rejections are now a typedWindowsProcessTableTimeoutError(newwindows-process-table-timeout-error.ts). Readiness can tell slowness apart from a wrong answer without matching message strings. The messages are unchanged.Why
The self-test exists to catch a broken or mismatched native process-table binding before the server owns user state. A wrong answer proves that; a slow answer doesn't.
The 3s deadline belongs to a single read: it stops one stuck native call from wedging the reader forever. That makes it too tight to judge readiness on a loaded host. Runtime readers already treat a timeout as "unverifiable", so starting with a slow table loses nothing, while refusing to start loses the whole host.
The budget fits inside the 90s outer readiness timeout (
ORCAD_PROFILE_PREFLIGHT_TIMEOUT_MS), alongside the PTY and watcher probes.Alternatives considered:
Linked Issue
Node-runtime Phase 3. Windows sibling of real-host BUG-17. Evidence: CI artifact 11375862451 (
orcad-cmd.json, candidateorcad.log).Visual Proof
N/A: server startup only, no UI.
Testing
Automated tests added:
orcad-runtime-native-preflight.test.tscovers four cases:The first two fail on the old code.
windows-process-table.test.tsnow asserts that timed-out and wedged reads reject with the typed error.I manually tested these changes locally (macOS; the Windows path is unit-tested)
Notes
SSH: this is the readiness check a managed orcad runs on a Windows SSH host before activation, so the fix applies there directly. No wire or protocol change.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (typecheck node, the touched tests and the changed-code gate pass locally; CI covers the rest)