feat: run independent syntax checks with configurable concurrency #7435

Merged
MrMha merged 1 commit from upstream-pr/7435 into main 2026-10-19 20:32:18 +00:00
MrMha commented 2026-10-18 06:21:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MrMha on 2026-10-18T06:21:14Z.


What

Add positive --jobs N to run independent source syntax checks concurrently while retaining all configurations and deterministic source-order diagnostics. Default jobs=1 remains synchronous. Each source returns its diagnostics to the main thread, preventing interleaved errors. The concurrency test uses a subprocess barrier, not a timing speed threshold; no benchmark claim is made.

Tested

macOS 27.0.1 arm64, Python 3.12.14; based on main ccb0c092683aa9012769394d2f1a0b43b7b7e89a. Focused suite: 25 tests run successfully. One existing Windows-only quoting test is skipped on macOS. The new focused regression also passes on Apple Python 3.9.6. Unchanged main does not support the new option/subcommand; its feature regression fails as expected.

Two real subprocesses must reach a shared barrier concurrently; the second completes first but both failures are reported in source order. Invalid job counts are rejected.

A combined validation branch containing all ten independent tooling features builds in Release with ANYPS5_RELINKER_ONLY=ON; all 185 portable CTest cases pass. The registration audit finds 24 test executables with none omitted. Conventions and whitespace checks pass for this independent branch. No title execution, GPU validation or before/after runtime speed result is claimed.

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 (OpenAI Codex)
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4906910689 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7435). Originally posted by [MrMha](https://github.com/MrMha) on 2026-10-18T06:21:14Z. --- ### What Add positive `--jobs N` to run independent source syntax checks concurrently while retaining all configurations and deterministic source-order diagnostics. Default jobs=1 remains synchronous. Each source returns its diagnostics to the main thread, preventing interleaved errors. The concurrency test uses a subprocess barrier, not a timing speed threshold; no benchmark claim is made. ### Tested macOS 27.0.1 arm64, Python 3.12.14; based on main `ccb0c092683aa9012769394d2f1a0b43b7b7e89a`. Focused suite: 25 tests run successfully. One existing Windows-only quoting test is skipped on macOS. The new focused regression also passes on Apple Python 3.9.6. Unchanged main does not support the new option/subcommand; its feature regression fails as expected. Two real subprocesses must reach a shared barrier concurrently; the second completes first but both failures are reported in source order. Invalid job counts are rejected. A combined validation branch containing all ten independent tooling features builds in Release with `ANYPS5_RELINKER_ONLY=ON`; all 185 portable CTest cases pass. The registration audit finds 24 test executables with none omitted. Conventions and whitespace checks pass for this independent branch. No title execution, GPU validation or before/after runtime speed result is claimed. <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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 (OpenAI Codex)
adriadam10 commented 2026-10-19 20:33:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T20:33:12Z.


Checked the --jobs handling (default 1 stays synchronous, 0/negative rejected), that diagnostics and the checked/failed counts keep source order, and that the new barrier test fails without the change and does not depend on timing; relinker jobs on Linux, macOS and Windows are green; merged.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6276702341 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/7435#issuecomment-6276702341). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T20:33:12Z. --- Checked the `--jobs` handling (default 1 stays synchronous, 0/negative rejected), that diagnostics and the checked/failed counts keep source order, and that the new barrier test fails without the change and does not depend on timing; relinker jobs on Linux, macOS and Windows are green; merged.
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!7435
No description provided.