Skip to content

fix(test): repair fr007 health-csv test for StatusJson::log_location - #733

Merged
mergify[bot] merged 3 commits into
mainfrom
fix/fr007-health-csv-build-fix
Aug 14, 2026
Merged

fix(test): repair fr007 health-csv test for StatusJson::log_location#733
mergify[bot] merged 3 commits into
mainfrom
fix/fr007-health-csv-build-fix

Conversation

@KooshaPari

@KooshaPari KooshaPari commented Aug 14, 2026

Copy link
Copy Markdown
Owner

What

Fixes the ci-gate/coverage break introduced by e2ceacdd (#731). Main's own ci-gate run on #731 fails, and every PR against current main inherits it.

Three defects in tests/fr007_health_pool_status_csv.rs:

  1. E0063 (compile) — the StatusJson { ... } literal omits the log_location field. feat(sharecli): land fr007 health-pool-status-csv + agent-call admission kernel #731 added log_location to StatusJson and updated seven of the eight fr007 test literals, but missed this one.
  2. rustfmt — the file was never formatted.
  3. Infinite hangfr007_health_csv_rejects_watch asserted that health --csv --watch 1 must fail fast (a misreading of AC-007.82), but AC-007.89 defines health/pool/status --csv --watch as supported multi-frame watch modes (exercised by fr007_operator_csv_watch.rs and the envelope-parity suite, which the CLI implements). The stale test spawned the infinite watch process and blocked on output() forever — hanging the test binary and stalling the Coverage lane's cargo llvm-cov (CI ran 2h45m without completing; reproduced locally with and without instrumentation).

Changes

  • Add log_location: None to the StatusJson literal.
  • cargo fmt --all reflow of the file.
  • Remove the stale fr007_health_csv_rejects_watch test (AC-007.89 watch envelope behavior remains covered by the sibling suites).

Validation

  • cargo fmt --all -- --check: 0 diffs (workspace-wide).
  • cargo check --workspace --all-targets: passes.
  • Local cargo test --locked --all-features --test fr007_health_pool_status_csv: completes in ~21s (was: infinite hang).

FR reference: FR-007 (health pool / status JSON), FR-003 (hard gates)

e2ceacd (#731) added log_location to StatusJson and updated seven of the
eight fr007 test literals but missed tests/fr007_health_pool_status_csv.rs,
which omits the required field (E0063) and was never rustfmt-formatted.
Main's own ci-gate run on e2ceacd fails; every PR against it inherits the
break.

- Add `log_location: None` to the StatusJson literal.
- cargo fmt --all reflow of the file.

Verified: cargo fmt --all -- --check (0 diffs) and cargo check
--workspace --all-targets both pass.
Copilot AI lite review requested due to automatic review settings August 14, 2026 03:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codeant-ai

codeant-ai Bot commented Aug 14, 2026

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR 71a3973 Aug 14, 2026 · 03:42 03:45

@codeant-ai

codeant-ai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@coderabbitai

coderabbitai Bot commented Aug 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 427113e8-0c92-41f2-a3e2-532c54aac2cd

📥 Commits

Reviewing files that changed from the base of the PR and between 17497a1 and fca2e6e.

📒 Files selected for processing (1)
  • tests/fr007_health_pool_status_csv.rs
💤 Files with no reviewable changes (1)
  • tests/fr007_health_pool_status_csv.rs
📜 Recent review details
⏰ Context from checks skipped due to timeout. (31)
  • GitHub Check: netblock hermetic (required)
  • GitHub Check: chaos restart (required)
  • GitHub Check: OSV / GHSA lockfile scan (required)
  • GitHub Check: Security Scan
  • GitHub Check: Python
  • GitHub Check: TS/JS
  • GitHub Check: Cargo Deny (Advisories + Licenses)
  • GitHub Check: Guardrail (nextest)
  • GitHub Check: Loom (sharecli-sync)
  • GitHub Check: Rust
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: healthz soak (soft)
  • GitHub Check: healthz load burst (soft)
  • GitHub Check: SAST Analysis
  • GitHub Check: Offline build after fetch (soft)
  • GitHub Check: Dependency Audit
  • GitHub Check: lint
  • GitHub Check: live pool probe (soft)
  • GitHub Check: test
  • GitHub Check: dashboard keyboard Tab-cycle
  • GitHub Check: dashboard PNG hard diff
  • GitHub Check: codeql
  • GitHub Check: hyperfine healthz (soft)
  • GitHub Check: Unit Tests
  • GitHub Check: Offline check after fetch (soft)
  • GitHub Check: Lint & Format
  • GitHub Check: cargo bench (gate)
  • GitHub Check: coverage
  • GitHub Check: cargo bench (soft)
  • GitHub Check: Mergify Merge Protections
  • GitHub Check: Summary

📝 Walkthrough

Summary

This PR fixes the FR-007 health CSV test after log_location was added to StatusJson. The test literal now sets log_location: None, which resolves the E0063 compilation error. The file was reformatted with cargo fmt --all.

The PR also removes a stale test that rejected the supported health --csv --watch behavior. This prevents the FR-007 test binary and coverage runs from hanging. Other test suites continue to cover CSV watch behavior and envelope parity.

Must Fix

No blocking issues identified.

Should Fix

None.

Consider

Workspace formatting and cargo check --workspace --all-targets pass. Full workspace tests and Clippy results are not reported.

Approve / Request Changes

Approve.

Walkthrough

The pull request reformats fixtures, assertions, command construction, and rendering expressions in the health, pool, and status CSV integration test. Test behavior and coverage remain unchanged.

Changes

CSV test formatting

Layer / File(s) Summary
Reformat CSV test expressions
tests/fr007_health_pool_status_csv.rs
Reformatted CSV fixtures, CLI success and failure assertions, command construction, and StatusOperatorPanel rendering expressions without changing behavior.

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

Merge Risk: ⚪ Minimal · up to fca2e

This localized test-only change restores the health CSV test build and formatting checks without changing product behavior; no actionable merge-blocking risk remains after normal checks and review.

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the defects, changes, FR references, and validation, but omits required Linked Issues and Risk & Rollout sections. Add the required Linked Issues and Risk & Rollout sections, and complete the relevant template checklist items.
✅ Passed checks (4 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
Title check ✅ Passed The title clearly identifies the repair to the FR007 health CSV test and the missing StatusJson::log_location field.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/fr007-health-csv-build-fix
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fix/fr007-health-csv-build-fix

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

Comment @coderabbitai help to get the list of available commands.

@codeant-ai codeant-ai Bot added the size:S This PR changes 10-29 lines, ignoring generated files label Aug 14, 2026
@kilo-code-bot

kilo-code-bot Bot commented Aug 14, 2026

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

Incremental change since previous review (commit 17497a11): removal of the stale fr007_health_csv_rejects_watch test (16 deletions, all - lines). The prior Kilo review at commit 71a3973 already covered the StatusJson log_location: None fix and cargo fmt reflow with no findings.

The removed test asserted that sharecli health --csv --watch 1 must fail fast (per AC-007.82), but AC-007.89 defines health --csv --watch as a supported multi-frame watch mode implemented by the CLI and exercised by fr007_operator_csv_watch.rs and the envelope-parity suite. The stale test spawned an infinite watch process and blocked on output() forever, hanging the fr007 test binary and stalling the Coverage lane's cargo llvm-cov run (CI ran 2h45m without completing). Removing it is correct and the watch envelope behavior remains covered by sibling suites.

No new inline findings; the deletion is a clean, complete removal of the entire test function (doc comment + body), with the next test's doc comment (fr007_pool_csv_rejects_json) immediately following. No syntax breaks, no orphaned tokens.

Files Reviewed (1 file)
  • tests/fr007_health_pool_status_csv.rs - 16 deletions (stale fr007_health_csv_rejects_watch test removal)
Previous Review Summaries (2 snapshots, latest commit 17497a1)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 17497a1)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • tests/fr007_health_pool_status_csv.rs - No new changes since last review.

Previous review (commit 71a3973)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 file)
  • tests/fr007_health_pool_status_csv.rs - Added missing log_location: None to StatusJson literal and applied cargo fmt reflow.

Reviewed by laguna-s-2.1:free · Input: 167.6K · Output: 5.7K · Cached: 51.7K

@github-actions

Copy link
Copy Markdown

Quality Gate Report

✅ Unit Tests: PASSED
⏭️ E2E Tests: SKIPPED (no e2e directory)
⏭️ Integration Tests: SKIPPED (no integration directory)
✅ FR Annotations: VALID

coderabbitai[bot]
coderabbitai Bot previously approved these changes Aug 14, 2026
@github-actions

Copy link
Copy Markdown

Quality Gate Report

✅ Unit Tests: PASSED
⏭️ E2E Tests: SKIPPED (no e2e directory)
⏭️ Integration Tests: SKIPPED (no integration directory)
✅ FR Annotations: VALID

fr007_health_csv_rejects_watch asserted that `sharecli health --csv --watch 1`
must fail fast (a misreading of AC-007.82), but AC-007.89 defines health
--csv --watch as a supported multi-frame watch mode and both
tests/fr007_operator_csv_watch.rs and the envelope-parity suite exercise it
as working behavior; the CLI implements the watch loop.

The stale test spawned the infinite watch process and blocked on
output() forever, hanging the fr007 test binary and stalling the Coverage
lane's cargo llvm-cov run (reproduced locally: the suite hung on this test
with and without instrumentation; CI coverage ran 2h45m without
completing).

Remove the test; the AC-007.89 watch envelope behavior remains covered by
fr007_operator_csv_watch.rs / fr007_operator_envelope_parity_suite.rs.
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

Quality Gate Report

✅ Unit Tests: PASSED
⏭️ E2E Tests: SKIPPED (no e2e directory)
⏭️ Integration Tests: SKIPPED (no integration directory)
✅ FR Annotations: VALID

@mergify

mergify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@mergify
mergify Bot merged commit 2989bba into main Aug 14, 2026
61 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S This PR changes 10-29 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants