Scripts: harden record_writers CLI argument handling and validation #2039

Open
heditrigui wants to merge 1 commit from upstream-pr/2049 into main
heditrigui commented 2026-11-25 02:00:54 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by heditrigui on 2026-11-25T02:00:54Z.


Summary

Hardens CLI argument handling and validation in scripts/re/record_writers.py and expands unit test coverage in scripts/test_record_writers.py:

  • Adds -h and --help CLI option support with usage docstrings and clean exit code 0.
  • Rejects missing arguments with usage instructions and exit code 2.
  • Handles missing or unreadable files cleanly (reports error: file not found: '<asm_path>' on stderr and exits code 1) instead of crashing with unhandled Python exceptions.
  • Modularizes record writer extraction into reusable find_record_writers(lines), dump_record_writers(lines, file=None), and main(argv=None, out=None) functions so the module can be cleanly imported without executing top-level logic or crashing.
  • Expands scripts/test_record_writers.py from 1 to 9 tests covering branch targets with/without hex prefix, list-field header extraction, lea length calculation, empty listings, help flags, missing argument exit codes, nonexistent files, direct Python API usage, and programmatic main invocation.

Tested

  • python scripts/test_record_writers.py (9 tests passed in 0.92s).
  • python -m pytest scripts/ (33 passed in 1.31s).
  • Validated with scripts/pr_check.py --local.

Not tested

  • Retail game smoke execution (scripts/ tools are non-runtime code).

AI use

  • Antigravity (Gemini 3.8 Flash (High))
<!-- greyfinch-sync:ivall/xcl:issue:5483677396 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049). Originally posted by [heditrigui](https://github.com/heditrigui) on 2026-11-25T02:00:54Z. --- ### Summary Hardens CLI argument handling and validation in `scripts/re/record_writers.py` and expands unit test coverage in `scripts/test_record_writers.py`: - Adds `-h` and `--help` CLI option support with usage docstrings and clean exit code 0. - Rejects missing arguments with usage instructions and exit code 2. - Handles missing or unreadable files cleanly (reports `error: file not found: '<asm_path>'` on stderr and exits code 1) instead of crashing with unhandled Python exceptions. - Modularizes record writer extraction into reusable `find_record_writers(lines)`, `dump_record_writers(lines, file=None)`, and `main(argv=None, out=None)` functions so the module can be cleanly imported without executing top-level logic or crashing. - Expands `scripts/test_record_writers.py` from 1 to 9 tests covering branch targets with/without hex prefix, list-field header extraction, lea length calculation, empty listings, help flags, missing argument exit codes, nonexistent files, direct Python API usage, and programmatic `main` invocation. **Tested** - `python scripts/test_record_writers.py` (9 tests passed in 0.92s). - `python -m pytest scripts/` (33 passed in 1.31s). - Validated with `scripts/pr_check.py --local`. **Not tested** - Retail game smoke execution (`scripts/` tools are non-runtime code). **AI use** - Antigravity (Gemini 3.8 Flash (High))
raylitebull commented 2026-11-25 02:09:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-25T02:04:09Z.


Code review on 48c08bc:

  • Extracting find_record_writers / dump_record_writers / main in scripts/re/record_writers.py cleanly adds -h/--help (rc=0), missing-arg usage (rc=2), missing-file handling (rc=1), and comprehensive CLI + unit tests in scripts/test_record_writers.py.
  • Diff audited and CI workflow approved (running).

Remaining before merge: Build and test finishing green plus independent verification on 48c08bc.

<!-- greyfinch-sync:ivall/xcl:comment:7150279319 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7150279319). Originally posted by [raylitebull](https://github.com/raylitebull) on 2026-11-25T02:04:09Z. --- Code review on `48c08bc`: - Extracting `find_record_writers` / `dump_record_writers` / `main` in `scripts/re/record_writers.py` cleanly adds `-h`/`--help` (`rc=0`), missing-arg usage (`rc=2`), missing-file handling (`rc=1`), and comprehensive CLI + unit tests in `scripts/test_record_writers.py`. - Diff audited and `CI` workflow approved (running). **Remaining before merge:** `Build and test` finishing green plus independent verification on `48c08bc`.
JJAutoCompare commented 2026-11-25 03:05:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T02:12:46Z.


Independent Windows compatibility run for 48c08bc26023dcbbece3e1bd3906b083d6917a3e. The reused checkout was clean before and after the run, and the open PR still pointed to this commit after testing.

Tested

  • AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation x64 (build 26200.9974), portable CPython 3.13.7 x64. The captured CLI streams used the host’s default Windows code page (CP1252).
  • Checked-in unittest suite: 9 passed, 0 failed, 0 ignored, 0 skipped. This covers help and missing arguments, missing files, direct API and programmatic main calls, branch targets with and without 0x, immediate and list-field headers, add and lea lengths, and a listing with zero matching sites.
  • Two additional CLI checks: 2 passed, 0 failed, 0 ignored, 0 skipped. Both paths contained spaces and accented characters in the directory and filename. The valid synthetic listing exited 0, wrote one site to stdout (imm beef, 40 bytes, bound +0x30, fallback slot 7), and left stderr empty. The missing path exited 1, left stdout empty, and wrote exactly one file-not-found message to stderr with the original path.

Commands executed from the repository root (TMP and TEMP were on L:):

L:\XclTooling\pr1999-coverage-52a120f7\portable\python.exe -B scripts/test_record_writers.py -v
L:\XclTooling\pr1999-coverage-52a120f7\portable\python.exe -B scripts/re/record_writers.py "L:\XclTooling\pr2049\run-20261125-031024-136\Entrée café\listing été.asm"
L:\XclTooling\pr1999-coverage-52a120f7\portable\python.exe -B scripts/re/record_writers.py "L:\XclTooling\pr2049\run-20261125-031024-136\Entrée café\absent été.asm"

Not tested

  • Other Windows code pages, characters outside CP1252, other Python versions, other platforms, third-party listings, and large inputs.
  • Full workspace suite, GPU and driver behavior, Rust/DXC, and retail smoke testing.

AI use

  • T3 Code / Codex (gpt-6.2-sol) prepared the synthetic fixture and ran, checked, and reported the commands above.
<!-- greyfinch-sync:ivall/xcl:comment:7150448390 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7150448390). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T02:12:46Z. --- Independent Windows compatibility run for `48c08bc26023dcbbece3e1bd3906b083d6917a3e`. The reused checkout was clean before and after the run, and the open PR still pointed to this commit after testing. **Tested** - AMD Ryzen 7 3800X, Windows 11 Enterprise Evaluation x64 (build 26200.9974), portable CPython 3.13.7 x64. The captured CLI streams used the host’s default Windows code page (CP1252). - Checked-in unittest suite: 9 passed, 0 failed, 0 ignored, 0 skipped. This covers help and missing arguments, missing files, direct API and programmatic `main` calls, branch targets with and without `0x`, immediate and list-field headers, `add` and `lea` lengths, and a listing with zero matching sites. - Two additional CLI checks: 2 passed, 0 failed, 0 ignored, 0 skipped. Both paths contained spaces and accented characters in the directory and filename. The valid synthetic listing exited 0, wrote one site to stdout (`imm beef`, 40 bytes, bound `+0x30`, fallback slot 7), and left stderr empty. The missing path exited 1, left stdout empty, and wrote exactly one file-not-found message to stderr with the original path. Commands executed from the repository root (`TMP` and `TEMP` were on `L:`): ```text L:\XclTooling\pr1999-coverage-52a120f7\portable\python.exe -B scripts/test_record_writers.py -v L:\XclTooling\pr1999-coverage-52a120f7\portable\python.exe -B scripts/re/record_writers.py "L:\XclTooling\pr2049\run-20261125-031024-136\Entrée café\listing été.asm" L:\XclTooling\pr1999-coverage-52a120f7\portable\python.exe -B scripts/re/record_writers.py "L:\XclTooling\pr2049\run-20261125-031024-136\Entrée café\absent été.asm" ``` **Not tested** - Other Windows code pages, characters outside CP1252, other Python versions, other platforms, third-party listings, and large inputs. - Full workspace suite, GPU and driver behavior, Rust/DXC, and retail smoke testing. **AI use** - T3 Code / Codex (gpt-6.2-sol) prepared the synthetic fixture and ran, checked, and reported the commands above.
DavidM1911 commented 2026-11-25 05:08:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T04:41:45Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

<!-- greyfinch-sync:ivall/xcl:comment:7153080126 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7153080126). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T04:41:45Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
RavenCurseBurg commented 2026-11-25 22:06:49 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T21:38:34Z.


On 48c08bc26023dcbbece3e1bd3906b083d6917a3e I redirected the same seven-line synthetic listing with cmd /d /c type source.txt > sample.asm from each shell, then ran python -B scripts/re/record_writers.py sample.asm. Windows PowerShell 5.1 wrote UTF-16LE (first bytes FF FE 20 00), and the CLI exited 0 reporting 0 sites. PowerShell 7.6.9 wrote the original bytes and the CLI reported the expected single site.

Fix and regression test. Both redirected files now produce the same header, 32-byte record and fallback slot 8. I also passed both files in one invocation with a missing filename between them. Both valid files were processed, stderr identified the missing file, and the CLI exited 1.

python -B -m unittest discover -s scripts -p "test_*.py" passed all 33 tests on Windows 11 26100.9711, i7-13700, Python 3.14.3. The focused suite passed all 9 tests. The new encoding checks failed on the original code for UTF-8 with BOM and both UTF-16 byte orders when the first line contained the matching instruction. Synthetic text only. OpenAI Codex (GPT-6) prepared the patch, ran the checks and wrote this report.

<!-- greyfinch-sync:ivall/xcl:comment:7175350024 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7175350024). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T21:38:34Z. --- On `48c08bc26023dcbbece3e1bd3906b083d6917a3e` I redirected the same seven-line synthetic listing with `cmd /d /c type source.txt > sample.asm` from each shell, then ran `python -B scripts/re/record_writers.py sample.asm`. Windows PowerShell 5.1 wrote UTF-16LE (first bytes `FF FE 20 00`), and the CLI exited 0 reporting **0 sites**. PowerShell 7.6.9 wrote the original bytes and the CLI reported the expected single site. [Fix and regression test](https://github.com/RavenCurseBurg/xcl/commit/9e91a1f8b8c7f65b9c83231590d5c6f84088204d). Both redirected files now produce the same header, 32-byte record and fallback slot 8. I also passed both files in one invocation with a missing filename between them. Both valid files were processed, stderr identified the missing file, and the CLI exited 1. `python -B -m unittest discover -s scripts -p "test_*.py"` passed all 33 tests on Windows 11 26100.9711, i7-13700, Python 3.14.3. The focused suite passed all 9 tests. The new encoding checks failed on the original code for UTF-8 with BOM and both UTF-16 byte orders when the first line contained the matching instruction. Synthetic text only. OpenAI Codex (GPT-6) prepared the patch, ran the checks and wrote this report.
upipibi commented 2026-11-26 20:53:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by upipibi on 2026-11-26T20:53:04Z.


Report on 48c08bc26023dcbbece3e1bd3906b083d6917a3e (merge-base 00cf2589f26b0e357852ec943da36f0bbe540ff9), Windows 11 26100, CPython 3.13.0, CPU only.

  • Head: py -3.13 -B scripts/test_record_writers.py -v: 9 passed, 0 failed; pytest: 9 passed, 0 failed.
  • PR test file on merge-base script: 4 failed, 2 errors (9 run), so the tests catch the change.
  • Own synthetic listing: UTF-8 finds 1 site; UTF-8 BOM, UTF-16LE and UTF-16BE find 0 sites, exit 0 (confirms RavenCurseBurg).

Not tested: GPU, Rust, retail, other platforms.

AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).

<!-- greyfinch-sync:ivall/xcl:comment:7203169195 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7203169195). Originally posted by [upipibi](https://github.com/upipibi) on 2026-11-26T20:53:04Z. --- Report on `48c08bc26023dcbbece3e1bd3906b083d6917a3e` (merge-base `00cf2589f26b0e357852ec943da36f0bbe540ff9`), Windows 11 26100, CPython 3.13.0, CPU only. - Head: `py -3.13 -B scripts/test_record_writers.py -v`: 9 passed, 0 failed; pytest: 9 passed, 0 failed. - PR test file on merge-base script: 4 failed, 2 errors (9 run), so the tests catch the change. - Own synthetic listing: UTF-8 finds 1 site; UTF-8 BOM, UTF-16LE and UTF-16BE find 0 sites, exit 0 (confirms RavenCurseBurg). Not tested: GPU, Rust, retail, other platforms. AI-assisted (Claude Code, Claude Sonnet 5.5 ran the tests; Claude Opus 5.5 checked and posted).
throny commented 2026-11-29 00:12:09 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:12:09Z.


merge-check claim
head: 48c08bc260

<!-- greyfinch-sync:ivall/xcl:comment:7247946789 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7247946789). Originally posted by [throny](https://github.com/throny) on 2026-11-29T00:12:09Z. --- merge-check claim head: 48c08bc26023dcbbece3e1bd3906b083d6917a3e
throny commented 2026-11-29 00:29:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by throny on 2026-11-29T00:29:45Z.


merge-check
base: b10cc4c6
head: 48c08bc260
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2607 passed, 0 failed, 49 ignored on the merge result with main b10cc4c6 (27 SKIPPED lines). The suite does not run this script, so the counts only show that nothing else moved.
review: script only; no blocking finding. Unlike #2099, nothing that worked on Windows is refused now. What changes: extra arguments used to be ignored and are now each treated as an input file (a missing one ends the run with an error); inputs that are not regular files are refused; no argument gives the usage text instead of a traceback. Open from the thread and not new: input in UTF-16 or with a byte-order mark (what a redirect in Windows PowerShell 5.1 writes) still yields 0 sites; the fix offered there is not in this PR. Minor: output from several files has no per-file header.
performance: none.
verdict: safe to merge
hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).

<!-- greyfinch-sync:ivall/xcl:comment:7248151906 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7248151906). Originally posted by [throny](https://github.com/throny) on 2026-11-29T00:29:45Z. --- merge-check base: b10cc4c6 head: 48c08bc26023dcbbece3e1bd3906b083d6917a3e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2607 passed, 0 failed, 49 ignored on the merge result with main b10cc4c6 (27 SKIPPED lines). The suite does not run this script, so the counts only show that nothing else moved. review: script only; no blocking finding. Unlike #2099, nothing that worked on Windows is refused now. What changes: extra arguments used to be ignored and are now each treated as an input file (a missing one ends the run with an error); inputs that are not regular files are refused; no argument gives the usage text instead of a traceback. Open from the thread and not new: input in UTF-16 or with a byte-order mark (what a redirect in Windows PowerShell 5.1 writes) still yields 0 sites; the fix offered there is not in this PR. Minor: output from several files has no per-file header. performance: none. verdict: safe to merge hardware / tool and model: RTX 4080 16 GB (621.40), i9-12900K, Windows 11 26300, Rust 1.100.0, debug. Claude Code; merge, build and suite run by Claude Fable 5.2, diff review by Claude Opus 5.5 (every hunk read; nothing run on the GPU beyond the suite).
relativespace2K commented 2026-11-30 02:18:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by relativespace2K on 2026-11-30T02:18:14Z.


merge-check
base: 53e85fb1
head: 48c08bc260
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2788 passed, 6 failed, 49 ignored (the base's own count: the PR changes only scripts/), plus python scripts/test_record_writers.py -> 9 tests, OK. failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in --test gpu_two_pass_cache_e2e, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR.
review: I read the whole diff before building, because it touches scripts/: it is a pure refactor of scripts/re/record_writers.py into find_record_writers / dump_record_writers / main plus argument handling, and its test file. Nothing starts a process (the tests run sys.executable on the script under test, as the existing test already did), nothing opens a socket, nothing writes outside tempfile.TemporaryDirectory(); the script only reads the listings it is given and prints a summary. No finding. Two small notes, not blocking: the usage text still reads usage: objdump ... | python record_writers.py [-h] <bvhb.asm> [...] while the script now accepts the bracket form and multiple files, and the loose except Exception around the read is what turns an unreadable file into the error: line and exit 1. Behaviour changes on purpose: no arguments used to raise IndexError with exit 1 (a traceback) and now prints usage with exit 2, -h/--help exits 0, a missing file is said on stderr and exits 1, and the if __name__ == "__main__" guard is what lets the test import the module at all. No duplicate: #2099 and #2151 are the same hardening pass over other scripts, not this one.
performance: none: a developer script, nothing in the runtime.
verdict: safe to merge
hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; Python 3.12; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash.

<!-- greyfinch-sync:ivall/xcl:comment:7266886795 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7266886795). Originally posted by [relativespace2K](https://github.com/relativespace2K) on 2026-11-30T02:18:14Z. --- merge-check base: 53e85fb1 head: 48c08bc26023dcbbece3e1bd3906b083d6917a3e merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2788 passed, 6 failed, 49 ignored (the base's own count: the PR changes only `scripts/`), plus `python scripts/test_record_writers.py` -> 9 tests, OK. failing: gpu::dxil::compact_tests::gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form, gpu::recomp::pso::shader_cache_tests::console_mesh_caches_hlsl_compute_pass_in_memory_and_on_disk, hle::d3d12x::standin::tests::concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, ram_budget::tests::windows_takes_a_working_set_maximum_and_lifts_it, and two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs (in `--test gpu_two_pass_cache_e2e`, so 5 failing tests give 6 failures). The same five fail on base 53e85fb1 alone (2788 passed, 6 failed, 49 ignored there), so none comes from this PR. review: I read the whole diff before building, because it touches `scripts/`: it is a pure refactor of `scripts/re/record_writers.py` into `find_record_writers` / `dump_record_writers` / `main` plus argument handling, and its test file. Nothing starts a process (the tests run `sys.executable` on the script under test, as the existing test already did), nothing opens a socket, nothing writes outside `tempfile.TemporaryDirectory()`; the script only reads the listings it is given and prints a summary. No finding. Two small notes, not blocking: the usage text still reads `usage: objdump ... | python record_writers.py [-h] <bvhb.asm> [...]` while the script now accepts the bracket form and multiple files, and the loose `except Exception` around the read is what turns an unreadable file into the `error:` line and exit 1. Behaviour changes on purpose: no arguments used to raise `IndexError` with exit 1 (a traceback) and now prints usage with exit 2, `-h`/`--help` exits 0, a missing file is said on stderr and exits 1, and the `if __name__ == "__main__"` guard is what lets the test import the module at all. No duplicate: #2099 and #2151 are the same hardening pass over other scripts, not this one. performance: none: a developer script, nothing in the runtime. verdict: safe to merge hardware / tool and model: AMD Radeon RX 6800 XT 16 GB (RDNA2, wave64), driver 32.0.21045.29003; Ryzen 5 5600, 32 GB RAM; Windows 10 IoT Enterprise LTSC 2024, 10.0.26100 build 26100.9974; Rust 1.100.0; DXC 1.9.2602.17; Python 3.12; debug build. DeepSeek Harness coding agent, model DeepSeek V4.1 Flash.
Foniass commented 2026-12-01 07:15:41 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:15:41Z.


Triage (#1607) – head 48c08bc

No open PR makes the same change. #1730, #1492, #2659 and #3022 change what record_writers.py matches. This PR wraps the existing logic in find_record_writers / dump_record_writers / main without changing the matching. The 10 shared lines with #1730 are test boilerplate.
The whole loop is re-indented, so every other open record_writers PR will conflict with it, and whichever lands second needs a rebase.
Minor: with several files the output has no per-file label, and the usage text for the no-argument case goes to stdout.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303838611 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2049#issuecomment-7303838611). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:15:41Z. --- **Triage (#1607)** – head 48c08bc No open PR makes the same change. #1730, #1492, #2659 and #3022 change what `record_writers.py` matches. This PR wraps the existing logic in `find_record_writers` / `dump_record_writers` / `main` without changing the matching. The 10 shared lines with #1730 are test boilerplate. The whole loop is re-indented, so every other open record_writers PR will conflict with it, and whichever lands second needs a rebase. Minor: with several files the output has no per-file label, and the usage text for the no-argument case goes to stdout. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2049:upstream-pr/2049'
git switch 'upstream-pr/2049'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2049'
git switch 'upstream-pr/2049'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2049'
git switch 'upstream-pr/2049'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2049'
git switch 'main'
git merge --squash 'upstream-pr/2049'
git switch 'main'
git merge --ff-only 'upstream-pr/2049'
git switch 'main'
git merge 'upstream-pr/2049'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2039
No description provided.