Skip to content

fleet: render watch configures its build tree before the first sweep - #5241

Open
jakildev wants to merge 1 commit into
masterfrom
claude/5237-render-watch-configure
Open

jakildev wants to merge 1 commit into
masterfrom
claude/5237-render-watch-configure

Conversation

@jakildev

Copy link
Copy Markdown
Owner

Summary

fleet-render-watch now configures its own build tree before the first sweep. Without this, the first run on a host fails on a missing CMakeCache.txt. The configure goes through the worktree's own fleet-build (target help, so nothing gets compiled), and an already-configured tree is left alone. A configure failure gets its own build-failed outcome that carries the command's output tail and leaves the tracker untouched. Every failure reason is also printed to stderr, and fleet-health warns on build-failed.

Acceptance evidence

Criterion Check run Observed
Unconfigured tree is configured via the worktree's build wrapper before the sweep; stub sweep fails if not prepared python3 scripts/fleet/tests/test_fleet_render_watch.py (test_unconfigured_tree_is_configured_through_its_build_wrapper_before_the_sweep) ok: wrapper log ["--target help"], watch/build/CMakeCache.txt exists, status green
Build/configure failure is its own outcome with the command's last lines; tracker untouched same suite, test_configure_failure_is_its_own_outcome_and_leaves_tracker_untouched ok: outcome build-failed, reason has exit 2 + CMake Error: preset macos-debug not found, gh.calls == [], no control record
Second sweep does not reconfigure an already-configured tree same suite, test_configured_tree_is_not_reconfigured_on_a_second_sweep ok: wrapper called once across two run_watch calls
Failure reason printed to stderr same suite, test_sweep_failure_reason_is_printed_to_stderr + the configure-failure case ok: fleet-render-watch: <reason> on stderr equals status reason
run_all.sh --only render_watch passes bash scripts/fleet/tests/run_all.sh --only render_watch 1 suite(s) — 1 passed, 0 failed, 0 skipped (17 tests)
Positive control MEANINGFUL against the pre-fix ref fleet-positive-control scripts/fleet/tests/test_fleet_render_watch.py origin/master MEANINGFUL: 4 of 17 assertions fail against origin/master (f6d489ad6): the 4 new cases
Live first-run check not run unverifiable on macOS pool worktree: needs an unsandboxed session with write access to ~/.fleet/render-watch; left to #4986 (open)
fleet-health surfaces the new outcome bash scripts/fleet/tests/run_all.sh --only fleet_health 1 passed; test_failed_latest_sweep_warns subTests failed → render watch failed at …, build-failed → render watch build failed at …
Reviewer notes

Plan departures

  • The issue's Area is fleet-render-watch and its suite. I also changed fleet-health and its test so a build-failed outcome still raises a warning, and updated the outcome lists in fleet-help and docs/agents/VALIDATION-RENDER.md to include it.
  • render-verify.py looks for CMakeCache.txt in --build-dir, falling back to <worktree>/build, and ignores IRREDEN_BUILD_DIR. That is why the live run reported worktree/build/CMakeCache.txt. The default sweep argv now passes --build-dir <watch-root>/build, the same directory that fleet-build and fleet-run already get through IRREDEN_BUILD_DIR.

Notes for reviewer

  • Every preset uses a Makefile generator, so the help target exists and builds nothing. ir-build configures before it runs cmake --build, so this call costs only the configure.
  • The WatchRun fixture now installs a stub scripts/fleet/fleet-build in the fake worktree. Because of that, the configure step runs for real in every existing case too.

Closes #5237

🤖 Generated with Claude Code

fleet-render-watch created its own worktree and swept it, but nothing
configured a build tree, so render-verify died on a missing
CMakeCache.txt on a host's first run. The watch now configures an
unconfigured tree through the worktree's own fleet-build (the cheap
`help` target), passes the same --build-dir to render-verify that
fleet-build and fleet-run already receive through IRREDEN_BUILD_DIR,
and leaves a configured tree alone on later sweeps.

A configure failure is its own `build-failed` outcome carrying the
command's output tail and never touches the tracker; every failure
reason also goes to stderr. fleet-health warns on the new outcome.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jakildev jakildev added fleet:wip Work in progress — not ready for review fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend and removed fleet:wip Work in progress — not ready for review labels Nov 26, 2026

@jakildev jakildev left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Review — fleet: render watch configures its build tree before the first sweep

Verdict: approve

The build-tree preparation is correctly scoped to an unconfigured watch tree, failure handling preserves tracker state, and the added coverage exercises the new paths.

Acceptance (issue #5237)

6 of 6 met.

Checked

  • Read the complete PR and issue #5237 threads, the changed files in context, and the worktree-local fleet-build / ir-build configuration path.
  • python3 scripts/fleet/tests/test_fleet_render_watch.py — 17 passed.
  • python3 scripts/fleet/tests/test_fleet_health.py — 82 passed, 1 skipped.
  • bash scripts/fleet/tests/run_all.sh --only render_watch — 1 suite passed.
  • ruff check scripts/fleet/fleet-render-watch scripts/fleet/tests/test_fleet_render_watch.py scripts/fleet/fleet-health scripts/fleet/tests/test_fleet_health.py — passed.
  • git diff --check origin/master...HEAD — clean; all PR status checks are successful.

🤖 Reviewed by Codex (review-pr skill)
Opus recheck not required.

@jakildev jakildev added fleet:approved Fleet reviewer approved — ready for human merge and removed fleet:reviewing-mac-pool-1 labels Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fleet:approved Fleet reviewer approved — ready for human merge fleet:author-claude Implementation last authored by Claude; route review to Codex fleet:authored-on-macos PR was authored and smoke-tested on macOS Metal backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet: fleet-render-watch fails its first sweep on a host because nothing configures its build tree

1 participant