Skip to content

fix(ci): name max_power_mw in the autoresearch Args test defaults - #5164

Closed
zackees wants to merge 1 commit into
masterfrom
fix/ci-args-max-power-mw
Closed

zackees wants to merge 1 commit into
masterfrom
fix/ci-args-max-power-mw

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Master is red on unit / build at 05d9367a:

TypeError: Args.__init__() missing 1 required positional argument: 'max_power_mw'

The power-limiter PRs (#5139, #5159) added max_power_mw to the benchmark Args dataclass with no default, while _args_with_defaults in ci/tests/test_autoresearch_phases.py constructs Args(**defaults) field by field. Every case in that file therefore fails at construction: 187 failed, 30 passed, before a single assertion runs.

The fix adds the field to the defaults dict, matching how frames, rp_pio_* and test_fault_emit are already declared there. No production code changes.

Local verification on a worktree at origin/master: 216 passed, 1 failed. The remaining failure is TestRunTestsOrSpecialMode::test_ble_mode_delegates, which reproduces on unmodified master under Python 3.13 (pkgutil AttributeError) — a pre-existing local-environment artifact, not caused by this change.

Summary by CodeRabbit

  • Tests
    • Updated automated test setup to account for an additional configuration value. No changes to end-user functionality are included.

`unit / build` is red on master at 05d9367: `uv run pytest ci/tests` dies
with `TypeError: Args.__init__() missing 1 required positional argument:
'max_power_mw'`.

The power-limiter work (#5139, #5159) added `max_power_mw` to the
benchmark `Args` dataclass without a default, and
`_args_with_defaults` in test_autoresearch_phases.py builds `Args(**defaults)`
explicitly — so every case in that file fails at construction (187 failed,
30 passed) before any assertion runs.

Adding the field to the defaults dict mirrors how the other benchmark
fields (`frames`, `rp_pio_*`, `test_fault_emit`) are declared there.

Verified in a worktree at origin/master: 216 passed, 1 failed
(`test_ble_mode_delegates`), and that one failure reproduces on unmodified
master under Python 3.13 (pkgutil AttributeError), so it is an existing
local-environment artifact, not part of this fix.
@github-actions github-actions Bot added the sanitized Title, body and conversation screened; review text requires separate screening. label Nov 8, 2026
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The _make_args helper in the autoresearch phase tests now includes max_power_mw=None in its default Args values.

Changes: Test argument construction

Layer / File(s) Summary
Update argument defaults
ci/tests/test_autoresearch_phases.py
_make_args now supplies None for the required max_power_mw field.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related PRs

  • FastLED/FastLED#5159: Adds the required max_power_mw field to Args, which this PR supplies in test defaults.
Merge Risk: Minimal · up to 5bc8a

The change repairs test argument construction without changing production behavior. No merge-blocking issue remains identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: it adds the required max_power_mw field to the Args test defaults in the autoresearch phases test file. The raw summary says _make_args now sets max_power_mw to None in its…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title names the change: it adds the required max_power_mw field to the Args test defaults in the autoresearch phases test file. The raw summary says _make_args now sets max_power_mw to None in its default Args values, and the PR objectives describe adding the field to the _args_with_defaults defaults dictionary. The title is specific, concise, and matches the only changed file, so it describes the main change.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files.

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 05d9367 and 5bc8a50.

Files selected for processing: 1

  • ci/tests/test_autoresearch_phases.py

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 8, 2026
@github-actions github-actions Bot added security: unscreened-content and removed sanitized Title, body and conversation screened; review text requires separate screening. labels Nov 8, 2026
@github-actions github-actions Bot added sanitized Title, body and conversation screened; review text requires separate screening. and removed security: unscreened-content labels Nov 8, 2026
zackees added a commit that referenced this pull request Nov 10, 2026
Match the fixture correction tracked in #5164 so full Python validation can construct Args.
@zackees

zackees commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Superseded: master already carries this fix — the max_power_mw=None default in ci/tests/test_autoresearch_phases.py landed in #5231, and unit / build is green on HEAD fadc7228. Closing in favour of that change rather than merging a duplicate.

@zackees zackees closed this Nov 10, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Nov 10, 2026
sutaburosu pushed a commit to sutaburosu/FastLED that referenced this pull request Nov 11, 2026
* ci(meson): opt-in FASTLED_NATIVE_CLANG=soldr takes the native clang from soldr

On Linux, FASTLED_NATIVE_CLANG=soldr resolves clang, clang++ and llvm-ar
through `soldr c++ --clang --print-cc/--print-cxx/--print-ar` instead of
clang-tool-chain. soldr's LLVM bundle ships its own libxml2/libz, so the
native build survives runner images without libxml2.so.2 (the ubuntu-latest
break). The linker stays reld; WASM, IWYU and lint keep clang-tool-chain.
Off by default until a soldr release contains forge-ci/soldr#4127.

* fix(ci): bound soldr discovery and preserve Meson tool paths

* ci: select soldr clang in Linux native workflows

* fix(ci): use soldr lld for native ThinLTO bridge

* fix(ci): rediscover Meson compiler when provider changes

* build: require soldr 0.9.53 for managed native clang

* fix(ci): use selected soldr compiler in native codec audits

* docs: name released soldr clang compiler requirement

* fix(ci): select soldr clang for MP3 conformance builds

* fix(ci): include max_power_mw in autoresearch test defaults

Match the fixture correction tracked in FastLED#5164 so full Python validation can construct Args.

* test: document the nRF51 profile without a badge workflow

Record the bbcmicrobit profile added by FastLED#5154 in the explicit unbadged catalogue. Keep the exact badge coverage assertion and do not add a hardware CI workflow.

* test: isolate native ABI and observe SPI delay requests

* fix(ci): rediscover compilers with missing identity markers
@zackees
zackees deleted the fix/ci-args-max-power-mw branch November 17, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanitized Title, body and conversation screened; review text requires separate screening.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant