Skip to content

ci(esp32s3): shard full example sweep - #3952

Merged
zackees merged 1 commit into
masterfrom
fix/3791-esp32s3-example-shards
Aug 20, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/3791-esp32s3-example-shards

Conversation

@zackees

@zackees zackees commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

Closes #3791.

What changed

  • adds deterministic zero-based all-example sharding to ci-compile
  • runs the ESP32-S3 all-example workflow as eight reusable-workflow matrix jobs
  • preserves full coverage while keeping each job below the shared 45-minute bound
  • tests exhaustive/disjoint/balanced selection and invalid shard arguments

Evidence

The current serial workflow is making progress rather than deadlocking: the sampled master job compiled examples successfully at roughly 2.5 minutes each, but timed out after reaching only Blur2d. ESP32-S3 filtering leaves 95 supported examples; the eight shards contain 10?13 supported examples each, projecting the largest job to roughly 33 minutes.

Validation:

  • bash lint ci/compiler/argument_parser.py ci/tests/test_compile_example_sharding.py .github/workflows/build_esp32s3.yml
  • PYTEST_ADDOPTS='-k compile_example_sharding' bash test --py
  • sole clud-review: clean

A broader Python run reached 897 passed with the new tests green; its sole unrelated failure was the existing generated tests/fbuild_qemu_smoke/.fbuild/ fixture linking without setup()/loop(). Generated QEMU artifacts were not modified or staged.

Summary by CodeRabbit

  • Build Improvements

    • Parallelized ESP32-S3 example builds across eight jobs, helping large builds complete within time limits.
    • Added deterministic sharding options for distributing examples across build jobs.
  • Bug Fixes

    • Added validation for incomplete, invalid, or out-of-range sharding settings.
  • Tests

    • Verified shards are balanced, non-overlapping, and collectively cover all examples.

@zackees
zackees merged commit be689c1 into master Aug 20, 2026
15 of 24 checks passed
@zackees
zackees deleted the fix/3791-esp32s3-example-shards branch August 20, 2026 22:46
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Aug 20, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Aug 20, 2026
@coderabbitai

coderabbitai Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 73e5594a-7e48-4e5f-a951-06bc34591644

📥 Commits

Reviewing files that changed from the base of the PR and between acc92a5 and a3caa15.

📒 Files selected for processing (3)
  • .github/workflows/build_esp32s3.yml
  • ci/compiler/argument_parser.py
  • ci/tests/test_compile_example_sharding.py

📝 Walkthrough

Walkthrough

The ESP32-S3 workflow now runs eight parallel all-example shards. The argument parser validates shard options and selects deterministic example subsets. Tests verify shard coverage, balance, disjointness, and invalid inputs.

Changes

ESP32-S3 example sharding

Layer / File(s) Summary
Shard parsing and validation
ci/compiler/argument_parser.py, ci/tests/test_compile_example_sharding.py
The parser adds paired shard options for all builds and selects examples by stride. Tests verify exhaustive, disjoint, balanced shards and invalid argument combinations.
Parallel ESP32-S3 workflow execution
.github/workflows/build_esp32s3.yml
The workflow runs eight matrix jobs with fail-fast: false and passes each shard index with shard count 8 to the reusable build workflow.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant ESP32S3Workflow
  participant build_template_yml
  participant argument_parser_py
  ESP32S3Workflow->>build_template_yml: start eight shard jobs
  build_template_yml->>argument_parser_py: pass shard index and count 8
  argument_parser_py-->>build_template_yml: select deterministic example subset
  build_template_yml-->>ESP32S3Workflow: complete shard build
Loading
✨ 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 fix/3791-esp32s3-example-shards

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: every esp32s3 run since 20:39Z hangs in_progress and never completes (all branches, incl. master)

1 participant