Skip to content

fix(test): the lease-files test rigs no longer depend on the host's free disk - #1826

Merged
V3RON merged 4 commits into
mainfrom
bug/1613
Nov 24, 2026
Merged

V3RON merged 4 commits into
mainfrom
bug/1613

Conversation

@V3RON

@V3RON V3RON commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1613

Status

Implement: done (2/2 green) Review: round 2 passed, R1 fixed Hardware: n/a Gate: not run
Next: gate

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 1 blocking, 1 fixed, 0 notes. Claims review: skipped.
Rounds: 2. Tokens: 1.0M.
Runs: 7. Cost USD: 1.4891. Agent seconds: 736.

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

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 30 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

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: 8305ec0e-1f07-4041-ba70-8f1a8c00e41a
Commits

Reviewing files that changed from the base of the PR and between fe4c61e and 5ca8a30.

Files selected for processing: 4

  • e2e/helpers/env.ts
  • src/daemon/lease-files.test.ts
  • src/daemon/relay-gateway-files.e2e.test.ts
  • src/daemon/test-relay-support.ts

No actionable comments were generated in the recent review.

Walkthrough

Test configurations now set the worker’s disk-pressure threshold to zero. Lease and gateway test helpers support an injected filesystem, and new upload tests use a filesystem that reports 5 GiB free. The tests check for a 201 response and the expected file name and size.

Severity of issue fixed: Low

Merge Risk: Minimal · previous review fe4c6

This change makes the file-upload tests independent of the host's free disk space. It has no production impact, and I found no merge-blocking risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the lease-files test rigs now set the disk-pressure threshold to 0, so they no longer depend on the host's free disk. The changed files (lease-files test, relay-gatewa…
Description check Passed The description links issue #1613 and gives status, review ledger, and cost figures. It is mostly process metadata and does not explain the code change itself. It still relates to the changeset: it st…
Linked Issues check Passed Issue #1613 requires the lease-files and relay-gateway-files tests to stop returning 422 instead of 201 on a clean base. The issue gives no further acceptance criteria. The diff sets the worker disk-p…
Out of Scope Changes check Passed All changed files named in the summary are test rigs, test helpers, or the test environment config for #1613. These changes implement the issue's objective, so they are in scope. The review ledger men…
Full details: Title check

Explanation

The title names the main change: the lease-files test rigs now set the disk-pressure threshold to 0, so they no longer depend on the host's free disk. The changed files (lease-files test, relay-gateway-files e2e test, test-relay-support, e2e env helper) match this scope, and the PR objectives state the same aim. The title is specific and uses the conventional fix(test) prefix.

Full details: Description check

Explanation

The description links issue #1613 and gives status, review ledger, and cost figures. It is mostly process metadata and does not explain the code change itself. It still relates to the changeset: it states the implementation is done, lists review rounds, and references the linked issue about the lease-file tests. This meets the lenient bar for the check.

Full details: Linked Issues check

Explanation

Issue #1613 requires the lease-files and relay-gateway-files tests to stop returning 422 instead of 201 on a clean base. The issue gives no further acceptance criteria. The diff sets the worker disk-pressure threshold to 0 in the lease-files rigs (src/daemon/lease-files.test.ts, src/daemon/test-relay-support.ts, src/daemon/relay-gateway-files.e2e.test.ts). It also sets the daemon threshold to 0 in the fake E2E lane (e2e/helpers/env.ts). Commit history shows the reproduction test (053a256), the worker change (14b7282), and the daemon change (fe4c61e), all tagged #1613. Each test rig now removes the host free-disk dependency. Two new tests use a filesystem that reports 5 GiB free and assert a 201 response, which covers the low-disk case. Limitation: this review read summaries and commit history. It did not run the tests, so the 2/2 green status is author-reported.

Full details: Out of Scope Changes check

Explanation

All changed files named in the summary are test rigs, test helpers, or the test environment config for #1613. These changes implement the issue's objective, so they are in scope. The review ledger mentions a fix to e2e/device-exec.test.ts in commit fe4c61e. That file does not appear in the change summary, and the commit subject for fe4c61e concerns the fake E2E lane. A diff request for that path returned no content. This review does not treat the empty result as proof that the file is unchanged. No demonstrated unrelated change was found.

Finishing Touches

Fix failing CI checks

  • 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

  • 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: c21e829b-d5f5-4f04-b916-fbbb031bedd0
Commits

Reviewing files that changed from the base of the PR and between 191d496 and fe4c61e.

Files selected for processing: 4

  • e2e/helpers/env.ts
  • src/daemon/lease-files.test.ts
  • src/daemon/relay-gateway-files.e2e.test.ts
  • src/daemon/test-relay-support.ts

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

@V3RON

V3RON commented Nov 24, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 14b7282
Round 2: fe4c61e

Runs: 7. Cost USD: 1.4891. Agent seconds: 736.
Tokens input 118, output 23448, cache read 2312332, cache write 259691.
- build implementer: claude-sonnet-5-5 99 s $0.1366
- audit implementer: claude-sonnet-5-5 97 s $0.1383
- review 1 reviewer: claude-sonnet-5-5 256 s $0.1506
- review 1 spec: claude-sonnet-5-5 11 s $0.0825
- review 1 code tests: claude-opus-5-5 198 s $0.748
- fix 1 implementer: claude-sonnet-5-5 47 s $0.1339
- review 2 reviewer: claude-sonnet-5-5 28 s $0.0992
Finding outcomes: {"fixed":1}. Classes: {"testing 5":1}.
{"findings":[{"id":"R1","role":"code","class":"testing 5","outcome":"fixed","path":"e2e/device-exec.test.ts","round":"1","fix":"fe4c61ee058b40403202d245ecde0b7c7aa63d0c"}]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 24, 2026 15:22
@V3RON
V3RON merged commit 5009b8e into main Nov 24, 2026
46 of 49 checks passed
@V3RON
V3RON deleted the bug/1613 branch November 24, 2026 16:14
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.

flaky: lease-files and relay-gateway-files tests answer 422 instead of 201 on a clean base

1 participant