Scripts: accept unprefixed command-writer branch addresses #1082
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1091"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by anakatt on 2026-11-24T11:27:52Z.
I fixed the record-writer scanner ignoring matching AT&T listings when a
jaetarget is written as a bare hexadecimal address instead of0x.... It previously printed0 record write sitesfor the synthetic unprefixed case.What is in it
scripts/re/record_writers.py: accept branch targets with or without0x.scripts/test_record_writers.py: run the CLI on both spellings and check the decoded header, record length, bound and fallback slot. No game disassembly is included.Tested
macOS Darwin 24.6.0, arm64; Python 3.15.2. No GPU used.
python3 -B -m unittest discover -s scripts -p test_record_writers.py -v: before the fix, the unprefixed case failed and the prefixed case passed; afterward 1 test passed, 0 failed, 0 skipped (two address-format subcases).Windows 11 Pro ARM64 10.0.26100.1742 in UTM, Python 3.14.0 ARM64; no GPU used. Exact source archive
de85f979cba9e8c15c220f21b6b228efb8047010:C:\xcl-tests\python\python.exe -B -m unittest discover -s scripts -p test_record_writers.py -v: 1 passed, 0 failed, 0 skipped (two subcases). The Windows run also verified the corrected subprocess decoding.Not tested
AI use
openai-codex/gpt-6-astra) to find the parser mismatch, write the fix and synthetic regression, run the Python test, and prepare this description.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:38Z.
Tested exact head
de85f97, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_record_writers.pyat the head: 1 passed, 2 subtests passed.930e8b4): fails for the unprefixed target (180001030 <fallback>) oftest_branch_targets_with_and_without_hex_prefix. So the new test catches the problem the PR fixes.jaeregex to(?:0x)?([0-9a-f]+); #1094 adds\b. The two PRs conflict, so only one can land.Not tested
AI use
upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
upstream-sync referenced this pull request2026-11-25 06:04:27 +00:00