From 7c7a6f25b39eb62128f83d3bbc019dc808f648ff Mon Sep 17 00:00:00 2001 From: Stuart Cameron Date: Sat, 28 Nov 2026 19:58:09 +1100 Subject: [PATCH] test(heavy): BM3D smoke encode covers 24 frames under a stated job limit (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 --- CLAUDE.md | 5 + app/test/integration_new_passes_test.dart | 17 +- docs/ENGINEERING_NOTES.md | 20 ++ docs/reports/README.md | 1 + .../data/bm3d_times.txt | 165 ++++++++++++ .../task-128-bm3d-heavy-test-time/index.html | 242 ++++++++++++++++++ .../scripts/bm3d_times.py | 55 ++++ 7 files changed, 503 insertions(+), 2 deletions(-) create mode 100644 docs/reports/task-128-bm3d-heavy-test-time/data/bm3d_times.txt create mode 100644 docs/reports/task-128-bm3d-heavy-test-time/index.html create mode 100644 docs/reports/task-128-bm3d-heavy-test-time/scripts/bm3d_times.py diff --git a/CLAUDE.md b/CLAUDE.md index dcd23feb..2b2c9005 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -3553,6 +3553,11 @@ cd worker && cargo run --release -- --config test_job.json > 23-30 s there and failed 8 nightly legs (task #99, as task #95 did for > Descale). Don't raise the default in `dart_test.yaml`: it would hide real > hangs everywhere. +> **A slow encode also passes `runJob` a `timeout:` below the test's own** +> (its default is 5 min), and a smoke encode covers only the frames its +> pass needs: BM3D on the whole 79-frame fixture took up to 300+ s on the +> Macs and hit that limit 9 times in 40 nightlies; it now encodes 24 +> (task #128). > A `setUpAll` can't state one: package:test gives it 12 minutes, fixed, > which is why the nightly prefetches add-ons before the tests (task #117, > "Add-ons"). diff --git a/app/test/integration_new_passes_test.dart b/app/test/integration_new_passes_test.dart index 0010313f..da4387ba 100644 --- a/app/test/integration_new_passes_test.dart +++ b/app/test/integration_new_passes_test.dart @@ -45,6 +45,9 @@ import 'support/worker_harness.dart'; String get _outDir => '${WorkerHarness.outputDir}/new_passes'; +/// Frames the BM3D encode covers (task #128): enough for its temporal step. +const _bm3dFrames = 24; + VideoJob _baseJob( String name, { ProcessingPipeline? pipeline, @@ -223,6 +226,11 @@ void main() { }, timeout: const Timeout(Duration(minutes: 6))); test('noise reduction: BM3D runs end-to-end, chroma included', () async { + // The whole 79-frame fixture took 222-300+ s on macos-arm64 and up to + // 300+ s on the x64 Macs, and hit the harness's 300 s job limit 9 + // times in 40 nightlies (task #128). 24 frames still give V-BM3D's + // radius 1 neighbours on both sides, at ~90 s on the slowest Mac; the + // job limit stays below the test's so a hang is named and sampled. final job = _baseJob( 'nr_bm3d', pipeline: const ProcessingPipeline( @@ -233,9 +241,14 @@ void main() { bm3dChromaSigma: 2.0, ), ), - ); - final result = await WorkerHarness.runJob(job.toJson(), label: 'nr_bm3d'); + ).copyWith(startFrame: 0, endFrame: _bm3dFrames - 1); + final result = await WorkerHarness.runJob(job.toJson(), + label: 'nr_bm3d', timeout: const Duration(minutes: 5)); await _expectValidVideo(result); + // A trim that stopped applying would bring the 300 s run back quietly. + final v = await WorkerHarness.firstStream(result.outputPath!, + selector: 'v:0', entries: ['nb_read_frames'], countFrames: true); + expect(v?['nb_read_frames'], '$_bm3dFrames'); }, timeout: const Timeout(Duration(minutes: 6))); test('noise reduction: KNLMeans runs end-to-end where OpenCL works', diff --git a/docs/ENGINEERING_NOTES.md b/docs/ENGINEERING_NOTES.md index 89d7295d..de509141 100644 --- a/docs/ENGINEERING_NOTES.md +++ b/docs/ENGINEERING_NOTES.md @@ -7087,3 +7087,23 @@ What was done: 8 places on main. Out of scope: the runner's toolchains (above), python-build-standalone (pinned by URL), and akarin's vendored `libz` / `libboost_charconv` (a pinned wheel). + +### The BM3D smoke encode outgrew the harness's job limit (task #128, 2026-11-28) + +- **Symptom.** `integration_new_passes_test.dart`'s `noise reduction: BM3D + runs end-to-end, chroma included` failed with `nr_bm3d timed out after + 300s` on the macos-arm64 heavy leg of nightly 46018310484, after the encode + had finished (79/79 frames, 0.27 fps). The test allows 6 minutes, but + `WorkerHarness.runJob`'s default job limit is 5. +- **Measured** from the logs of the last 40 nightlies (165 heavy legs): the + test took 222–300+ s on macos-arm64 (mean 279 s), 102–300+ s on the x64 + Macs, at most 232 s on Linux and 190 s on Windows, and timed out 9 times, + all on Mac legs. A standing flake, not one draw. #114's bundle and + rc4's run BM3D at the same speed on an M1, so it is runner speed. +- **Fix.** The test encodes 24 frames (`endFrame: 23`), which still gives + V-BM3D's radius 1 a neighbour each side; it passes `runJob` an explicit + 5-minute limit (below the test's 6) and asserts 24 output frames, so a + trim that stopped applying would not bring the long run back quietly. + Never a retry. + +Report: [docs/reports/task-128-bm3d-heavy-test-time](reports/task-128-bm3d-heavy-test-time/index.html). diff --git a/docs/reports/README.md b/docs/reports/README.md index 839d62bb..a49e0b62 100644 --- a/docs/reports/README.md +++ b/docs/reports/README.md @@ -66,6 +66,7 @@ to it. | Date | Report | Outcome | |---|---|---| +| 2026-11-28 | [Task #128: the BM3D smoke encode that outgrew the 300 s job limit](task-128-bm3d-heavy-test-time/index.html) | Fixed in the test: across 40 nightlies the 79-frame BM3D encode took 222–300+ s on macos-arm64 and up to 300+ s on the x64 Macs, and hit `runJob`'s default 300 s limit 9 times, all on Mac legs; Linux ≤ 232 s, Windows ≤ 190 s. Runner speed, not the deps. It now encodes 24 frames (radius 1 still has neighbours both sides) under an explicit 5 min job limit and asserts the count | | 2026-11-27 | [Task #124: the DCTFilter stress test that timed out on Windows](task-124-dctfilter-stress-timeout/index.html) | Fixed in the tests: the test's vspipe was held in its exit by Defender (task #122), and tests ran vspipe with `Process.run`, with no limit, so the worker's 30 s guard never applied. The logs: after the timeout the next test ran at normal speed beside the leftover process (160 s vs 170–177 s), and a console host was left at job end. Every test that runs vspipe now goes through `runVspipe`, the worker's rule as a pinned Dart twin, with stacks before the kill; the stress tests bound (90 s) and time each graph (M1: DCTFilter 0.5–0.8 s, DFTTest 9–11 s). Not yet run on Windows with the change | | 2026-11-27 | [Task #113: Retinex r4 appends our sigma to its defaults](task-113-retinex-sigma/index.html) | Fixed in the deps scripts (next deps version): Windows shipped the r4 DLL, whose parser runs `sigma=[X]` as `[25, 80, 250, X]`; macOS/Linux built 6bfbdd42 (r4 + the fix). Shadow Detail was 9–11 levels apart at the default sigma (max 34; three frames of small_clip, luma), and the slider moved Windows' picture a seventh as far. The r4 tag built on the same machine matches the emulation exactly. Windows now builds 6bfbdd42 with Zig, marked by a no-code patch; macOS output byte-identical. macOS arm64 measured; the Windows DLL cross-compiled but run only in CI | | 2026-11-27 | [Task #126: zimg 9806db42 (graphengine 308d3735) against the pinned 67e06032](task-126-zimg-9806db42/index.html) | Clean; pinned from deps 1.18.0-rc5 (task #127). Upstream's fix for task #109 (zimg 9806db42 = our 67e06032 + graphengine 308d3735), built as R78 builds it and run over #109's 158 graphs on Linux x64/arm64 (gcc 13, clang 18) and macOS arm64: no overrun, guard-page abort or new ASan report (the 36 error-diffusion graphs included), and every picture byte-identical to the pin's (FNV-1a of each destination, SIMD and C kernels). Every graph's tmp buffer is smaller (median 0.89x on x64, 0.86x on arm64). Linux arm64 gcc 13 ASan flags the same 32 4:2:0 graphs at both commits and clang 18 none (task #115). Bundle A/B (task #127): the Linux build links the new zimg; task #109's vs_confirm.sh finds no abort or invalid write at either commit; ci-test and nightly pass on linux-x64 v3/v2 except 3 field-order tests that fail the same way on rc4 | diff --git a/docs/reports/task-128-bm3d-heavy-test-time/data/bm3d_times.txt b/docs/reports/task-128-bm3d-heavy-test-time/data/bm3d_times.txt new file mode 100644 index 00000000..f00bfb35 --- /dev/null +++ b/docs/reports/task-128-bm3d-heavy-test-time/data/bm3d_times.txt @@ -0,0 +1,165 @@ +2026-11-28 46097637546 windows (windows-x64, heavy) 124 ok +2026-11-28 46097637546 linux (linux-x64-v2, heavy) 118 ok +2026-11-28 46097637546 macos (macos-arm64, heavy) 296 ok +2026-11-28 46097637546 macos (macos-x64, heavy) 193 ok +2026-11-28 46097637546 windows (windows-x64-v2, heavy) 164 ok +2026-11-28 46097637546 macos (macos-x64-v2, heavy) 122 ok +2026-11-28 46097637546 linux (linux-x64, heavy) 141 ok +2026-11-27 46038708313 linux (linux-x64-v2, heavy) 120 ok +2026-11-27 46038708313 linux (linux-x64, heavy) 118 ok +2026-11-27 46038708313 windows (windows-x64, heavy) 109 ok +2026-11-27 46038708313 windows (windows-x64-v2, heavy) 104 ok +2026-11-27 46038708313 macos (macos-x64, heavy) 193 ok +2026-11-27 46038708313 macos (macos-x64-v2, heavy) 214 ok +2026-11-27 46038708313 macos (macos-arm64, heavy) 251 ok +2026-11-27 46018310484 linux (linux-x64, heavy) 167 ok +2026-11-27 46018310484 linux (linux-x64-v2, heavy) 117 ok +2026-11-27 46018310484 macos (macos-arm64, heavy) 313 FAIL +2026-11-27 46018310484 windows (windows-x64-v2, heavy) 108 ok +2026-11-27 46018310484 windows (windows-x64, heavy) 107 ok +2026-11-27 46018310484 macos (macos-x64-v2, heavy) 123 ok +2026-11-27 46018310484 macos (macos-x64, heavy) 184 ok +2026-11-27 45997028089 windows (windows-x64, heavy) 91 ok +2026-11-27 45997028089 macos (macos-arm64, heavy) - +2026-11-27 45997028089 macos (macos-x64, heavy) - +2026-11-27 45997028089 macos (macos-x64-v2, heavy) 282 ok +2026-11-27 45997028089 linux (linux-x64-v2, heavy) - +2026-11-27 45997028089 linux (linux-x64, heavy) 119 ok +2026-11-27 45997028089 windows (windows-x64-v2, heavy) 109 ok +2026-11-27 45996823325 linux (linux-x64-v2, heavy) 174 ok +2026-11-27 45996823325 macos (macos-arm64, heavy) - +2026-11-27 45996823325 windows (windows-x64-v2, heavy) - +2026-11-27 45996823325 macos (macos-x64, heavy) - +2026-11-27 45996823325 linux (linux-x64, heavy) 80 ok +2026-11-27 45996823325 macos (macos-x64-v2, heavy) - +2026-11-27 45996823325 windows (windows-x64, heavy) - +2026-11-27 45996291642 linux (linux-x64-v2, heavy) 173 ok +2026-11-27 45996291642 macos (macos-x64, heavy) 253 ok +2026-11-27 45996291642 macos (macos-x64-v2, heavy) 152 ok +2026-11-27 45996291642 windows (windows-x64, heavy) 150 ok +2026-11-27 45996291642 linux (linux-x64, heavy) 170 ok +2026-11-27 45996291642 windows (windows-x64-v2, heavy) 110 ok +2026-11-27 45996291642 macos (macos-arm64, heavy) 320 FAIL +2026-11-26 45913434555 windows (windows-x64-v2, heavy) 149 ok +2026-11-26 45913434555 windows (windows-x64, heavy) 147 ok +2026-11-26 45913434555 macos (macos-arm64, heavy) 287 ok +2026-11-26 45913434555 macos (macos-x64, heavy) 117 ok +2026-11-26 45913434555 macos (macos-x64-v2, heavy) 168 ok +2026-11-26 45913434555 linux (linux-x64, heavy) 115 ok +2026-11-26 45913434555 linux (linux-x64-v2, heavy) 144 ok +2026-11-26 45913182922 windows (windows-x64-v2, heavy) - +2026-11-26 45867504513 macos (macos-x64, heavy) 233 ok +2026-11-26 45867504513 macos (macos-arm64, heavy) 247 ok +2026-11-26 45867504513 windows (windows-x64, heavy) 190 ok +2026-11-26 45867504513 windows (windows-x64-v2, heavy) 152 ok +2026-11-26 45867504513 macos (macos-x64-v2, heavy) 138 ok +2026-11-26 45867504513 linux (linux-x64, heavy) 114 ok +2026-11-26 45867504513 linux (linux-x64-v2, heavy) 117 ok +2026-11-26 45796959369 macos (macos-arm64, heavy) 228 ok +2026-11-26 45796959369 windows (windows-x64, heavy) 79 ok +2026-11-26 45796959369 linux (linux-x64, heavy) 146 ok +2026-11-26 45796959369 macos (macos-x64, heavy) 234 ok +2026-11-26 45796959369 windows (windows-x64-v2, heavy) 135 ok +2026-11-26 45796959369 macos (macos-x64-v2, heavy) 175 ok +2026-11-26 45796959369 linux (linux-x64-v2, heavy) 170 ok +2026-11-25 45667413686 windows (windows-x64-v2, heavy) 75 ok +2026-11-25 45667413686 linux (linux-x64-v2, heavy) 132 ok +2026-11-25 45667413686 windows (windows-x64, heavy) 158 ok +2026-11-25 45667413686 linux (linux-x64, heavy) 205 ok +2026-11-25 45667413686 macos (macos-x64-v2, heavy) 243 ok +2026-11-25 45667413686 macos (macos-x64, heavy) 216 ok +2026-11-24 45459637742 macos (macos-x64-v2, heavy) 155 ok +2026-11-24 45459637742 linux (linux-x64, heavy) 167 ok +2026-11-24 45459637742 linux (linux-x64-v2, heavy) 173 ok +2026-11-24 45459637742 windows (windows-x64-v2, heavy) 128 ok +2026-11-24 45459637742 windows (windows-x64, heavy) 131 ok +2026-11-24 45459637742 macos (macos-x64, heavy) 209 ok +2026-11-24 45459637742 macos (macos-arm64, heavy) 280 ok +2026-11-23 45242697745 windows (windows-x64-v2, heavy) 77 ok +2026-11-23 45242697745 macos (macos-arm64, heavy) 282 ok +2026-11-23 45242697745 windows (windows-x64, heavy) 108 ok +2026-11-23 45242697745 linux (linux-x64, heavy) 169 ok +2026-11-23 45242697745 macos (macos-x64-v2, heavy) 158 ok +2026-11-23 45242697745 linux (linux-x64-v2, heavy) 168 ok +2026-11-22 45035605064 windows (windows-x64-v2, heavy) 137 ok +2026-11-22 45035605064 linux (linux-x64, heavy) 171 ok +2026-11-22 45035605064 windows (windows-x64, heavy) 137 ok +2026-11-22 45035605064 macos (macos-arm64, heavy) 249 ok +2026-11-22 45035605064 macos (macos-x64-v2, heavy) 268 ok +2026-11-22 45035605064 macos (macos-x64, heavy) 224 ok +2026-11-22 45035605064 linux (linux-x64-v2, heavy) 170 ok +2026-11-22 45001595186 macos (macos-x64-v2, heavy) 264 ok +2026-11-22 45001595186 linux (linux-x64, heavy) 169 ok +2026-11-22 45001595186 macos (macos-arm64, heavy) 300 FAIL +2026-11-22 45001595186 windows (windows-x64, heavy) 127 ok +2026-11-22 45001595186 linux (linux-x64-v2, heavy) 170 ok +2026-11-22 45001595186 macos (macos-x64, heavy) 183 ok +2026-11-22 45001595186 windows (windows-x64-v2, heavy) 138 ok +2026-11-22 44998535692 macos (macos-x64-v2, heavy) 260 ok +2026-11-22 44998535692 macos (macos-arm64, heavy) 261 ok +2026-11-22 44998535692 macos (macos-x64, heavy) 130 ok +2026-11-22 44983943673 macos (macos-x64-v2, heavy) 163 ok +2026-11-22 44983943673 macos (macos-x64, heavy) 175 ok +2026-11-22 44983943673 windows (windows-x64, heavy) 106 ok +2026-11-22 44983943673 windows (windows-x64-v2, heavy) 121 ok +2026-11-22 44983943673 linux (linux-x64, heavy) 169 ok +2026-11-22 44983943673 linux (linux-x64-v2, heavy) 232 ok +2026-11-22 44983943673 macos (macos-arm64, heavy) 222 ok +2026-11-21 44940674293 linux (linux-x64, heavy) 6 FAIL +2026-11-21 44940674293 windows (windows-x64-v2, heavy) 156 ok +2026-11-21 44940674293 windows (windows-x64, heavy) - +2026-11-21 44940674293 macos (macos-x64-v2, heavy) 102 ok +2026-11-21 44940674293 macos (macos-arm64, heavy) - +2026-11-21 44940674293 macos (macos-x64, heavy) 174 ok +2026-11-21 44940674293 linux (linux-x64-v2, heavy) 13 FAIL +2026-11-21 44916724870 macos (macos-arm64, heavy) 287 ok +2026-11-21 44916724870 windows (windows-x64, heavy) 76 ok +2026-11-21 44916724870 linux (linux-x64-v2, heavy) 169 ok +2026-11-21 44916724870 windows (windows-x64-v2, heavy) 178 ok +2026-11-21 44916724870 linux (linux-x64, heavy) 112 ok +2026-11-21 44916724870 macos (macos-x64, heavy) 105 ok +2026-11-21 44914360715 macos (macos-x64, heavy) 168 ok +2026-11-21 44914360715 macos (macos-arm64, heavy) 300 FAIL +2026-11-21 44914360715 macos (macos-x64-v2, heavy) 175 ok +2026-11-21 44869849455 macos (macos-arm64, heavy) 288 ok +2026-11-21 44869849455 macos (macos-x64-v2, heavy) 143 ok +2026-11-21 44869849455 macos (macos-x64, heavy) 118 ok +2026-11-20 44767156916 windows (windows-x64, heavy) 81 ok +2026-11-20 44767156916 linux (linux-x64, heavy) 170 ok +2026-11-20 44767156916 linux (linux-x64-v2, heavy) 170 ok +2026-11-20 44767156916 macos (macos-x64, heavy) 295 ok +2026-11-20 44767156916 macos (macos-x64-v2, heavy) 175 ok +2026-11-20 44767156916 windows (windows-x64-v2, heavy) 103 ok +2026-11-20 44767156916 macos (macos-arm64, heavy) 300 ok +2026-11-20 44737084373 linux (linux-x64-v2, heavy) 170 ok +2026-11-20 44737084373 linux (linux-x64, heavy) 167 ok +2026-11-19 44562921675 windows (windows-x64, heavy) 166 ok +2026-11-19 44562921675 linux (linux-x64-v2, heavy) 192 ok +2026-11-19 44562921675 windows (windows-x64-v2, heavy) 147 ok +2026-11-19 44562921675 linux (linux-x64, heavy) 188 ok +2026-11-19 44562921675 macos (macos-x64-v2, heavy) 197 ok +2026-11-19 44562921675 macos (macos-x64, heavy) 300 FAIL +2026-11-19 44515333102 macos (macos-x64, heavy) 207 ok +2026-11-19 44515333102 macos (macos-x64-v2, heavy) 136 ok +2026-11-19 44515333102 macos (macos-arm64, heavy) 300 FAIL +2026-11-18 44342418084 linux (linux-x64, heavy) 194 ok +2026-11-18 44342418084 windows (windows-x64-v2, heavy) 164 ok +2026-11-18 44342418084 macos (macos-x64, heavy) 300 FAIL +2026-11-18 44342418084 macos (macos-arm64, heavy) 297 ok +2026-11-18 44342418084 linux (linux-x64-v2, heavy) 143 ok +2026-11-18 44342418084 macos (macos-x64-v2, heavy) 239 ok +2026-11-18 44342418084 windows (windows-x64, heavy) 146 ok +2026-11-17 44127090331 linux (linux-x64-v2, heavy) 137 ok +2026-11-17 44127090331 windows (windows-x64-v2, heavy) 160 ok +2026-11-17 44127090331 windows (windows-x64, heavy) 81 ok +2026-11-17 44127090331 macos (macos-x64-v2, heavy) 300 FAIL +2026-11-17 44127090331 linux (linux-x64, heavy) 190 ok +2026-11-17 44127090331 macos (macos-x64, heavy) 208 ok +2026-11-17 44127090331 macos (macos-arm64, heavy) 256 ok +2026-11-17 44089342398 windows (windows-x64, heavy) 150 ok +2026-11-17 44089342398 linux (linux-x64-v2, heavy) 187 ok +2026-11-17 44089342398 windows (windows-x64-v2, heavy) 155 ok +2026-11-17 44089342398 macos (macos-arm64, heavy) 300 ok +2026-11-17 44089342398 macos (macos-x64-v2, heavy) 300 FAIL +2026-11-17 44089342398 linux (linux-x64, heavy) 140 ok +2026-11-17 44089342398 macos (macos-x64, heavy) 204 ok diff --git a/docs/reports/task-128-bm3d-heavy-test-time/index.html b/docs/reports/task-128-bm3d-heavy-test-time/index.html new file mode 100644 index 00000000..cb98100e --- /dev/null +++ b/docs/reports/task-128-bm3d-heavy-test-time/index.html @@ -0,0 +1,242 @@ + + + + + +BM3D heavy test time + + + +

The BM3D smoke encode that outgrew the 300 s job limit

+

Task #128, 2026-11-28. The failure: integration_new_passes_test.dart › noise reduction: BM3D runs end-to-end, chroma included, TimeoutException: nr_bm3d timed out after 300s on the macos-arm64 heavy leg of nightly 46018310484 (job 140571075844, a deps_run_id dispatch of task #114's deps build). The worker log there shows the encode finished, 79/79 frames at 0.27 fps (ffmpeg elapsed=0:04:49), just as the job limit expired. The evidence is the logs of the last 40 nightly.yml runs (scripts/bm3d_times.py, data/bm3d_times.txt).

+ +

Outcome

+ + +

Measured: the test's time on every heavy leg

+

Tests in one file run one after another, so the BM3D test's time is its result line's timestamp minus the previous test's (TTempSmooth). Limits of the metric: it includes a few seconds of ffprobe and test overhead, and a timeout row is a floor (~300 s, or up to 320 s with the hang sampling), not the encode's real time. Two Linux rows where the whole file failed in setUpAll (6 s and 13 s) are left out; they are not BM3D.

+ + + + + + + + + +
BundleLegsMin (s)Mean (s)Max (s)Timeouts
macos-arm6421222279320*5
macos-x6423105201300*2
macos-x64-v224102194300*2
linux-x6423801542050
linux-x64-v2221171592320
windows-x6420761231900
windows-x64-v221751321780
+

* the maximum is a timeout, so the real time was higher.

+
+ +0 s +60 s +120 s +180 s +240 s +300 s +300 s job limit +macos-arm64 +macos-arm64: 296 s ok +macos-arm64: 251 s ok +macos-arm64: 313 s FAIL +macos-arm64: 320 s FAIL +macos-arm64: 287 s ok +macos-arm64: 247 s ok +macos-arm64: 228 s ok +macos-arm64: 280 s ok +macos-arm64: 282 s ok +macos-arm64: 249 s ok +macos-arm64: 300 s FAIL +macos-arm64: 261 s ok +macos-arm64: 222 s ok +macos-arm64: 287 s ok +macos-arm64: 300 s FAIL +macos-arm64: 288 s ok +macos-arm64: 300 s ok +macos-arm64: 300 s FAIL +macos-arm64: 297 s ok +macos-arm64: 256 s ok +macos-arm64: 300 s ok +macos-x64 +macos-x64: 193 s ok +macos-x64: 193 s ok +macos-x64: 184 s ok +macos-x64: 253 s ok +macos-x64: 117 s ok +macos-x64: 233 s ok +macos-x64: 234 s ok +macos-x64: 216 s ok +macos-x64: 209 s ok +macos-x64: 224 s ok +macos-x64: 183 s ok +macos-x64: 130 s ok +macos-x64: 175 s ok +macos-x64: 174 s ok +macos-x64: 105 s ok +macos-x64: 168 s ok +macos-x64: 118 s ok +macos-x64: 295 s ok +macos-x64: 300 s FAIL +macos-x64: 207 s ok +macos-x64: 300 s FAIL +macos-x64: 208 s ok +macos-x64: 204 s ok +macos-x64-v2 +macos-x64-v2: 122 s ok +macos-x64-v2: 214 s ok +macos-x64-v2: 123 s ok +macos-x64-v2: 282 s ok +macos-x64-v2: 152 s ok +macos-x64-v2: 168 s ok +macos-x64-v2: 138 s ok +macos-x64-v2: 175 s ok +macos-x64-v2: 243 s ok +macos-x64-v2: 155 s ok +macos-x64-v2: 158 s ok +macos-x64-v2: 268 s ok +macos-x64-v2: 264 s ok +macos-x64-v2: 260 s ok +macos-x64-v2: 163 s ok +macos-x64-v2: 102 s ok +macos-x64-v2: 175 s ok +macos-x64-v2: 143 s ok +macos-x64-v2: 175 s ok +macos-x64-v2: 197 s ok +macos-x64-v2: 136 s ok +macos-x64-v2: 239 s ok +macos-x64-v2: 300 s FAIL +macos-x64-v2: 300 s FAIL +linux-x64 +linux-x64: 141 s ok +linux-x64: 118 s ok +linux-x64: 167 s ok +linux-x64: 119 s ok +linux-x64: 80 s ok +linux-x64: 170 s ok +linux-x64: 115 s ok +linux-x64: 114 s ok +linux-x64: 146 s ok +linux-x64: 205 s ok +linux-x64: 167 s ok +linux-x64: 169 s ok +linux-x64: 171 s ok +linux-x64: 169 s ok +linux-x64: 169 s ok +linux-x64: 112 s ok +linux-x64: 170 s ok +linux-x64: 167 s ok +linux-x64: 188 s ok +linux-x64: 194 s ok +linux-x64: 190 s ok +linux-x64: 140 s ok +linux-x64-v2 +linux-x64-v2: 118 s ok +linux-x64-v2: 120 s ok +linux-x64-v2: 117 s ok +linux-x64-v2: 174 s ok +linux-x64-v2: 173 s ok +linux-x64-v2: 144 s ok +linux-x64-v2: 117 s ok +linux-x64-v2: 170 s ok +linux-x64-v2: 132 s ok +linux-x64-v2: 173 s ok +linux-x64-v2: 168 s ok +linux-x64-v2: 170 s ok +linux-x64-v2: 170 s ok +linux-x64-v2: 232 s ok +linux-x64-v2: 169 s ok +linux-x64-v2: 170 s ok +linux-x64-v2: 170 s ok +linux-x64-v2: 192 s ok +linux-x64-v2: 143 s ok +linux-x64-v2: 137 s ok +linux-x64-v2: 187 s ok +windows-x64 +windows-x64: 124 s ok +windows-x64: 109 s ok +windows-x64: 107 s ok +windows-x64: 91 s ok +windows-x64: 150 s ok +windows-x64: 147 s ok +windows-x64: 190 s ok +windows-x64: 79 s ok +windows-x64: 158 s ok +windows-x64: 131 s ok +windows-x64: 108 s ok +windows-x64: 137 s ok +windows-x64: 127 s ok +windows-x64: 106 s ok +windows-x64: 76 s ok +windows-x64: 81 s ok +windows-x64: 166 s ok +windows-x64: 146 s ok +windows-x64: 81 s ok +windows-x64: 150 s ok +windows-x64-v2 +windows-x64-v2: 164 s ok +windows-x64-v2: 104 s ok +windows-x64-v2: 108 s ok +windows-x64-v2: 109 s ok +windows-x64-v2: 110 s ok +windows-x64-v2: 149 s ok +windows-x64-v2: 152 s ok +windows-x64-v2: 135 s ok +windows-x64-v2: 75 s ok +windows-x64-v2: 128 s ok +windows-x64-v2: 77 s ok +windows-x64-v2: 137 s ok +windows-x64-v2: 138 s ok +windows-x64-v2: 121 s ok +windows-x64-v2: 156 s ok +windows-x64-v2: 178 s ok +windows-x64-v2: 103 s ok +windows-x64-v2: 147 s ok +windows-x64-v2: 164 s ok +windows-x64-v2: 160 s ok +windows-x64-v2: 155 s ok + +
Each dot is one nightly heavy leg's BM3D test time (blue: passed, red: timed out at the job limit). The Mac rows crowd the dashed 300 s line; Linux and Windows stay well under it.
+
+ +

Local run after the change

+

Apple M1, deps 1.18.0-rc5, debug worker: the test passed, 24 frames out, in 95 s. That time is not representative: the machine's load average was 135 on 8 cores during the run (another job's VapourSynth). It shows the trim, the count and the job limit work, not the speed.

+ +

Decisions

+ + +

Not tested

+ + +

Reproduce

+

python3 scripts/bm3d_times.py --runs 40 > data/bm3d_times.txt with an authenticated gh; job logs are cached in $BM3D_LOG_DIR (a temporary directory otherwise). Newer runs push older ones out of the 40, so the rows will differ.

+ + diff --git a/docs/reports/task-128-bm3d-heavy-test-time/scripts/bm3d_times.py b/docs/reports/task-128-bm3d-heavy-test-time/scripts/bm3d_times.py new file mode 100644 index 00000000..423b5308 --- /dev/null +++ b/docs/reports/task-128-bm3d-heavy-test-time/scripts/bm3d_times.py @@ -0,0 +1,55 @@ +"""Time the BM3D smoke test on every nightly heavy leg (task #128). + +Reads the logs of runs that already finished; starts nothing. Tests in one +file run one after another, so the BM3D test's time is its result line's +timestamp minus the previous test's (TTempSmooth). That includes a few +seconds of ffprobe and test overhead, and a timeout row is a floor (the job +was killed), not a time. + +Usage: python3 bm3d_times.py [--runs N] [--repo OWNER/NAME] +Logs are cached in $BM3D_LOG_DIR (default: a temporary directory). +Needs an authenticated `gh`. +""" +import argparse, datetime, json, os, re, subprocess, tempfile + +p = argparse.ArgumentParser() +p.add_argument("--runs", type=int, default=40) +p.add_argument("--repo") +a = p.parse_args() +repo = a.repo or json.loads(subprocess.check_output( + ["gh", "repo", "view", "--json", "nameWithOwner"]))["nameWithOwner"] +out = os.environ.get("BM3D_LOG_DIR") or tempfile.mkdtemp(prefix="bm3d-logs-") +os.makedirs(out, exist_ok=True) + +esc = re.compile(r"\x1b\[[0-9;]*m") +ts = lambda s: datetime.datetime.fromisoformat(s[:26]) +runs = json.loads(subprocess.check_output( + ["gh", "run", "list", "--repo", repo, "--workflow", "nightly.yml", + "--limit", str(a.runs), "--json", "databaseId,createdAt"])) +for run in runs: + jobs = json.loads(subprocess.check_output( + ["gh", "run", "view", str(run["databaseId"]), "--repo", repo, + "--json", "jobs"]))["jobs"] + for j in jobs: + if "heavy" not in j["name"] or j["conclusion"] in ("skipped", "cancelled", None): + continue + path = os.path.join(out, f"{j['databaseId']}.log") + if not os.path.exists(path): + r = subprocess.run(["gh", "api", "--allow-escape-sequences", + f"repos/{repo}/actions/jobs/{j['databaseId']}/logs"], + capture_output=True) + open(path, "wb").write(r.stdout) + prev = bm = None + res = "" + for line in open(path, errors="replace"): + line = esc.sub("", line) + if "integration_new_passes_test.dart: New pipeline passes" not in line: + continue + if "TTempSmooth runs end-to-end" in line: + prev = ts(line) + if "BM3D runs end-to-end" in line: + bm = ts(line) + res = "FAIL" if "❌" in line else "ok" + d = f"{(bm - prev).total_seconds():6.0f}" if bm and prev else " -" + print(run["createdAt"][:10], run["databaseId"], f"{j['name']:<28}", d, res, + flush=True)