build_web leaks RecursionError for deeply nested release JSON #12383
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 boykopovar/AnyPS5. Originally posted by malekaifa on 2026-10-28T12:07:17Z.
What happens
tools/build_web.py --releasereads the GitHub latest-release response withjson.load(response). A valid but excessively deeply nested JSON response raisesRecursionErrorand escapes as a raw traceback (exit 1), instead of following the tool's existing malformed-release error path.Current-main reproduction on
2227f1366188cda5699dd20e2e756a18006a5d4b:build_web.requestreturn raw JSON consisting of a very deeply nested array;build_web.main(['--build', <temp>, '--release']);RecursionErrorfromjson.load(response), exit 1 with traceback.Existing
tools.tests.test_build_webpasses 16/16.Expected behavior
Malformed or unusably deep release metadata should be reported through the existing argparse usage-error boundary: exit 2, concise diagnostic, no traceback, and no site mutation.
Proposed scope
RecursionErrorelsewhere.tools/tests/test_build_web.pyusing raw deeply nested JSON or a narrowly injected decoder recursion failure.Ownership / overlap
A fresh exhaustive scan of open PRs found no open PR touching
tools/build_web.pyortools/tests/test_build_web.py. Current-main movement since the scouting snapshot did not change either file. Targeted open issue/PR searches forbuild_web, release metadata recursion, and deeply nested release JSON found no owner.AI-assisted: yes (OpenAI Codex)