You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(agent-device): test rigs start their daemons without the host's real load probe - #1868
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: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Linked Issues check
[#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 checks: 3 passed
Check name
Status
Explanation
Title check
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
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
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.
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.
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
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.
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.