Skip to content

fix(agent-device): test rigs start their daemons without the host's real load probe - #1868

Merged
V3RON merged 2 commits into
mainfrom
bug/1863
Nov 25, 2026
Merged

V3RON merged 2 commits into
mainfrom
bug/1863

Conversation

@V3RON

@V3RON V3RON commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1863

Status

Implement: done (2/2 green, audit probed 2/2) Review: round 1 pass, 0 findings Hardware: n/a Gate: not run (merge needs maintainer approval in this session)
Next: gate (.agents/scripts/merge-pr.sh 1868)

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: 1.0M.
Runs: 6. Cost USD: 1.4734. Agent seconds: 4031.

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Gateway and worker test daemon launches set hostLoadProbe to null. New gateway and worker rig tests check that setUp() does not invoke productionHostLoadProbe.

Merge Risk: Minimal · up to 31534

This change makes agent-device test rigs start their daemons without the host's real load probe, which should remove the flaky test failures reported in the linked issue. It affects test code only, with no production behavior change and a trivial rollback.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Linked Issues check Inconclusive [#1863] The issue requires the failing tests to pass again: 6 tests in src/agent-device/edge-release.test.ts, similar failures in src/agent-device/edge-lease-end.test.ts, and a gateway sweep/adoption … Provide the test run output at the reviewed head (315343f) for src/agent-device/edge-release.test.ts, src/agent-device/edge-lease-end.test.ts, and the gateway sweep/adoption test in pnpm test:changed, showin…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title names the main change: agent-device test rigs now start their daemons without the host's real load probe. The raw summary confirms that test rigs pass hostLoadProbe: null to startDaemon, and…
Description check Passed The description references issue #1863 and gives status, review, and cost details for the change. It does not describe the code change itself or the validation test command, but it relates to the chan…
Out of Scope Changes check Passed The summary lists changes limited to agent-device test support and test rig daemon configuration (test-support.ts, test-gateway.ts) and two regression tests that check the rigs do not construct or cal…
Full details: Title check

Explanation

The title names the main change: agent-device test rigs now start their daemons without the host's real load probe. The raw summary confirms that test rigs pass hostLoadProbe: null to startDaemon, and the new tests assert the probe is not constructed during setUp. The title fits the changeset, and it is specific enough for a reviewer scanning history.

Full details: Description check

Explanation

The description references issue #1863 and gives status, review, and cost details for the change. It does not describe the code change itself or the validation test command, but it relates to the changeset and is not off-topic. The description lenient check passes.

Full details: Out of Scope Changes check

Explanation

The summary lists changes limited to agent-device test support and test rig daemon configuration (test-support.ts, test-gateway.ts) and two regression tests that check the rigs do not construct or call productionHostLoadProbe (gateway-rig-host-load.test.ts, worker-rig-host-load.test.ts). These changes connect directly to the issue's subject, which is the test rigs using the host's real load probe. No unrelated production code, configuration, or documentation change appears in the summary. The diff could not be read directly, so this verdict relies on the AI-generated summary and the file list.

Full details: Linked Issues check

Explanation

[#1863] The issue requires the failing tests to pass again: 6 tests in src/agent-device/edge-release.test.ts, similar failures in src/agent-device/edge-lease-end.test.ts, and a gateway sweep/adoption test in pnpm test:changed. The PR summary reports changes only to test-support.ts (setUp passes hostLoadProbe: null to startDaemon), test-gateway.ts (gateway and worker daemon configs set hostLoadProbe to null), and two new regression tests (gateway-rig-host-load.test.ts and worker-rig-host-load.test.ts). The summary lists no change to the edge rig (test-edge.ts) or to edge-release.test.ts. It is unknown whether the edge-release and edge-lease-end tests start daemons through setUp or the gateway rig, so the fix may not reach them. The PR reports '2/2 green' without naming a test command or test results. The author also did not run the gate. The root cause (the host load probe) is plausible but not confirmed by a failing-to-passing run. A diff inspection of test-support.ts was unavailable because changed blobs are missing from the checkout, so the summary is the only change evidence.

Resolution

Provide the test run output at the reviewed head (315343f) for src/agent-device/edge-release.test.ts, src/agent-device/edge-lease-end.test.ts, and the gateway sweep/adoption test in pnpm test:changed, showing them passing. Also confirm that the edge rig path used by edge-release.test.ts and edge-lease-end.test.ts calls setUp or startDaemon without the host load probe, or extend the change to that path. Make the changed blobs available for inspection.

  • 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

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 9a5f3d4d-52a5-467e-92fd-cd089c3312ae
Commits

Reviewing files that changed from the base of the PR and between 06d590a and 315343f.

Files selected for processing: 4

  • src/agent-device/gateway-rig-host-load.test.ts
  • src/agent-device/test-gateway.ts
  • src/agent-device/test-support.ts
  • src/agent-device/worker-rig-host-load.test.ts

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

@V3RON

V3RON commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 315343f

Runs: 6. Cost USD: 1.4734. Agent seconds: 4031.
Tokens input 106, output 24993, cache read 1200924, cache write 330932.
- build implementer: claude-sonnet-5-5 66 s $0.1385
- audit implementer: claude-sonnet-5-5 42 s $0.1063
- review 1 reviewer: claude-sonnet-5-5 2981 s $0.5151
- review 1 spec: claude-sonnet-5-5 12 s $0.0751
- review 1 code tests: claude-opus-5-5 911 s $0.5518
- review 1 claims: claude-sonnet-5-5 19 s $0.0866
Finding outcomes: {}. Classes: {}.
{"findings":[]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 25, 2026 18:21
@V3RON
V3RON merged commit 9021bd9 into main Nov 25, 2026
89 checks passed
@V3RON
V3RON deleted the bug/1863 branch November 25, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

src/agent-device/edge-release.test.ts fails 6 tests at base 4f6bb7dd (gateway pool never ready)

1 participant