Repository navigation
[FIX] Select SAMI output for --smi - #2472
harshalsp07 wants to merge 1 commit into
Conversation
CCExtractor CI platform finished running the test files on windows. 172/238 tests matched the approved output:
66 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 9985, commit 24d1e0a:
Compared with the commit this branch was cut from: the same run as the tip of master (test 9985), so the comparison above already covers it. No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
cfsmp3
left a comment
There was a problem hiding this comment.
This is Carlos' claude doing the first pass. Before Carlos takes a look, please address these issues.
The fix (args.sami || args.smi) and the Rust parser test are right. Please keep the PR to those two.
Please remove the CTest/Python additions (src/CMakeLists.txt block, tests/test_cli_sami_alias.py, tests/samples/cli_output.scc). Nothing in the build defines BUILD_TESTING: there is no include(CTest) or enable_testing(), and CI doesn't run ctest. So the block never runs, and the script and sample are never used. Adding a CLI test harness is a separate decision from this one-line fix. test_smi_selects_sami_output already checks both write_format and enc_cfg.write_format.
120231c to
8d00190
Compare
8d00190 to
18ca56d
Compare
CCExtractor CI platform finished running the test files on linux. 171/238 tests matched the approved output:
67 tests do not match the approved output. That is the pass/fail verdict. Whether this branch caused it is a separate question, answered below.
Compared with the tip of master — test 10124, commit 034fdbc:
Compared with the commit this branch was cut from: the same run as the tip of master (test 10124), so the comparison above already covers it. No test changes behaviour relative to the tip of master: every failure above fails there too, byte for byte. The approved output for those tests is out of date, which is a baseline to review rather than a regression in this branch. |
In raising this pull request, I confirm the following (please check boxes):
Reason for this PR:
Sanity check:
--smiand legacy-smiare accepted but select the default SRT encoder. Use the SAMI encoder for both spellings.Reproduce with the existing SCC fixture. Sample
On master, the file starts with an SRT cue. With the fix, it starts with
<SAMI>and matches--samiand--out sami.The Rust parser test checks both the main and encoder formats. On Linux, all 9 CLI alias and encoding cases passed. The same checks found 6 failures on master.