Skip to content

Fail closed when generate-all visual-sync checks fail - #156

Merged
jmjava merged 1 commit into
mainfrom
cursor/hard-visual-sync-generate-all
Sep 11, 2026
Merged

Fail closed when generate-all visual-sync checks fail#156
jmjava merged 1 commit into
mainfrom
cursor/hard-visual-sync-generate-all

Conversation

@jmjava

@jmjava jmjava commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • generate-all already called run_pre_push. The hole was that av_sync, subject_beat_coverage, ocr_scan, layout, and freeze_ratio were WARN, so a desynced mux could still print Pipeline complete.
  • Those visual-sync FAILs are now hard (FAIL + SystemExit(1)). Only recording_exists stays soft so ungenerated bundles remain pushable.
  • Proving test test_pipeline_av_sync_fail_stops_complete drives real run_pre_push with one av_sync passed=False. It must not print Pipeline complete and must skip concat/pages.

Leftover #2 / T-D03 from the 2026-09-10 impact list. Did not start leftover #150 factory-loop hunt. No clock/compile/_TimedScene changes; baseline.json not bumped.

Test plan

  • test_pipeline_av_sync_fail_stops_completeSystemExit(1), no Pipeline complete, no concat/pages
  • test_run_pre_push_visual_sync_fail_is_hard — av_sync / subject_beat / ocr / layout / freeze print FAIL not WARN
  • test_run_pre_push_missing_recording_stays_soft and test_cli_validate_pre_push_missing_recording_is_soft still exit 0
  • ruff check on the touched files
  • CI lint / unit / benchmark jobs on this PR

Made with Cursor

generate-all shares run_pre_push; av_sync and the other visual-sync
gates must stop Pipeline complete instead of warning.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jmjava
jmjava merged commit ef7c70b into main Sep 11, 2026
6 checks passed
@jmjava
jmjava deleted the cursor/hard-visual-sync-generate-all branch September 11, 2026 15:24
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