audio_config: scan individual configuration files in bounded chunks #2448
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2448
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/audio-config-stream-single-blobs"
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?
Pull request successfully merged and closed
Claimed in the coordination issue as: AUDIO-CONFIG-STREAM-SINGLE-BLOBS
What and why
The ordinary scan loaded each complete config blob and examined it byte by byte. Reuse the existing incremental marker scanner for each file, resetting offsets at file boundaries. Records spanning read boundaries are recovered. In separate processes, scanning an 8 MiB zero-filled synthetic file gave zero records in both cases and reduced the traced allocation peak from 8,520,807 to 2,230,022 bytes.
Tested
Windows, Python 3.14.7. The regression reproduced on the parent and passed with the change.
python -I tests/test_audio_config.pygit diff --checkpassed.The integrated checkout passed 6,374 semantic tests across 500 files. An extra 500 randomized synthetic cases matched the in-memory scanner. CI's macOS job failed in the calibrated-texture replacement test, as it did on the unchanged main baseline.
GPUs tested: N/A (CPU-only synthetic tests).
AI-assisted: Yes.
Checklist
#2448 | head fc4f6311a449bfc308237da1b7a548d4830f5f19 (merged cleanly with main 3ca0707dd) |
python -I tests/test_audio_config.py| red on main:FAILED (failures=2)(AssertionError: unbounded read: -1intest_individual_files_use_bounded_readsand0 != 1) | green on PR+main:23 tests OK(-k test_individual_files_use_bounded_reads:1 test OK) | Windows 11, Python 3.12.10 | AI-assisted: yesAudited
_file_chunksandcollectintools/audio_config.py(streaming individual.binfiles throughscan_stream(_file_chunks(path))inJOIN_BLOCK_BYTESchunks instead of reading full blobs into memory, resolving the earlier staleness hold against currentmain3ca0707dd). Also passedtests/test_text_write_line_endings.py(3 OK),tests/test_runner_calls_all_tests.py(3 OK), andscripts/check_no_game_data.pyon the merged tree.Red/green: classified READY by oreo-lot3 (red on main b1619e0a3, green on head merged with main); head fc4f6311a449 unchanged since 2026-11-27, before that run.
Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)