Skip to content

feat(bench): per-phase cold-build timing breakdown in Blink benchmark (#1465) - #1470

Merged
zackees merged 2 commits into
mainfrom
grind/1465-cold-build-phase-timing
Sep 25, 2026
Merged

zackees merged 2 commits into
mainfrom
grind/1465-cold-build-phase-timing

Conversation

@zackees

@zackees zackees commented Sep 25, 2026

Copy link
Copy Markdown
Member

Closes #1465

  • perf_log: FBUILD_PERF_LOG_JSON=<path> appends one JSON line per timer.
  • Blink harness collects cold-build phase timings (merging avr-orchestrator + pipeline timers), a raw-compiler baseline replayed from compile_commands.json, fbuild overhead, PlatformIO cold ratio, and a 7-day-median regression warning.
  • Workflow writes a cold-build breakdown step summary; READMEs updated.

Verified: focused tests (perf_log, bench-build-comparison), ./lint, ./test all green.

@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Repository: FastLED/fbuild/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 8d0ff5fd-cd5a-45ff-991f-f5075f81461a

📥 Commits

Reviewing files that changed from the base of the PR and between 0433e96 and 0a3bcbc.

📒 Files selected for processing (7)
  • .github/workflows/benchmark-build-comparison.yml
  • bench/blink/README.md
  • bench/fastled-examples/README.md
  • bench/fastled-examples/src/build_comparison.rs
  • bench/fastled-examples/src/build_comparison_tests.rs
  • crates/fbuild-build-engine/src/perf_log.rs
  • crates/fbuild-build-engine/src/pipeline/sequential.rs
 ______________________________________________________________________________________________________________________________
< Gently exceed your users' expectations. Come to understand your users' expectations, then deliver just that little bit more. >
 ------------------------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

@zackees
zackees merged commit 5f2afd2 into main Sep 25, 2026
15 of 17 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Sep 26, 2026
zackees added a commit that referenced this pull request Sep 26, 2026
#1470 cached FBUILD_PERF_LOG_JSON as a std::path::PathBuf, which the
ban_std_pathbuf dylint rejects, failing Dylint Full on linux and windows.
zackees added a commit that referenced this pull request Sep 26, 2026
#1470 added find_compile_db and raw_baseline_ms with a std PathBuf, a raw
.fbuild/build path and an unrooted TempDir, which ban_std_pathbuf,
ban_raw_fbuild_path and ban_unrooted_tempdir reject. Use NormalizedPath,
fbuild_paths::get_project_build_root and a TempDir under
fbuild_paths::temp_subdir, as the bench's main.rs already does.
zackees added a commit that referenced this pull request Sep 26, 2026
* ci: canary setup-soldr 218672f before v0 promotion

Pins the build template to zackees/setup-soldr main 218672f8 (setup-soldr#530:
no toolchain snapshots when solo-toolchain-cache is off) so the v0
promotion gate can verify it.

* fix(build-engine): use NormalizedPath for the perf-log JSON sink

#1470 cached FBUILD_PERF_LOG_JSON as a std::path::PathBuf, which the
ban_std_pathbuf dylint rejects, failing Dylint Full on linux and windows.

* fix(bench): satisfy dylint in the build-comparison harness

#1470 added find_compile_db and raw_baseline_ms with a std PathBuf, a raw
.fbuild/build path and an unrooted TempDir, which ban_std_pathbuf,
ban_raw_fbuild_path and ban_unrooted_tempdir reject. Use NormalizedPath,
fbuild_paths::get_project_build_root and a TempDir under
fbuild_paths::temp_subdir, as the bench's main.rs already does.

* ci: canary setup-soldr dfbe962 (current main) before v0 promotion

* fix(build-engine): keep raw FBUILD_PERF_LOG_JSON sink path

NormalizedPath lexically resolves '..', which can open a different file
when the sink path crosses a symlink. Cache the raw OsString instead
(addresses CodeRabbit review on #1471).
@zackees
zackees deleted the grind/1465-cold-build-phase-timing branch October 16, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

perf audit: per-phase cold-build timing breakdown in the Blink benchmark

1 participant