Repository navigation
fix(subtitle_gen): include every output input in cache identity - #968
Open
chuenchen309 wants to merge 1 commit into
Open
chuenchen309 wants to merge 1 commit into
chuenchen309 wants to merge 1 commit into
Conversation
With OPENMONTAGE_ASSET_CACHE=1 the key covered only segments, format and max_words_per_cue, so a rerun with corrections, max_chars_per_line or highlight_style restored the first call's file. Same per-tool fix as OpenMontageInc#882/OpenMontageInc#883.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
With
OPENMONTAGE_ASSET_CACHE=1,subtitle_gen(deterministic) is keyed only onsegments,formatandmax_words_per_cue. A rerun withcorrections, which is the "fix an ASR typo" loop, or with a newmax_chars_per_lineorhighlight_stylerestores the first call's subtitle file.Reproduction on main (2e003e6):
Same per-tool gap as #883 (
remotion_caption_burn) and #882 (video_compose).Related issue
None.
Changes
subtitle_genon every input it reads exceptoutput_path(all of them are declared in its schema).tests/tools/test_subtitle_gen_cache_identity.py: every schema input changescache_key, and a corrected rerun is written rather than restored. 4 of these fail without the fix.Testing
pytest tests/on this branch: 2923 passed. The two failures also happen without this change:test_bmts_lite.py::test_run_emits_mp4_timeline_audiomap_and_openmontage_reportfails on main too, andtest_audio_mixer_ducking_timing.py[full_mix]is intermittent (1 of 3 runs on its own).ruff checkon the changed files.Checklist
make test-contracts/make test) where applicable.