fix(tools): stop masking a function body window once its brace closes #9966

Merged
jotitadev merged 2 commits from upstream-pr/9966 into main 2026-10-29 23:28:08 +00:00
jotitadev commented 2026-10-23 00:37:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by jotitadev on 2026-10-23T00:37:41Z.


What

conventions_function_bodies_shard_11 got about ten times slower once test_large_export_set_checks_duplicates_without_command_line_limit landed (a24a5524b, via #9137). Since then it is the slowest conventions shard on every runner, and it has already hit the 30 s CTest timeout on relinker (windows-latest, g++):

Run Job shard_11
39706229691 relinker (windows-latest, g++) Timeout 30.02 s
39702385812 relinker (windows-latest, g++) 19.86 s
39702385812 relinker (macos-latest, clang++, x86_64) 13.48 s
39702385812 relinker (ubuntu-latest, g++) 11.50 s
39703481231 windows 21.33 s
39703467072 windows 17.78 s

Before that test, shard_11 had a median of about 1.4 s in the same jobs.

The time is not in the duplicate check itself, so comparing libraries first (928588bbb) does not help: code() still calls function_body() once for every added export line. function_body() masks a fixed 400-line window with cpp_text() for every export it looks at, even when the body closes on the same line. With 2000 exports in one file, cProfile shows 2001 function_body calls, 8.7 M calls to the mask callback and about 95% of the test's time.

function_body() now goes through the CPP_TOKEN.finditer() matches of the same window lazily and stops at the brace that closes the body. re.sub builds its result from the unmatched gaps and the masked matches in order, so the masked text up to that brace is the same as before. It still returns None when a ; comes before the first {, when there is no {, and when the body does not close inside the window. The mask callback is moved out of cpp_text() as cpp_mask() so both use it. cpp_text() itself still uses re.sub and gives the same output.

Tested

Linux x86_64 (Ubuntu 26.04, Ryzen, Python 3.14), main 6ef5a1c4c, before the rebase:

  • conventions_function_bodies_shard_11 on its own: 6.60 s before, 0.49 s after. Other shards: 0.2-0.7 s, about the same.
  • Six copies of test_check_conventions_comments.py --shard 11/12 pinned to one core, with timeout 30: main 6/6 killed at 30 s, this branch 6/6 pass in 3.0 s.
  • ctest -R "^conventions": 24/24.
  • Differential check of the old and new function_body() against every tracked C/C++ source (2889 files, about 252k calls). The inputs were lines with { or APS5 plus random lines, both raw and already masked: 0 differences. The old version took 309 s and the new one 48 s. cpp_text() output was the same for every file, with and without preserve_comments.
  • tools/check_conventions.py --base origin/main~300: byte-identical output with the old and new checker.

macOS arm64 (M2 Max), rebased on main 83462cc57:

  • --shard 11/12: 6.90 s before, 2.20 s after with /usr/bin/python3 3.9.6; 6.27 s before, 1.75 s after with Python 3.14.7. test_large_export_set_checks_duplicates_without_command_line_limit alone: 5.58 s before, 0.54 s after.
  • All 12 shards and the other tools/tests/test_check_conventions_*.py files pass with both Pythons.
  • Differential check of the old and new function_body() and cpp_text() against every tracked C/C++ source (2930 files, about 92k calls on raw and masked lines): 0 differences.
  • tools/check_conventions.py --base origin/main~300 --head origin/main and --base origin/main~1000: byte-identical output with the old and new checker (140 findings, 33 errors on the larger range).
  • python3 tools/check_conventions.py --base origin/main passes.

The other open PRs that touch tools/check_conventions.py (#9660, #9855) merge that file cleanly with this branch.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes (Claude Code)

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4976065928 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9966). Originally posted by [jotitadev](https://github.com/jotitadev) on 2026-10-23T00:37:41Z. --- ### What `conventions_function_bodies_shard_11` got about ten times slower once `test_large_export_set_checks_duplicates_without_command_line_limit` landed (a24a5524b, via #9137). Since then it is the slowest conventions shard on every runner, and it has already hit the 30 s CTest timeout on `relinker (windows-latest, g++)`: | Run | Job | shard_11 | |---|---|---| | 39706229691 | relinker (windows-latest, g++) | **Timeout 30.02 s** | | 39702385812 | relinker (windows-latest, g++) | 19.86 s | | 39702385812 | relinker (macos-latest, clang++, x86_64) | 13.48 s | | 39702385812 | relinker (ubuntu-latest, g++) | 11.50 s | | 39703481231 | windows | 21.33 s | | 39703467072 | windows | 17.78 s | Before that test, shard_11 had a median of about 1.4 s in the same jobs. The time is not in the duplicate check itself, so comparing libraries first (928588bbb) does not help: `code()` still calls `function_body()` once for every added export line. `function_body()` masks a fixed 400-line window with `cpp_text()` for every export it looks at, even when the body closes on the same line. With 2000 exports in one file, `cProfile` shows 2001 `function_body` calls, 8.7 M calls to the mask callback and about 95% of the test's time. `function_body()` now goes through the `CPP_TOKEN.finditer()` matches of the same window lazily and stops at the brace that closes the body. `re.sub` builds its result from the unmatched gaps and the masked matches in order, so the masked text up to that brace is the same as before. It still returns `None` when a `;` comes before the first `{`, when there is no `{`, and when the body does not close inside the window. The mask callback is moved out of `cpp_text()` as `cpp_mask()` so both use it. `cpp_text()` itself still uses `re.sub` and gives the same output. ### Tested Linux x86_64 (Ubuntu 26.04, Ryzen, Python 3.14), main 6ef5a1c4c, before the rebase: - `conventions_function_bodies_shard_11` on its own: 6.60 s before, 0.49 s after. Other shards: 0.2-0.7 s, about the same. - Six copies of `test_check_conventions_comments.py --shard 11/12` pinned to one core, with `timeout 30`: main 6/6 killed at 30 s, this branch 6/6 pass in 3.0 s. - `ctest -R "^conventions"`: 24/24. - Differential check of the old and new `function_body()` against every tracked C/C++ source (2889 files, about 252k calls). The inputs were lines with `{` or `APS5` plus random lines, both raw and already masked: 0 differences. The old version took 309 s and the new one 48 s. `cpp_text()` output was the same for every file, with and without `preserve_comments`. - `tools/check_conventions.py --base origin/main~300`: byte-identical output with the old and new checker. macOS arm64 (M2 Max), rebased on main 83462cc57: - `--shard 11/12`: 6.90 s before, 2.20 s after with `/usr/bin/python3` 3.9.6; 6.27 s before, 1.75 s after with Python 3.14.7. `test_large_export_set_checks_duplicates_without_command_line_limit` alone: 5.58 s before, 0.54 s after. - All 12 shards and the other `tools/tests/test_check_conventions_*.py` files pass with both Pythons. - Differential check of the old and new `function_body()` and `cpp_text()` against every tracked C/C++ source (2930 files, about 92k calls on raw and masked lines): 0 differences. - `tools/check_conventions.py --base origin/main~300 --head origin/main` and `--base origin/main~1000`: byte-identical output with the old and new checker (140 findings, 33 errors on the larger range). - `python3 tools/check_conventions.py --base origin/main` passes. The other open PRs that touch `tools/check_conventions.py` (#9660, #9855) merge that file cleanly with this branch. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes (Claude Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
MarcZX10 commented 2026-10-23 04:52:49 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-23T04:52:49Z.

Review: CHANGES_REQUESTED


The hosted Conventions check fails the required PR-template section check: the body uses ## Summary and ## Testing, while the repository template and checker require ### What and ### Tested. The check-run annotations identify all three required sections as missing, so the PR remains blocked even though local source conventions pass.

Please rename those two headings to the template headings and keep the checklist section. I reviewed the function_body change: it masks tokens lazily and stops after the matching closing brace, preserving the previous return conditions; the reported differential tests are relevant. The relinker matrix passes, while the native build jobs are skipped. I did not run the full test suite locally.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5624039537 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9966#pullrequestreview-5624039537). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-23T04:52:49Z. **Review:** CHANGES_REQUESTED --- The hosted Conventions check fails the required PR-template section check: the body uses `## Summary` and `## Testing`, while the repository template and checker require `### What` and `### Tested`. The check-run annotations identify all three required sections as missing, so the PR remains blocked even though local source conventions pass. Please rename those two headings to the template headings and keep the checklist section. I reviewed the `function_body` change: it masks tokens lazily and stops after the matching closing brace, preserving the previous return conditions; the reported differential tests are relevant. The relinker matrix passes, while the native build jobs are skipped. I did not run the full test suite locally.
THEMANnt commented 2026-10-25 00:09:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T00:09:38Z.

Review: APPROVED


Reviewed db01701db5798550dc895a904ca7ecc34d6eaca4 against 83462cc57ddecac5e5f3cdafafbe38d406e55953. No actionable findings in this focused review.

Source review: Inspected the complete parser optimization. Lazy token pieces retain unmatched text and the same comment/string masking, stop at the first completed function body, and preserve the semicolon-before-opening-brace and 400-line limits. The shared mask retains cpp_text's preserve_comments behavior.

Validation: Windows Python 3.11: tools/tests/test_check_conventions_comments.py -v, 79 passed, 0 skipped on both head and baseline. An independent deterministic comparison found no differences for 1,500 inputs in either masking mode or function-body extraction, plus 500 one-line functions. On that bounded same-process fixture, baseline took 0.491 s and head 0.006 s, baseline first; this is a synthetic measurement, not a general throughput guarantee. Conventions, whitespace and script registration passed. Current hosted relinker matrix, ASan and latest conventions succeeded; full-product jobs were skipped.

Scope: Python parser behavior and bounded local timing. No application/game performance claim is made.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5640712849 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9966#pullrequestreview-5640712849). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-25T00:09:38Z. **Review:** APPROVED --- Reviewed `db01701db5798550dc895a904ca7ecc34d6eaca4` against `83462cc57ddecac5e5f3cdafafbe38d406e55953`. No actionable findings in this focused review. **Source review:** Inspected the complete parser optimization. Lazy token pieces retain unmatched text and the same comment/string masking, stop at the first completed function body, and preserve the semicolon-before-opening-brace and 400-line limits. The shared mask retains cpp_text's preserve_comments behavior. **Validation:** Windows Python 3.11: `tools/tests/test_check_conventions_comments.py -v`, 79 passed, 0 skipped on both head and baseline. An independent deterministic comparison found no differences for 1,500 inputs in either masking mode or function-body extraction, plus 500 one-line functions. On that bounded same-process fixture, baseline took 0.491 s and head 0.006 s, baseline first; this is a synthetic measurement, not a general throughput guarantee. Conventions, whitespace and script registration passed. Current hosted relinker matrix, ASan and latest conventions succeeded; full-product jobs were skipped. **Scope:** Python parser behavior and bounded local timing. No application/game performance claim is made.
MarcZX10 commented 2026-10-29 01:29:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T01:29:39Z.

Review: CHANGES_REQUESTED


Re-checked — changes requested for current-main integration and title

The checker optimization’s focused tests pass on this head, but the branch predates substantial edits to the same file on current main, and the perf title still triggers the repository’s missing-performance-data rule.

What I ran

  • Reviewed head db01701db5798550dc895a904ca7ecc34d6eaca4 against current main 3a2b91981651569163768854a1fcdc7193b6667b.
  • python3 tools/tests/test_check_conventions_comments.py -v.
  • python3 tools/check_conventions.py --base upstream/main --head HEAD.
  • git diff --check upstream/main...HEAD.
  • git merge-tree --write-tree upstream/main HEAD.
  • python3 tools/pr_overlap.py --branch refs/remotes/review/9966.
  • Refreshed hosted checks and reviewed the latest PR comments.

Results

Check Result
test_check_conventions_comments.py Passed: 79 tests
Current-main conventions Passed
Diff check Passed; no output
Merge preview against current main Clean; tree bd386af5cfac17cbea756ba67975eea96638ae4f
Overlap checker No overlapping changes reported across 1,400 open PRs
Hosted checks Conventions, eligibility, intake, labels and all four relinker platforms plus ASan passed; Linux, Windows product, register-context and write-watch skipped
Raw output excerpts
Ran 79 tests in 7.088s

OK
All conventions checks passed.
bd386af5cfac17cbea756ba67975eea96638ae4f
No overlap with open pull requests.

Negative control

Not run. The focused test suite passes, but a baseline comparison was not part of this review.

Findings

Blocking

  1. Update onto current main and rerun. The branch is based on 83462cc57ddecac5e5f3cdafafbe38d406e55953, 6,729 commits behind current main. Since that base, tools/check_conventions.py changed by 172 lines, including its template and export checks. The merge preview is clean, but the modified parser needs testing with those current checks in the same tree.

  2. Resolve the perf title/report mismatch. The PR body says there is no title, scene, or application trace for this tools-only speedup. The repository labels perf(...) PRs as requiring a pair of valid aps5-summary.jsonl lines and trace evidence. As you offered in the thread, please retitle this as fix(tools) or test(tools) if the change is not intended to make a traced application-performance claim.

Non-blocking

  • The automated overlap comment names #12654 because both PRs touch tools/check_conventions.py. I independently ran pr_overlap.py and a merge preview of the exact heads; neither reports a conflicting change, so I found no basis to require a dependency at this time.
  • The updated template headings resolve the prior conventions-body issue. Current hosted conventions and all applicable relinker checks pass.

Sources

Not verified

  • Behavior after integrating with current main.
  • A Windows Python 3.9 run on the current combined tree.
  • Any traced application-performance change.
  • An independent mutation/negative-control run.

To get this to a good state

Rebase or otherwise update the branch to current main, rerun the 79 focused tests and conventions check on that combined head, and retitle it away from perf if it does not provide the required application traces. I will recheck the resulting head and report.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5691796278 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9966#pullrequestreview-5691796278). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T01:29:39Z. **Review:** CHANGES_REQUESTED --- # Re-checked — changes requested for current-main integration and title The checker optimization’s focused tests pass on this head, but the branch predates substantial edits to the same file on current `main`, and the `perf` title still triggers the repository’s missing-performance-data rule. ## What I ran - Reviewed head `db01701db5798550dc895a904ca7ecc34d6eaca4` against current `main` `3a2b91981651569163768854a1fcdc7193b6667b`. - `python3 tools/tests/test_check_conventions_comments.py -v`. - `python3 tools/check_conventions.py --base upstream/main --head HEAD`. - `git diff --check upstream/main...HEAD`. - `git merge-tree --write-tree upstream/main HEAD`. - `python3 tools/pr_overlap.py --branch refs/remotes/review/9966`. - Refreshed hosted checks and reviewed the latest PR comments. ## Results | Check | Result | |---|---| | `test_check_conventions_comments.py` | Passed: 79 tests | | Current-main conventions | Passed | | Diff check | Passed; no output | | Merge preview against current `main` | Clean; tree `bd386af5cfac17cbea756ba67975eea96638ae4f` | | Overlap checker | No overlapping changes reported across 1,400 open PRs | | Hosted checks | Conventions, eligibility, intake, labels and all four relinker platforms plus ASan passed; Linux, Windows product, register-context and write-watch skipped | <details> <summary>Raw output excerpts</summary> ```text Ran 79 tests in 7.088s OK ``` ```text All conventions checks passed. ``` ```text bd386af5cfac17cbea756ba67975eea96638ae4f ``` ```text No overlap with open pull requests. ``` </details> ## Negative control Not run. The focused test suite passes, but a baseline comparison was not part of this review. ## Findings ### Blocking 1. **Update onto current `main` and rerun.** The branch is based on `83462cc57ddecac5e5f3cdafafbe38d406e55953`, 6,729 commits behind current `main`. Since that base, `tools/check_conventions.py` changed by 172 lines, including its template and export checks. The merge preview is clean, but the modified parser needs testing with those current checks in the same tree. 2. **Resolve the `perf` title/report mismatch.** The PR body says there is no title, scene, or application trace for this tools-only speedup. The repository labels `perf(...)` PRs as requiring a pair of valid `aps5-summary.jsonl` lines and trace evidence. As you offered in the thread, please retitle this as `fix(tools)` or `test(tools)` if the change is not intended to make a traced application-performance claim. ### Non-blocking - The automated overlap comment names #12654 because both PRs touch `tools/check_conventions.py`. I independently ran `pr_overlap.py` and a merge preview of the exact heads; neither reports a conflicting change, so I found no basis to require a dependency at this time. - The updated template headings resolve the prior conventions-body issue. Current hosted conventions and all applicable relinker checks pass. ## Sources - [PR head parser change](https://github.com/boykopovar/AnyPS5/blob/db01701db5798550dc895a904ca7ecc34d6eaca4/tools/check_conventions.py) - [Current `main` version of the checker](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/tools/check_conventions.py) - [Performance-report capture requirements](https://github.com/boykopovar/AnyPS5/blob/3a2b91981651569163768854a1fcdc7193b6667b/.github/ISSUE_TEMPLATE/performance.yml) - [Current PR checks](https://github.com/boykopovar/AnyPS5/pull/9966/checks) ## Not verified - Behavior after integrating with current `main`. - A Windows Python 3.9 run on the current combined tree. - Any traced application-performance change. - An independent mutation/negative-control run. ## To get this to a good state Rebase or otherwise update the branch to current `main`, rerun the 79 focused tests and conventions check on that combined head, and retitle it away from `perf` if it does not provide the required application traces. I will recheck the resulting head and report.
MarcZX10 commented 2026-10-29 02:31:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T02:31:20Z.

Review: APPROVED


Re-checked — new head, looks good

I re-reviewed exact head 1c968013ed against current main 3a2b919816; the merge preview is clean, all 82 focused conventions tests pass, and the large-export regression test is about 19.8 times faster here.

What I ran

Environment: Linux x86_64, kernel 6.1.0-54-amd64, Python 3.11.2. I used isolated worktrees for the PR head and current main.

git diff --check upstream/main...refs/remotes/review/9966
python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/9966
git merge-tree --write-tree upstream/main refs/remotes/review/9966
python3 -m unittest tools.tests.test_check_conventions_comments
python3 -c 'import time, unittest; name="tools.tests.test_check_conventions_comments.RepositoryChecksTests.test_large_export_set_checks_duplicates_without_command_line_limit"; suite=unittest.defaultTestLoader.loadTestsFromName(name); start=time.perf_counter(); result=unittest.TextTestRunner().run(suite); print("wall=%.3f s" % (time.perf_counter()-start)); raise SystemExit(not result.wasSuccessful())'

The last command ran once in the PR worktree at 1c968013ed and once in the base worktree at 3a2b919816.

Results

Check Result
Current-main merge preview Clean
Diff check Passed
Conventions Passed
tools.tests.test_check_conventions_comments 82 tests passed
Large-export regression test on PR head Passed in 0.786 s
Same test on current-main baseline Passed in 15.541 s
Hosted Ubuntu relinker Passed
Hosted Windows relinker Passed
Hosted relinker ASan Passed
Hosted macOS relinker jobs Pending
Other hosted product jobs Skipped
Raw output
Merge preview:
bd386af5cfac17cbea756ba67975eea96638ae4f

Diff check:
(no output; exit status 0)

Convention checker:
All conventions checks passed.

Focused conventions tests:
..................................................................................
----------------------------------------------------------------------
Ran 82 tests in 20.658s

OK

Large-export test, PR head:
.
----------------------------------------------------------------------
Ran 1 test in 0.786s

OK
wall=0.786 s

Large-export test, current-main baseline:
.
----------------------------------------------------------------------
Ran 1 test in 15.540s

OK
wall=15.541 s

Hosted checks:
relinker (ubuntu-latest, g++) pass
relinker (windows-latest, g++) pass
relinker-asan pass
relinker (macos-latest, clang++) pending
relinker (macos-latest, clang++, x86_64) pending
linux skipping
register-context skipping
windows skipping
write-watch skipping
conventions pass
eligibility pass
labels pass

Negative control

Assertion Change Result
The large-export duplicate check stays correct while avoiding repeated whole-window masking Ran the unchanged regression test against the current-main implementation as a baseline It passed in both revisions; the main baseline took 15.541 s and the PR head took 0.786 s

Findings

Blocking

None found.

Non-blocking

The two hosted macOS relinker jobs are queued; I have not counted them as passes. The exact-head unit tests, Windows and Ubuntu relinker jobs, merge preview, and conventions check all passed.

Sources

Not verified

I did not run the full project build, project-wide CTest suite, or console behavior. The hosted macOS relinker jobs remain queued; Linux and Windows project-wide jobs are marked skipped.

To get this to a good state

No code change is needed for the reviewed head. Let the queued macOS jobs finish; if the head changes, I will rerun these same checks and the large-export comparison on the new revision.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5692167213 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9966#pullrequestreview-5692167213). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T02:31:20Z. **Review:** APPROVED --- # Re-checked — new head, looks good I re-reviewed exact head 1c968013edfe7b02c318c00c8aa87fa6e3aef9fe against current main 3a2b91981651569163768854a1fcdc7193b6667b; the merge preview is clean, all 82 focused conventions tests pass, and the large-export regression test is about 19.8 times faster here. ## What I ran Environment: Linux x86_64, kernel 6.1.0-54-amd64, Python 3.11.2. I used isolated worktrees for the PR head and current main. ~~~sh git diff --check upstream/main...refs/remotes/review/9966 python3 tools/check_conventions.py --base upstream/main --head refs/remotes/review/9966 git merge-tree --write-tree upstream/main refs/remotes/review/9966 python3 -m unittest tools.tests.test_check_conventions_comments python3 -c 'import time, unittest; name="tools.tests.test_check_conventions_comments.RepositoryChecksTests.test_large_export_set_checks_duplicates_without_command_line_limit"; suite=unittest.defaultTestLoader.loadTestsFromName(name); start=time.perf_counter(); result=unittest.TextTestRunner().run(suite); print("wall=%.3f s" % (time.perf_counter()-start)); raise SystemExit(not result.wasSuccessful())' ~~~ The last command ran once in the PR worktree at 1c968013edfe7b02c318c00c8aa87fa6e3aef9fe and once in the base worktree at 3a2b91981651569163768854a1fcdc7193b6667b. ## Results | Check | Result | |---|---| | Current-main merge preview | Clean | | Diff check | Passed | | Conventions | Passed | | tools.tests.test_check_conventions_comments | 82 tests passed | | Large-export regression test on PR head | Passed in 0.786 s | | Same test on current-main baseline | Passed in 15.541 s | | Hosted Ubuntu relinker | Passed | | Hosted Windows relinker | Passed | | Hosted relinker ASan | Passed | | Hosted macOS relinker jobs | Pending | | Other hosted product jobs | Skipped | <details><summary>Raw output</summary> ~~~text Merge preview: bd386af5cfac17cbea756ba67975eea96638ae4f Diff check: (no output; exit status 0) Convention checker: All conventions checks passed. Focused conventions tests: .................................................................................. ---------------------------------------------------------------------- Ran 82 tests in 20.658s OK Large-export test, PR head: . ---------------------------------------------------------------------- Ran 1 test in 0.786s OK wall=0.786 s Large-export test, current-main baseline: . ---------------------------------------------------------------------- Ran 1 test in 15.540s OK wall=15.541 s Hosted checks: relinker (ubuntu-latest, g++) pass relinker (windows-latest, g++) pass relinker-asan pass relinker (macos-latest, clang++) pending relinker (macos-latest, clang++, x86_64) pending linux skipping register-context skipping windows skipping write-watch skipping conventions pass eligibility pass labels pass ~~~ </details> ## Negative control | Assertion | Change | Result | |---|---|---| | The large-export duplicate check stays correct while avoiding repeated whole-window masking | Ran the unchanged regression test against the current-main implementation as a baseline | It passed in both revisions; the main baseline took 15.541 s and the PR head took 0.786 s | ## Findings ### Blocking None found. ### Non-blocking The two hosted macOS relinker jobs are queued; I have not counted them as passes. The exact-head unit tests, Windows and Ubuntu relinker jobs, merge preview, and conventions check all passed. ## Sources - [function_body implementation at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/1c968013edfe7b02c318c00c8aa87fa6e3aef9fe/tools/check_conventions.py#L644-L744) - [Large-export regression test at the reviewed head](https://github.com/boykopovar/AnyPS5/blob/1c968013edfe7b02c318c00c8aa87fa6e3aef9fe/tools/tests/test_check_conventions_comments.py#L787-L810) - [Updated PR description and baseline measurements](https://github.com/boykopovar/AnyPS5/pull/9966) ## Not verified I did not run the full project build, project-wide CTest suite, or console behavior. The hosted macOS relinker jobs remain queued; Linux and Windows project-wide jobs are marked skipped. ## To get this to a good state No code change is needed for the reviewed head. Let the queued macOS jobs finish; if the head changes, I will rerun these same checks and the large-export comparison on the new revision.
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
boykopovar/AnyPS5!9966
No description provided.