Skip to content

test(cli): follow the per-endpoint inherited receipt count in the sibling stop oracle - #9114

Merged
lidge-jun merged 1 commit into
devfrom
lane-w/fix-9062-stop-oracle
Nov 25, 2026
Merged

lidge-jun merged 1 commit into
devfrom
lane-w/fix-9062-stop-oracle

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

Summary

tests/cli/cli-dispatch.test.ts reads src/cli/index.ts as text and still expects the Windows service stop to pass inheritedReceipts: inheritedTeardowns.length. #9062 (8d43c92f84) changed that call to inheritedTeardownProbeCount(inheritedTeardowns), so ocx stop of a sibling claims no receipt and restores nothing fails on dev. The test reads source as data, so the import-graph test changed run on #9062 could not see it. The full shard test 4/5 on #9022 caught it.

This updates the regex to the new call. The assertion still checks that a sibling stop takes the no-service branch and that a manager stop claims the handover before stopping.

Verification

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed (none needed: test-only).
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults (none touched).

Summary by CodeRabbit

  • Tests
    • Updated a test expectation for how inherited teardown probes are counted.

@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner November 25, 2026 04:32
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T04:34:11.768102Z 2d90a8b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The sibling-stop source assertion now expects the inherited receipt count to use inheritedTeardownProbeCount(inheritedTeardowns).

Changes: CLI dispatch test

Layer / File(s) Summary
Update receipt count assertion
tests/cli/cli-dispatch.test.ts
The assertion now expects inheritedReceipts to receive inheritedTeardownProbeCount(inheritedTeardowns) instead of inheritedTeardowns.length.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Merge Risk: Minimal · up to 2d90a

This is a test-only assertion update that matches the current stop-call source. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the test-only change in tests/cli/cli-dispatch.test.ts: the sibling stop source assertion now expects inheritedTeardownProbeCount(inheritedTeardowns) instead of inheritedTeardowns.leng…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the test-only change in tests/cli/cli-dispatch.test.ts: the sibling stop source assertion now expects inheritedTeardownProbeCount(inheritedTeardowns) instead of inheritedTeardowns.length. The title's wording is specific and matches the raw summary and PR objectives, which describe the same one-line regex update.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 66367b7 and 2d90a8b.

Files selected for processing: 1

  • tests/cli/cli-dispatch.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@github-actions github-actions Bot added the chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature). label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@lidge-jun

Copy link
Copy Markdown
Owner Author

Maintainer integration (lane W, @lidge-jun) at exact head 2d90a8b5a59336d1ddb699143c40f7ecbc959d98. This repairs dev after #9062: the sibling-stop source oracle in tests/cli/cli-dispatch.test.ts still expected inheritedTeardowns.length.

Relaxed merge gate, checked against dev 9e714a6087:

  • (a) the head is 9 commits behind.
  • (b) merge-tree is clean (cf0672d412).
  • (c) no intervening commit overlaps this PR's single file, and the PR touches no shared class.
  • (d) the temporary merge 34f9e2f62d was not pushed. Typecheck is clean. cli-dispatch + grok-lifecycle give 112 pass / 0 fail. The guards give 53 pass / 0 fail. structure:check passes.

Evidence:

  • PR CI on this head: all checks pass. The exact-head test changed job ran the changed test file and is the test:changed evidence (coordinator ruling).
  • On dev 66367b7c5b, before the fix, cli-dispatch gave 78 pass / 1 fail.
  • Independent gpt-6.1-terra review: PASS, no findings.

@lidge-jun
lidge-jun merged commit bb4a19a into dev Nov 25, 2026
30 of 31 checks passed
@lidge-jun
lidge-jun deleted the lane-w/fix-9062-stop-oracle branch November 25, 2026 04:54
luvs01 added a commit to luvs01/opencodex that referenced this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance, CI, tests, refactors, or build changes (not a user-facing bug or feature).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant