Repository navigation
Description
Current scope — 2026-10-25
The Windows test-portability lane is merged; CUDA TTS cancellation remains. Linux GStreamer documentation and parity-tool accounting were fixed by #1291 (1326d1264); the basic-app empty-answer case was fixed by #1382. #1379, #1380 and #1381 are closed.
1. Windows chat-app tests — completed in main
#1414 landed through batch #1420. Actual Windows Server 2022 validation passed 664 tests / 11 skipped / 0 failed. Fresh combined macOS chat tests passed 674 / 4 skipped, with 127 Chrome tests. The fix uses host-native paths and deterministic integrity cancellation, preserving the deadlines and assertions. Only three physical-iOS POSIX filesystem fixtures skip on Windows; parser/safety checks remain enabled.
Historical failure
The earlier Windows run on stock WS2022 with the #1396 LiteRT repin recorded 659 pass, 8 skipped, 8 fail:
| File | Failing cases |
|---|---|
test/litert_lm_benchmark_app_test.dart |
Relative model names resolved from app documents |
test/model_download_controller_adapter_test.dart |
Cached entries, Web-specific model source, refresh/progress forwarding |
test/model_service_test.dart |
Integrity-verification cancellation |
test_vm/physical_ios_speech_e2e_support_test.dart |
Three canonical filesystem/output-path cases |
- Diagnose and fix Windows path assumptions and integrity-cancellation fixture timing.
- Pass
flutter test test test_vmon Windows and the affected non-Windows suites. Preserve cancellation and filesystem guarantees rather than weakening assertions or deadlines to hide failures.
2. CUDA/Windows TTS decode-cancel gate — separate follow-up
The historical gate can fail from reference-decode timing spread or an early timer. #1387 adds cancel-landing diagnostics, not the margin/timer repair.
- Reproduce on CUDA/Windows, use the landing evidence to distinguish real decode cancellation from frame-step or post-completion samples, and fix the measured margin/timer cause.
- Verify in-flight cancellation and recovery on the affected backend; retain truthful NOT_RUN results when decode cancellation was not exercised.
The CUDA lane is not a blocker for the selected Windows test-portability slice. #627 owns final-decode targeting; #922 owns release scope.
Activity
Fail the prompt reuse parity check on empty output and document chat …
leehack commentedon Oct 24, 2026
Split the self-verifiable items into filler issues: #1379 (Linux GStreamer docs), #1380 (basic_app empty answer), #1381 (parity tool counts only content). The Windows test-path failures and the CUDA TTS
decode_cancelflake stay here.leehack commentedon Oct 24, 2026
Correction: the GStreamer docs and the parity tool were already fixed by 1326d12, so #1379 and #1381 are closed. #1380 (basic_app empty answer) is still open.
leehack commentedon Oct 24, 2026
Status against main e62dcc3:
flutter teston Windows, 8 failures — needs a Windows run to name them (tests hard-code/models/...and/tmp/...paths). Will run on the Windows VM used for the next LiteRT repin.decode_cancelgate flaky on CUDA/Windows — Record where each TTS validation cancel landed #1387 only adds landing diagnostics; margin/timer fix needs CUDA/Windows to verify.leehack commentedon Oct 24, 2026
Windows chat_app
flutter test test test_vmon stock WS2022 (GCE, main + LiteRT v0.18.1-4 repin #1396): 659 pass, 8 skipped, 8 fail.test/litert_lm_benchmark_app_test.dart: LiteRT-LM benchmark backend selection resolves relative model names from app documents when requestedtest/model_download_controller_adapter_test.dart(ChatAppModelDownloadManager): returns cached entries without calling the chat app downloader; uses web-specific model source when requested; refresh downloads through the chat app service and forwards progresstest/model_service_test.dart: cancellation interrupts integrity verificationtest_vm/physical_ios_speech_e2e_support_test.dart(Canonical speech filesystem layout): canonicalizes cache paths after runtime resolution; writes exclusively and deletes only the canonical output; canonicalizes layout when asrAudio and liteRtAsrAudio share the same file and digestEvidence: llamadart-evidence/litert-repin-0.18.1-4/windows/.
[-]Example and tooling gaps from the pre-release sweep (Linux deps, basic_app, parity test, Windows chat_app tests, TTS cancel gate)[/-][+]Fix remaining Windows chat-app tests and CUDA TTS cancel validation[/+]leehack commentedon Nov 7, 2026
Windows chat-app re-check on main c601060 (no Windows CI lane guards it):
flutter test test test_vmon stock WS2022 (GCE e2-standard-4) passed 679 / 15 skipped / 0 failed. Skips are 5 Web-only tests and 10 explicitPlatform.isWindowsPOSIX/symlink/hardlink fixtures from #462 and #1414. macOS on the same SHA: 689 / 8 skipped / 0 failed. No new Windows regressions since #1414, so no PR.Only section 2 (CUDA/Windows TTS
decode_cancelmargin/timer) remains; it needs a CUDA host.leehack commentedon Nov 7, 2026
Linux CUDA
decode_cancelrun: 9 PASS and 3 NOT_RUN out of 12, with no FAIL. All 3 NOT_RUN are the timer-early harness bug that #1775 fixes.Setup
tts759-20261107-1019, on one L4 in a g2-standard-8 VM with driver 580.d14513ae, nativev0.8.0-3,validation.dart speech --pack tts --backend cuda.Timer-early NOT_RUN: 3/12. Runs r02, r05 and r12 issued the cancel 0.20–0.31 ms before the lead. This happens far more often on this host than the earlier estimate of about 1%.
Margins on the 9 PASS runs
The Windows failure, a 21 ms spread against a 42 ms margin, did not reproduce on Linux CUDA.
Where the cancel lands: perf traces put all 6 traced cancels inside the native decode (
in_decode). CUDA code2wav is interruptible here: the cancelled syntheses saved about 32 ms of a 140 ms decode.Conclusion: with #1775 merged, the Linux CUDA gate should pass. The Windows margin FAIL is Windows-specific; a Windows L4 run (stage 2) follows.
Evidence:
gs://llamadart-cuda761-results/tts759/tts759-20261107-1019/summary.json, sha25650fde925…results.tgz, sha2563c8f8d12…leehack commentedon Nov 7, 2026
Windows CUDA
decode_cancelrun: reproduced, 8 PASS / 4 FAIL out of 12, and every FAIL is a false negative.Setup: run
tts759w-20261107-1102, Windows Server 2022, one L4 with driver 596.86. Same core (d14513ae), nativev0.8.0-3, model and pack as the Linux run.Findings
Proposed harness fix, in
speech_runner.dart: make the margin robust to Windows scheduling jitter, without loosening what a real in-decode cancel must show:The runtime needs no change.
Evidence:
gs://llamadart-cuda761-results/tts759/tts759w-20261107-1102/;results.zipsha2566594e430….Cost: two Windows attempts. The first died at setup because the image has no Python; I added a pinned embeddable Python. About $1.5 in total, and both VMs deleted themselves.
leehack commentedon Nov 7, 2026
L4 reruns at #1775 head
7d852b8f, which cancels a tenth of the way into the decode:tts759b-20261107-1206)tts759w-20261107-1235)Linux is fixed.
Windows still fails on 2 of 12 runs:
The offline replay predicted 48–70 ms saved on Windows, but real Windows savings ranged from 33 to 61 ms. The spread between the reference decodes also widened, to as much as 26.6 ms.
Next: offline analysis of these runs before any further paid GPU run. Evidence:
gs://llamadart-cuda761-results/tts759/.leehack commentedon Nov 7, 2026
Decode-cancel gate qualified on CUDA, Linux and Windows: at #1775 head
f5a59674,decode_cancelpassed 12/12 on each host.The gate now does three things:
tts759c-20261107-1408)tts759w-20261107-1440)On Linux, perf traces confirm every traced cancel stopped the native decode. The early-timer flag is gone.
Next: #1775 merges once CI passes on its update onto main. That closes the CUDA cancel part of this issue.
leehack commentedon Nov 7, 2026
Both parts are done:
decode_cancelgate: fixed by #1775, now merged. It passes 12/12 on both Linux and Windows L4.Closing.
Fix false speech decode_cancel results on CUDA (#1775)