fix(release): include the enabled Tracy runtime #5729

Merged
Ondra97 merged 1 commit from upstream-pr/5729 into main 2026-10-15 12:19:47 +00:00
Ondra97 commented 2026-10-14 08:12:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ondra97 on 2026-10-14T08:12:39Z.


What

A build configured with APS5_ENABLE_TRACY=ON links libSceAgcDriver.prx against the shared Tracy client, and the libs target copies that client beside the patched libraries. Release packaging includes only .prx files and the MinGW runtime DLLs, so it produces ZIP and TAR archives without a required dependency.

Read the configured Tracy option and include its built client in both archives when enabled: libTracyClient.dll on Windows or the single versioned libTracyClient.so.* on Linux. A missing or ambiguous client fails before publishing any asset. Disabled configurations exclude leftover clients from a reused build.

Tested

Windows x64, supported WinLibs MinGW-w64 GCC 15.2.0, Python 3.14; current main 31bfc4e86.

  • Full libs and relinker build with APS5_ENABLE_TRACY=ON passed. The real patched driver imports libTracyClient.dll; the built client SHA-256 is a5cf542e2deb15f272df343519b3418792ab995cf1145de7859abccf321dd87e.
  • Packaged that actual build before/after the fix. Both original archives omitted the client; both fixed archives contain exactly the built client bytes.
  • Four regression subcases failed before the fix. All 22 release-package tests pass afterward; CTest release_package takes 0.53 seconds. They cover both target platforms, exact ZIP/TAR contents, disabled configurations with stale clients and preservation of existing assets when the enabled client is missing or ambiguous.
  • CMake's real boolean evaluation was checked against the flag values used by the packager. Conventions and whitespace checks passed.
  • All 446 open PR file lists were checked and the exact shared patches of #5459 (read-only destinations) and #674 (input-configuration executable) were manually inspected. Neither implements Tracy runtime selection or packaging.

Linux client packaging has fixture coverage locally; the real enabled build above is Windows.

Current-head CI for be9fbd537 passed conventions and eligibility, plus all three relinker builds and complete test suites (Build):

  • relinker (macos-latest, clang++): 149 CTest tests, zero failures; release_package passed.
  • relinker (windows-latest, g++): 153 CTest tests, zero failures; release_package passed.
  • relinker (ubuntu-latest, g++): 158 CTest tests, zero failures; release_package passed.

Full runtime-library jobs were skipped by the repository's PR workflow.

Integration with open PRs

Checked on main d92a8dad390af1807cc91622b924252141816a5a, with this head be9fbd537, #5896 d99a3c0fe and #6067 9a0e5fccb. Each head merges into main; their combined packaging changes require manual resolution.

  • #5896 adds version validation and snapshot packaging. Keep both tracy_runtime and validate_version; package must call the latter and still include the configured Tracy client.
  • #6067 adds the Windows mimalloc DLLs. Keep its two DLLs inside the Windows branch and the Tracy selection outside that branch. Its integration also needs the Windows Tracy test fixture to provide both allocator DLLs and expect them in ZIP/TAR contents. Resolving the production text alone leaves that fixture failing with a missing mimalloc.dll.

Focused Windows/Python 3.14 checks on the merged sources: 26 release-package tests per configuration, 25 passed and one POSIX-only test skipped. The PR on current main, the resolved #5896 pair, the #6067 pair after updating its combined fixture, and all three packaging changes together passed. The unadapted #6067 fixture failed as described before the adjustment. These are Python packaging-fixture checks; no combined native allocator, WASM or title run is claimed.

The fixes are independent. Merge order with #5896/#6067 is not yet agreed; whichever lands later must preserve the integration points above.

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
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4854936653 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5729). Originally posted by [Ondra97](https://github.com/Ondra97) on 2026-10-14T08:12:39Z. --- ### What A build configured with `APS5_ENABLE_TRACY=ON` links `libSceAgcDriver.prx` against the shared Tracy client, and the `libs` target copies that client beside the patched libraries. Release packaging includes only `.prx` files and the MinGW runtime DLLs, so it produces ZIP and TAR archives without a required dependency. Read the configured Tracy option and include its built client in both archives when enabled: `libTracyClient.dll` on Windows or the single versioned `libTracyClient.so.*` on Linux. A missing or ambiguous client fails before publishing any asset. Disabled configurations exclude leftover clients from a reused build. ### Tested Windows x64, supported WinLibs MinGW-w64 GCC 15.2.0, Python 3.14; current main `31bfc4e86`. - Full `libs` and `relinker` build with `APS5_ENABLE_TRACY=ON` passed. The real patched driver imports `libTracyClient.dll`; the built client SHA-256 is `a5cf542e2deb15f272df343519b3418792ab995cf1145de7859abccf321dd87e`. - Packaged that actual build before/after the fix. Both original archives omitted the client; both fixed archives contain exactly the built client bytes. - Four regression subcases failed before the fix. All 22 release-package tests pass afterward; CTest `release_package` takes 0.53 seconds. They cover both target platforms, exact ZIP/TAR contents, disabled configurations with stale clients and preservation of existing assets when the enabled client is missing or ambiguous. - CMake's real boolean evaluation was checked against the flag values used by the packager. Conventions and whitespace checks passed. - All 446 open PR file lists were checked and the exact shared patches of #5459 (read-only destinations) and #674 (input-configuration executable) were manually inspected. Neither implements Tracy runtime selection or packaging. Linux client packaging has fixture coverage locally; the real enabled build above is Windows. Current-head CI for `be9fbd537` passed conventions and eligibility, plus all three relinker builds and complete test suites ([Build](https://github.com/boykopovar/AnyPS5/actions/runs/38533512942)): - relinker (macos-latest, clang++): 149 CTest tests, zero failures; release_package passed. - relinker (windows-latest, g++): 153 CTest tests, zero failures; release_package passed. - relinker (ubuntu-latest, g++): 158 CTest tests, zero failures; release_package passed. Full runtime-library jobs were skipped by the repository's PR workflow. ### Integration with open PRs Checked on main `d92a8dad390af1807cc91622b924252141816a5a`, with this head `be9fbd537`, #5896 `d99a3c0fe` and #6067 `9a0e5fccb`. Each head merges into main; their combined packaging changes require manual resolution. - #5896 adds version validation and snapshot packaging. Keep both `tracy_runtime` and `validate_version`; `package` must call the latter and still include the configured Tracy client. - #6067 adds the Windows mimalloc DLLs. Keep its two DLLs inside the Windows branch and the Tracy selection outside that branch. Its integration also needs the Windows Tracy test fixture to provide both allocator DLLs and expect them in ZIP/TAR contents. Resolving the production text alone leaves that fixture failing with a missing `mimalloc.dll`. Focused Windows/Python 3.14 checks on the merged sources: 26 release-package tests per configuration, 25 passed and one POSIX-only test skipped. The PR on current main, the resolved #5896 pair, the #6067 pair after updating its combined fixture, and all three packaging changes together passed. The unadapted #6067 fixture failed as described before the adjustment. These are Python packaging-fixture checks; no combined native allocator, WASM or title run is claimed. The fixes are independent. Merge order with #5896/#6067 is not yet agreed; whichever lands later must preserve the integration points above. ### 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] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-14 21:11:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T21:11:46Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
#5896 tools/package_release.py L22-23
#6067 tools/package_release.py L35

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
#674 tools/package_release.py
#5797 tools/package_release.py
tools/tests/test_package_release.py
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6178604197 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5729#issuecomment-6178604197). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T21:11:46Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | #5896 | `tools/package_release.py` [L22-23](https://github.com/boykopovar/AnyPS5/blob/34454bd835ce334c3c395467da50546b433fe200/tools/package_release.py#L22-L23) | | | | #6067 | `tools/package_release.py` [L35](https://github.com/boykopovar/AnyPS5/blob/34454bd835ce334c3c395467da50546b433fe200/tools/package_release.py#L35) | | | Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | #674 | `tools/package_release.py` | | #5797 | `tools/package_release.py`<br>`tools/tests/test_package_release.py` |
adriadam10 commented 2026-10-15 12:19:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T12:19:34Z.


Checked tracy_runtime against core/libs/CMakeLists.txt (the client is copied to core/libs/libs), ran the release_package tests on the merged tree (all pass) and without the change (4 subcases fail on the missing client); relinker CI jobs are green. Merging.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6191884794 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5729#issuecomment-6191884794). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-15T12:19:34Z. --- Checked `tracy_runtime` against `core/libs/CMakeLists.txt` (the client is copied to `core/libs/libs`), ran the release_package tests on the merged tree (all pass) and without the change (4 subcases fail on the missing client); relinker CI jobs are green. Merging.
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!5729
No description provided.