Skip to content

fix(autoresearch): route ESP32-P4 fbuild deploy through CLI - #2512

Merged
zackees merged 1 commit into
masterfrom
codex-esp32p4-autoresearch-fbuild-deploy
May 28, 2026
Merged

zackees merged 1 commit into
masterfrom
codex-esp32p4-autoresearch-fbuild-deploy

Conversation

@zackees

@zackees zackees commented May 28, 2026 •

Copy link
Copy Markdown
Member

Summary

  • route AutoResearch fbuild deploy through the fbuild CLI so environment variables such as PLATFORMIO_SRC_DIR reach the daemon
  • default ESP32-P4 deploys away from the native espflash verify/write path that hangs on the attached ESP32-P4 board
  • classify ESP32-P4 as a constrained AutoResearch target so schema validation does not block before the RPC failure can be diagnosed

Verification

Depends on FastLED/fbuild#273 for the ESP32-P4 fbuild include-path fix.

Summary by CodeRabbit

  • Chores
    • Extended esp32p4 platform support in CI build validation
    • Improved firmware deployment with enhanced error handling and local execution

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 28, 2026 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8490ba73-567b-4502-8cdc-1877921dd089

📥 Commits

Reviewing files that changed from the base of the PR and between f7d4b0e and ab892b5.

📒 Files selected for processing (2)
  • ci/autoresearch/phases.py
  • ci/util/fbuild_runner.py

📝 Walkthrough

Walkthrough

This PR adds esp32p4 platform support to the CI build pipeline by marking it as constrained for schema validation and refactoring the deploy function from daemon-based to subprocess-based execution with explicit esp32p4 daemon lifecycle management and timeout handling.

Changes

ESP32P4 Build and Deploy Support

Layer / File(s) Summary
Schema validation configuration for esp32p4
ci/autoresearch/phases.py
The constrained_platforms list adds esp32p4, which controls when RPC schema validation is skipped for constrained environments in autoresearch runs.
Subprocess-based deploy with esp32p4 daemon handling
ci/util/fbuild_runner.py
run_fbuild_deploy transitions from daemon connection invocation to direct subprocess execution of fbuild deploy, including command-line option construction (-p, -v, -c, --monitor), environment validation, fbuild executable resolution, esp32p4-specific daemon restart/stop logic when verification or write settings are missing, combined stdout/stderr capture and printing, and explicit subprocess.TimeoutExpired handling with a timeout-specific failure message.

Possibly related issues

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 The p4 chip hops along the CI,
No daemon needed, subprocess flies high,
Schema skips quick for constrained ways,
Build and flash shine through the maze! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex-esp32p4-autoresearch-fbuild-deploy

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 and usage tips.

@zackees
zackees merged commit f29daa1 into master May 28, 2026
5 of 7 checks passed
@zackees
zackees deleted the codex-esp32p4-autoresearch-fbuild-deploy branch May 28, 2026 04:51
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.

1 participant