fix(tools): read a captured environment key comparison #24928
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/24928"
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 relativespace2K on 2026-11-21T11:20:24Z.
What
env_reference.pyonly recognized direct environment readers, so the captured-environment comparison atPerformanceTrace.hpp:694(entry.first == "APS5_TRACE_ALL_PHASES") was not seen andpython tools/env_reference.py --checkreported the documented option as stale.The scanner now treats
<identifier>[<index>].first == "APS5_…"as a string read. The name stays attributed to the file and line that consume the key, and unrelated comparisons such aspair.first == "NOT_AN_ENV"are ignored because the literal must carry a tracked prefix.Tested
python tools/env_reference.py --check: 712 names, all documented (was 1 stale, exit 1).tools/tests/test_env_reference.pycoversentry.firstandsummary.environment[index].first, and checks an unprefixed literal is not a read.python -m unittest tools.tests.test_env_reference: 54 tests pass.python tools/check_conventions.py --base origin/mainpasses.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-21T11:41:19Z.
Review: COMMENTED
Reviewed — no blocking findings
The scanner change is consistent with the described captured-key comparison and its regression coverage; I did not run the reported checks, so this review does not support a formal approval.
What I ran
No commands were run. I read the PR description, commit summary, manifest, diff, and targeted ranges of both changed files through
repo_read.pyat head4d4227dbe0a1206d2369da312b15005c9436376a.Results
Findings
Blocking
None identified in the code inspected.
Non-blocking
None.
Not verified
The reported environment comparison, 54 unit tests, and conventions check were not run. I read targeted ranges only, not the full text of either changed file; the remaining portions of
tools/env_reference.pyandtools/tests/test_env_reference.pywere not verified.To get this to a good state
Nothing is required.