Skip to content

Output conformance: bound every subprocess and keep failing cases' evidence (task #99) - #261

Merged
StuartCameronCode merged 6 commits into
mainfrom
stuart/99-macos-x64-nightly-heavy-output-conforman
Nov 24, 2026
Merged

StuartCameronCode merged 6 commits into
mainfrom
stuart/99-macos-x64-nightly-heavy-output-conforman

Conversation

@StuartCameronCode

Copy link
Copy Markdown
Owner

Why

On the macOS x64 nightly, some AV1-into-MP4 cases of integration_output_conformance_test.dart failed now and then, each time a different case with a different symptom: a white flash missing, 99 pictures for 100, a 3-minute timeout. arm64 never failed them.

What we found

The two unexplained mp4+av1/passthrough/delayed-avi failures did not reproduce on macos-15-intel: 0 failures in 960 case runs (alone and under CPU load), 1,800 encoder replays (all one hash) and 9,600 decodes (all 100 pictures, none hung), on both x64 tiers with an arm64 control. So this PR re-pins no encoder, adds no retry and lists nothing in knownFailures. Instead it adds what will name the cause the next time a case fails. The full write-up is docs/reports/task-99-av1-conformance-flake.

Changes

  • Bounded subprocesses (test/support/bounded_process.dart): runBounded kills a process tree at its limit and names the command. Every subprocess in the conformance matrix, ffprobeJson and the A/V sync helpers now uses it. Before the kill, a hang is sampled (sample on macOS, gdb on Linux), within a 20 s budget.
  • Job limit below case limit: the job's limit (150 s) is below the case's (3 min), so a hung job is killed and reported, not cut off by a bare TimeoutException.
  • Evidence from failing cases: a failing case prints its job log tail, its packet and decode counts and the job. It also keeps its files under VAPOURBOX_CONFORMANCE_KEEP, which the nightly uploads as conformance-failures-<bundle>.
  • Worker: logs the encoder's exact arguments (Debug).
  • Repro tooling: VAPOURBOX_CONFORMANCE_REPEAT=N runs each case N times, and the new repro-output-conformance.yml workflow loops a case, replays the encoder and repeats the decodes on the nightly's runners.
  • Stated timeouts: macOS x64's slow heavy tests now state a 5-minute timeout instead of package:test's 30 s default, which several of them ran past there. The reserved-colour-tags detectors are bounded at 2 min.
  • Guard test: conformance_timeouts_test.dart (push gate) holds the job/case limit order, the stated timeouts and describeHang's budget.
  • Docs: CLAUDE.md, ENGINEERING_NOTES and the reports index.

Testing

  • Push gate (flutter, excluding heavy and gpu): 1881 passed, 7 skipped. cargo test: all pass.
  • Conformance matrix and reserved colour tags on arm64: 458 passed.
  • Verification nightly 44998535692: both macOS x64 tiers passed all 448 conformance cases and every test that got a stated timeout. Its only failures were add-on downloads from github.com, filed as task [SUGGESTION] Switch to new QTempGaussMC #117.
  • After review: conformance_timeouts_test 5/5, and one heavy mp4+av1 case passed.

🤖 Generated with Claude Code

StuartCameronCode and others added 6 commits November 24, 2026 22:44
…o workflow (task #99)

The output conformance matrix's measuring ffprobe/ffmpeg runs had no time
limit and a hung job ran into the test's own 3-minute timeout, naming and
killing nothing. Every subprocess now has a named limit (runBounded), the
job's is below the case's, a hang is sampled before the kill, and a failing
case prints the job log tail, packet and decoded counts, the decoder and the
job, and is kept under VAPOURBOX_CONFORMANCE_KEEP (nightly uploads it).

repro-output-conformance.yml loops the AV1 cases on the nightly's macOS
runners and replays the encoder and the test's decodes alone. The worker
logs its encoder arguments, as it does the decoder's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tors (task #99)

--detect-native in integration_reserved_colour_tags_test.dart took 23-30 s
on the 4-core macOS x64 runner and failed 8 nightly legs at package:test's
30 s default; task #41's AAC test failed 2 the same way. Each now states a
5-minute timeout, as do five more tests measured at 23-31 s there; the
detectors run through runBounded with a 2-minute limit that names the flag
and its last stderr (NATIVE_RES_STAGE lines). conformance_timeouts_test.dart
(push gate) checks the helper and that the limits stay in place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…refuses them)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…le/gdb (task #99 review)

A sample that timed out threw away the whole report, and the per-process
30 s limit could outrun the 30 s between the job's and the case's limits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@StuartCameronCode
StuartCameronCode force-pushed the stuart/99-macos-x64-nightly-heavy-output-conforman branch from e62bebd to 6665967 Compare November 24, 2026 11:44
@StuartCameronCode
StuartCameronCode merged commit ac45c79 into main Nov 24, 2026
7 of 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