Skip to content

test(heavy): BM3D smoke encode covers 24 frames under a stated job limit (task #128) - #287

Merged
StuartCameronCode merged 1 commit into
mainfrom
stuart/128-macos-arm64-nightly-noise-reduction-bm3d
Nov 28, 2026
Merged

StuartCameronCode merged 1 commit into
mainfrom
stuart/128-macos-arm64-nightly-noise-reduction-bm3d

Conversation

@StuartCameronCode

Copy link
Copy Markdown
Owner

Problem

The heavy test noise reduction: BM3D runs end-to-end, chroma included (integration_new_passes_test.dart) failed on the macos-arm64 nightly 46018310484 with nr_bm3d timed out after 300s. The encode had in fact finished (79/79 frames, 0.27 fps), but it called WorkerHarness.runJob without a timeout:, so the harness's default 5-minute job limit applied (the test itself allows 6).

What the nightlies show

I read the logs of the last 40 nightlies (165 heavy legs):

Platform BM3D test time Timeouts
macos-arm64 222–300+ s (mean 279 s) 5
x64 Macs 102–300+ s 4
Linux at most 232 s 0
Windows at most 190 s 0

So it is a standing flake on the Macs, not one bad run. It comes from runner speed: task #114's bundle and rc4 run BM3D at the same speed on an M1.

Change

  • The BM3D encode covers frames 0–23. V-BM3D at radius 1 still has a neighbour on each side, so both steps, every plane and the 16-bit round trip still run. startFrame: 0 means no seek is added.
  • runJob gets an explicit 5-minute limit, below the test's 6 minutes, so the harness still names and samples a real hang before the test times out (task IVTC: fallback deinterlace for leftover combing #99).
  • The test checks the output has 24 frames, so a trim that stopped applying can't bring the 300 s run back unnoticed.
  • It is never retried.
  • New report docs/reports/task-128-bm3d-heavy-test-time/: a table and strip chart, the script that reads the logs, and every leg's time. Also an ENGINEERING_NOTES entry, a reports index row, and one sentence in CLAUDE.md's rule on heavy-test timeouts.

Testing

  • Ran the test locally on an M1 with deps 1.18.0-rc5: it passes, 24 frames out. That machine was heavily loaded at the time, so the 95 s it took isn't a real timing.
  • flutter analyze is clean.
  • From the runners' rate (~3.6 s/frame), 24 frames should take about 85–90 s on the slowest Mac. Not yet measured on CI: re-run the report's script after the first nightly following the merge.
  • Reviewed: no issues found.

🤖 Generated with Claude Code

…mit (task #128)

The 79-frame BM3D encode took 222-300+ s on macos-arm64 and up to 300+ s
on the x64 Macs, and hit WorkerHarness.runJob's default 300 s job limit
9 times in the last 40 nightlies (all Mac legs; Linux <= 232 s, Windows
<= 190 s). It is runner speed, not the deps.

The test now encodes frames 0-23 (V-BM3D radius 1 still has neighbours
both sides), passes runJob an explicit 5 min limit below the test's 6,
and asserts 24 output frames. No retry.

Report: docs/reports/task-128-bm3d-heavy-test-time, with the script that
read the nightly logs and every leg's time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@StuartCameronCode
StuartCameronCode merged commit b52575b into main Nov 28, 2026
8 checks passed
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