Skip to content

chore(ci): drop the dead codec_cpu_ledger.md path filter (#4155) - #4175

Closed
zackees wants to merge 1 commit into
masterfrom
chore/4155-drop-dead-ledger-path-filter
Closed

zackees wants to merge 1 commit into
masterfrom
chore/4155-drop-dead-ledger-path-filter

Conversation

@zackees

@zackees zackees commented Sep 7, 2026 •

Copy link
Copy Markdown
Member

First housekeeping item from #4155.

Change

codec_cpu_ledger.md has never existed in this repo — git log --all -- codec_cpu_ledger.md returns nothing — yet .github/workflows/mp3_cpu_audit.yml watched it in both its push and pull_request path filters. This removes those two entries.

No trigger behavior changes: the real baseline, codec_cpu_trend.json, is already listed in both filters and stays. A dead entry isn't harmless clutter either — the next person reading the filter reasonably assumes the file exists and goes looking for it.

Verification

  • Workflow still parses
  • Both filter lists go 12 → 11 entries
  • codec_cpu_trend.json still watched in both
  • No codec_cpu_ledger reference remains anywhere in the file
  • bash lint — clean (including the meson/YAML lane)

Scope

Only the first item in #4155. The other leftovers there — huffman regression, upstreaming — are untouched and stay open.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51

Summary by CodeRabbit

  • Chores
    • Updated MP3 CPU audit workflow triggers so changes to the CPU trend data continue to run audits, while changes to the CPU ledger no longer trigger them.

`codec_cpu_ledger.md` has never existed in this repo -- `git log --all`
for that path returns nothing -- yet the MP3 CPU audit workflow watched
it in both its push and pull_request path filters.

Removing the two entries changes no trigger behavior: the real baseline,
`codec_cpu_trend.json`, is already listed in both and stays there. A dead
entry is not harmless clutter either, since the next person reading the
filter reasonably assumes the file exists and goes looking for it.

First housekeeping item in #4155. The remaining leftovers there (huffman
regression, upstreaming) are untouched.

Verified: the workflow still parses, both filter lists go 12 -> 11
entries, `codec_cpu_trend.json` is still watched in both, and no
`codec_cpu_ledger` reference remains.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
@coderabbitai

coderabbitai Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: 15d432d0-8398-4f58-9c82-14fbad309825

📥 Commits

Reviewing files that changed from the base of the PR and between 7043297 and 1b8ff55.

📒 Files selected for processing (1)
  • .github/workflows/mp3_cpu_audit.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/mp3_cpu_audit.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The MP3 CPU audit workflow no longer runs when codec_cpu_ledger.md changes. The workflow still runs for changes to codec_cpu_trend.json and its other configured paths.

Changes

MP3 CPU audit workflow

Layer / File(s) Summary
Update audit trigger filters
.github/workflows/mp3_cpu_audit.yml
The push and pull_request path filters remove codec_cpu_ledger.md while retaining codec_cpu_trend.json.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 1b8ff

The workflow filter cleanup removes only the obsolete ledger path while retaining the trend JSON trigger; no current merge-blocking risk is identified.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing the obsolete codec_cpu_ledger.md path filter from CI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/4155-drop-dead-ledger-path-filter

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 commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

The audit failure here is not from this change. This PR deletes two path-filter lines; the red step is bash test fl_codec --cpp --build-mode release, failing on the SIMD-vs-scalar perf assertion at speedup=0.945x against a 0.95 threshold.

That gate is flakier than the effect it measures — I filed #4183 with the numbers. Short version: the true speedup on x86 is ~1.02x (not the ~1.10x the in-source comment claims), so the threshold sits inside the estimator's noise band; the same assertion has taken master red twice in the last week (0.904, 0.924).

Re-running the failed job.

@zackees

zackees commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

Correction to my earlier comment: I re-ran the job and it failed again at 0.920x. Four visible measurements now, all clustered 0.904–0.945, and the run with the fastest scalar time gave the worst ratio — so this is not the flake I called it. Details and the corrected reading are on #4183.

Practically: re-running will not clear this, and #4175 stays blocked on that question rather than on anything in its own diff.

@zackees

zackees commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

#4192 should unblock this. The audit failure here has never been about this diff — it's the SIMD-vs-scalar gate tracked in #4183 — and the reason that issue has stalled is that a passing run of the gate records nothing, so nine green runs can't be told apart from nine skipped measurements.

#4192 adds --verbose to that step so the ratio is always printed. Once it lands, the next audit run on this PR will either show a healthy ratio (in which case this was a flake after all and this merges) or show the gate skipping (in which case #4183 has its answer and this still merges).

zackees added a commit that referenced this pull request Sep 7, 2026
The harness echoes a test's stdout only when it fails, and the ratio this
step prints is the whole point of it. So a passing run recorded nothing, and
a green result was indistinguishable from one where the comparison returned
early for want of integer SIMD and passed vacuously. That ambiguity is what
stalled #4183.

The first run of this branch answers it: a passing run reports
`speedup=1.080x`, with no "no integer SIMD on this target" line. The gate is
real and it measured a healthy ratio.

Which settles the question the other way from where the evidence pointed
before. Four runs have reported 0.904, 0.920, 0.924 and 0.945; this one
reports 1.080. That is a 19% spread on a fleet that is not one machine, so
the SIMD kernel is genuinely faster on some GitHub runners and genuinely
slower on others -- both are correct measurements of different silicon, and
neither the "flaky" nor the "genuinely slower" reading was right on its own.

So the CPU goes into the log alongside the ratio. Without it the next
failure is another round of arguing about noise; with it, the two
populations can be named and the gate fixed on the evidence -- pinned to a
runner class, or made informational, or given a threshold that holds across
the fleet.

Also unblocks #4175, a two-line path-filter cleanup that has been sitting on
this gate without touching anything it measures.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
@zackees

zackees commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

Update: #4192's first run answers the question that was blocking this. A passing run of the gate reports speedup=1.080x — the gate is real and healthy on that runner — while the failures here reported 0.904–0.945. A 19% spread across GitHub's runner fleet, so the kernel is genuinely faster on some runners and slower on others.

That makes this PR's red audit runner-dependent, not caused by anything in its two-line diff. #4183 now has the evidence to fix the gate properly; once #4192 lands and that is settled, this merges.

zackees added a commit that referenced this pull request Sep 7, 2026
…nforced

The harness echoes a test's stdout only when it fails, and the ratio this
step prints is the whole point of it. So a passing run recorded nothing, and
a green result was indistinguishable from one where the comparison returned
early for want of integer SIMD and passed vacuously. That ambiguity is what
stalled #4183.

The first run of this branch answers it: a passing run reports
`speedup=1.080x`. Which settles the question the other way from where the
evidence pointed before. Four runs have reported 0.904, 0.920, 0.924 and
0.945; this one reports 1.080. That is a 19% spread on a fleet that is not
one machine, so the SIMD kernel is genuinely faster on some GitHub runners
and genuinely slower on others -- both are correct measurements of different
silicon, and neither the "flaky" nor the "genuinely slower" reading was
right on its own.

So the CPU goes into the log alongside the ratio. Without it the next
failure is another round of arguing about noise; with it, the two
populations can be named and the gate fixed on the evidence.

The ratio line now also says whether it was enforced. It is printed *before*
the `dspUsesSimd()` check, so a ratio on its own proves nothing about
whether the gate ran -- a target with no integer SIMD prints one too and
then returns without asserting. Reading the 1.080x above as enforced
depended on noticing that the *exactness* test had not printed its own "no
integer SIMD" note, which is not something a log should require. Each line
now says which it is.

Also unblocks #4175, a two-line path-filter cleanup that has been sitting on
this gate without touching anything it measures.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9
zackees added a commit that referenced this pull request Sep 7, 2026
…nforced (#4192)

The harness echoes a test's stdout only when it fails, and the ratio this
step prints is the whole point of it. So a passing run recorded nothing, and
a green result was indistinguishable from one where the comparison returned
early for want of integer SIMD and passed vacuously. That ambiguity is what
stalled #4183.

The first run of this branch answers it: a passing run reports
`speedup=1.080x`. Which settles the question the other way from where the
evidence pointed before. Four runs have reported 0.904, 0.920, 0.924 and
0.945; this one reports 1.080. That is a 19% spread on a fleet that is not
one machine, so the SIMD kernel is genuinely faster on some GitHub runners
and genuinely slower on others -- both are correct measurements of different
silicon, and neither the "flaky" nor the "genuinely slower" reading was
right on its own.

So the CPU goes into the log alongside the ratio. Without it the next
failure is another round of arguing about noise; with it, the two
populations can be named and the gate fixed on the evidence.

The ratio line now also says whether it was enforced. It is printed *before*
the `dspUsesSimd()` check, so a ratio on its own proves nothing about
whether the gate ran -- a target with no integer SIMD prints one too and
then returns without asserting. Reading the 1.080x above as enforced
depended on noticing that the *exactness* test had not printed its own "no
integer SIMD" note, which is not something a log should require. Each line
now says which it is.

Also unblocks #4175, a two-line path-filter cleanup that has been sitting on
this gate without touching anything it measures.


Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@zackees

zackees commented Sep 7, 2026

Copy link
Copy Markdown
Member Author

Closing as already applied — this change is on master and has been since #4176.

That PR ("fix(autoresearch): make BLE bring-up name the board that actually answered") carried the identical two-line deletion alongside its own changes:

 .github/workflows/mp3_cpu_audit.yml | 2 --
-      - 'codec_cpu_ledger.md'
-      - 'codec_cpu_ledger.md'

Rebasing this branch onto current master confirms it: git drops the commit with "patch contents already upstream". There is nothing left in the diff.

Worth noting what this does not invalidate. The red audit check here was never about this diff, and chasing it turned up something real that stands on its own: the SIMD-vs-scalar gate measures 0.904–1.080 depending on which runner GitHub hands out, so it takes master red at random rather than guarding anything reliably. That is tracked in #4183, with #4192 now landing the diagnostics — the ratio and the runner CPU are recorded on passing runs too, so the two populations can be named instead of inferred.

So the filter cleanup is done, and the investigation it accidentally triggered continues under its own issue.

@zackees zackees closed this Sep 7, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Sep 7, 2026
zackees added a commit that referenced this pull request Sep 10, 2026
) (#4263)

`FL_CHECK_GE(ratio, 0.95)` has taken the default branch red at random and is
the only thing blocking #4175. It also just failed an unrelated lint-tooling
PR at 0.922x, which is what prompted this.

The issue's own investigation settled the cause: the ratio is bimodal across
GitHub's fleet, not noisy around one value -- 0.904, 0.920, 0.922, 0.924,
0.945 on some machines against 1.080 on others. The decisive detail is that
the *fastest* scalar time of the lot produced the worst ratio, so it is not
contention. The kernel is genuinely faster on part of the fleet and genuinely
slower on the rest, and both are correct measurements of different hardware.

Two measurements this adds. The 0.922 above came from a **macOS ARM** runner,
so the slow population is not only GHA x86 as the issue supposed. And an
optimised build on my host measures **0.993x-1.005x across runs** -- between
the two populations, and itself straddling the margin the 0.95 threshold
depended on.

0.95 sits inside that spread, so as a gate it reports which runner drew the
job. What replaces it is a floor far outside any fleet variation: a vector
path twice as slow as the scalar one it replaces is a defect on any machine.

Stated plainly, because it is a real loss: this will not catch a subtle
regression. Nothing measured here can -- that is the finding -- and that job
belongs to `ci/codec_cpu/audit.py`, which builds optimised and compares
against recorded baselines rather than against the scalar path on whatever
silicon it drew. The in-source comment already named that as the gate that
counts. The ratio is still printed on every run, so a shift in either
population stays visible.

The "x86 measures ~1.10x" claim is corrected: it describes the fast
population only, and reads as though there were one answer.

Verified in an optimised build, since the assertion is `__OPTIMIZE__`-gated
and quick mode compiles it out -- a first attempt at this mutation ran against
a stale binary and looked like a survivor. Scaling the ratio to a quarter
fails the case; the real ratio passes.

Refs #4183, #4175, #4155


Claude-Session: https://claude.ai/code/session_01MLhWkMfzLjrnLTDMBE6Fj9

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
@zackees
zackees deleted the chore/4155-drop-dead-ledger-path-filter 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

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant