Repository navigation
fix(test): accept ESRCH after Ollama proof descendant exits - #12797
Conversation
Signed-off-by: Rebecca Sliter <[email protected]>
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes. ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review. 📝 WalkthroughWalkthroughThe descendant cleanup test now accepts ChangesProcfs cleanup assertion
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~4 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to This is a narrow test-only adjustment for procfs reporting a vanished descendant. No actionable merge-blocking risk is evident. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Code Coverage OverviewLanguages: TypeScript TypeScript / code-coverage/pluginThe overall line coverage in commit 37c391c in the Show a line coverage summary of the most impacted files.
TypeScript / code-coverage/cliThe overall line coverage in commit 37c391c in the Show a line coverage summary of the most impacted files.
Updated |
Signed-off-by: Rebecca Sliter <[email protected]>
|
PR Review Advisor finished for commit Request review only when Require no Advisor blockers is green. |
…ng allocation (#12763) ## Outcome Dashboard and Hermes API allocation skips ports whose forward ownership cannot be verified and selects a verified available port. Other observation errors still stop allocation. Unverified ports remain occupied, and exhaustion diagnostics name every blocked port. ## Reason One uncertain listener previously blocked allocation across the entire range, even when other ports were free. **Original author: @sandeepstele (Sandeep Satheesh).** This adopts #12352 into NVIDIA/NemoClaw so required CI can access the reviewed OpenShell SDK. Sandeep's original authored commit, `9af8d39c4ab21f04cbd65182c121002bc502c197`, is preserved unchanged. Rebecca's follow-up strengthens exhaustion coverage, explains ownership-verification failures, documents read-only diagnostics and escalation, and integrates required validation infrastructure. ### Related issues Refs #11979. Adapter-side ownership detection is unchanged, so this does not claim to resolve every reported cause. ## Changes - Treat ownership-indeterminate ports as occupied while continuing the existing allocation scan. - Preserve fatal handling for other observation failures. - Cover dashboard and Hermes fallback allocation, timeout failure, and all eleven blocked dashboard ports in exhaustion diagnostics. - Explain recovery for unverified and mixed port failures while preserving occupied-port remedies. Include a blocked preferred port outside the default range and its observed state or registered owner. - Update sandbox operation and troubleshooting guidance to distinguish verified new port allocation from registered-port recovery. Document scoped forward and listener inspection, their ownership-proof limits, and escalation while preserving unknown resources. ## Verification Candidate: `061f4e4feeb014d86557a423595d88f8ce704935`. - Integrated canonical main `5f765a1` to consume the merged Linux process-cleanup test fix in #12797. The port implementation and its tests remain unchanged. - `node node_modules/vitest/vitest.mjs run --project cli src/lib/onboard/dashboard-port.test.ts src/lib/onboard/hermes-api-port.test.ts src/lib/adapters/openshell/forward-cli.test.ts src/lib/onboard/ollama-systemd/executable-proof.test.ts`: 206 tests passed; one Linux-only test skipped on macOS and awaits Linux CI. - `node node_modules/vitest/vitest.mjs run --project integration test/automation/pull-requests/growth-guardrails.test.ts`: 7 tests previously passed at `761972d`. - Normal commit-message, publication-validation, CLI TypeScript and checked-JavaScript hooks passed. Plugin push hooks skipped unaffected paths. - GitHub verified all nine PR commits, including the preserved original contribution. - `npm run docs`: passed after integration with zero errors, two warnings and 125 validated routes. All six generated page variants were inspected. The port-recovery wording is unchanged from the prior independent documentation review, which found no blocking issues. - The diff contains no secrets, API keys, or credentials. ## Review notes Sensitive paths: `src/lib/onboard/dashboard-port.ts` and its dashboard/Hermes tests. Existing review context is linked in [PR #12352](#12352 (review)) for candidate `71ad0e56825c770da9d5797dfc31d5b2098fc02a`. This replacement awaits its own required CI and independent review. --- Signed-off-by: Sandeep Satheesh <[email protected]> Signed-off-by: Rebecca Sliter <[email protected]> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Ports with unverified ownership are treated as occupied, allowing allocation to continue to the next verified available port. * When a range is exhausted, errors identify blocked ports and provide applicable recovery guidance. If no candidate’s ownership can be verified, the error directs users to inspect ownership before retrying. * Foreign or registered ports remain unavailable. Other indeterminate observation errors stop allocation. * **Documentation** * Updated sandbox and troubleshooting guides to explain verified port selection, blocked states, ownership checks, and recovery guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Signed-off-by: Sandeep Satheesh <[email protected]> Signed-off-by: Rebecca Sliter <[email protected]> Co-authored-by: Sandeep Satheesh <[email protected]> Co-authored-by: Rebecca Sliter <[email protected]>
Outcome
The Linux process ownership test accepts
ESRCHwhen a reaped descendant disappears during a/proc/<pid>/statread. It still rejects other read errors and requires any visible descendant to be dead or a zombie.Reason
The reported failures on main returned
ESRCHat an assertion that accepted onlyENOENT. Both indicate that the descendant is gone during this procfs check.Changes
ENOENTandESRCHfrom the descendant's procfs read.Verification
vitest run --project cli src/lib/onboard/ollama-systemd/executable-proof.test.ts: 30 passed, 1 skipped. The Linux-only process test is skipped on macOS and requires Linux CI.oxfmt --check src/lib/onboard/ollama-systemd/executable-proof.test.ts: passed.oxlint src/lib/onboard/ollama-systemd/executable-proof.test.ts: passed.npm run validate:pr: passed.git diff origin/main...HEAD --check: passed.Signed-off-by: Rebecca Sliter [email protected]
Summary by CodeRabbit