Skip to content

test(llc): drive the usage-after-exit polls explicitly (#20466) - #21201

Merged
mrveiss merged 4 commits into
mainfrom
issue-20466-poll-test
Nov 8, 2026
Merged

mrveiss merged 4 commits into
mainfrom
issue-20466-poll-test

Conversation

@mrveiss

@mrveiss mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Thinking Path

Refs #20466. PR #21068 was approved with a deterministic version of its usage-after-exit test (commit 1f8b069, approved at b9783e8). Merge train T97 (#21184) landed #21068 at its earlier approved head, so that commit never reached main. Main still has the timing-dependent version, which asserts >= 3 live polls and can flake under CI load. This PR brings the approved fix to main by cherry-picking it from current main.

Single-issue rationale

It is one approved change to one test file, and it completes PR #21068's review.

What Changed

  • autobot-backend/llc/adapters/tests/test_usage_read_after_exit_20466.py: the real child process now blocks on sys.stdin.readline() instead of time.sleep. The test calls the real ClaudeCodeAdapter.status 3 times while the child is alive, then writes to stdin, closes it and awaits the exit. It asserts the exact sequence [RUNNING]*3 + [COMPLETED]: the 3 alive polls have tokens None, and the final poll is COMPLETED with 123/45 and billed usage 123/45. The asyncio.wait_for(30) bound is kept.
  • No production code changes.

Verification

Model Used

Claude (Opus coordinating).

🤖 Generated with Claude Code

@mrveiss mrveiss added this to the M2 - Company OS workflow-ready milestone Nov 8, 2026
@mrveiss mrveiss added area: company-os Wave 4 · cluster A — Company OS & LLC canvas phase:M2.5 Heartbeats fire reliably labels Nov 8, 2026
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 31 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 8e6ba8f and 323f6ec.

Files selected for processing: 1

  • autobot-backend/llc/adapters/tests/test_usage_read_after_exit_20466.py
  • 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

@mrveiss

mrveiss commented Nov 8, 2026

Copy link
Copy Markdown
Owner Author

Trainmaster review at 7b73f6c: APPROVE. It is the already-approved #21068 fix 1f8b069 (delta review issuecomment-6721194788), cherry-picked unchanged; the diff lines are identical. That fix missed merge train #21184, which carried #21068 at its earlier head. Test-only, one file. Landing individually.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Notice: 29 open PRs — past the runaway threshold (25)

This is not a request to defer this PR. There is no cap on open PRs (#19397) -- nothing blocks opening or pushing a PR.

This notice only means the count is high enough to be worth a glance for a runaway — something opening PRs in a loop, or a merge pipeline that has stalled so nothing is draining.

Currently open:

If the queue is draining normally, ignore this. Otherwise:

  1. Check whether CI is dispatching at all — see the ci-dispatch-watchdog status on these PRs
  2. Approved PRs land through the merge train the coordinator sequences (merge commits, never squash) -- check the open chore(merge-train) PR is moving, not each PR on its own
  3. Look for a loop opening near-identical PRs

Warn-only runaway detector — .github/workflows/pr-queue-gate.yml. It never blocks a merge.

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

✅ SSOT Configuration Compliance: Passing

🎉 No new hardcoded values of either class — ssot and other both block.

Known backlog in pipeline-scripts/hardcoded_values_baseline.txt is suppressed and tracked in #14371.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: company-os Wave 4 · cluster A — Company OS & LLC canvas phase:M2.5 Heartbeats fire reliably

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant