feat(tools): progress map and pull request progress reports #11

Merged
adriadam10 merged 5 commits from upstream-pr/11 into main 2026-09-28 15:50:01 +00:00
adriadam10 commented 2026-09-26 16:25:44 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-09-26T16:25:44Z.


What

Adds an automatic progress map at the top of the README, in the style of the treemaps used by decompilation projects (e.g. Petari).

  • tools/progress.py: Python 3.9+, standard library only. It generates a single SVG with two treemaps, two badges and a detail table.
  • tools/rdna_isa.txt: AMD's RDNA 1 + RDNA 2 instruction list, used as the reference total for shaders.
  • .github/workflows/progress.yml: runs the script on every push to main and deploys the output to GitHub Pages.
  • .github/workflows/progress-report.yml + progress-comment.yml: post a progress report on every pull request (see below).
  • README.md: shows the map and badges, plus a short explanation of what each one measures.

Nothing generated is committed to the repository: the output only lives in the Pages deployment.

Preview: https://adriadam10.github.io/AnyPS5/

Why

Someone landing on the repo currently has no quick way to see how far along the project is, or which areas still need work. The map shows it at a glance, updates itself, and points contributors to the parts that are still blue.

What is measured

System libraries*: 43.26% (847/1958)
Each block is a library in core/libs/prx, sized by its number of functions. A function counts as implemented when it no longer calls NotImplemented_nid_no_patch.

* The total only includes functions already declared in the project, not every function exported by the PS5 firmware. The README says so explicitly.

GPU shader instructions: 49.06% (572/1166)

  • Total: the AMD RDNA 1 + RDNA 2 instruction list, taken from AMD's machine-readable ISA specification (MIT). Both generations are included because the decoder handles opcodes that only exist in RDNA 1.
  • Implemented: an instruction counts as implemented when it appears in RdnaOpcode.
  • FLAT opcodes also count for their GLOBAL and SCRATCH forms, because the decoder accepts all three segments.
  • Excluded: 7 decoded opcodes are not in AMD's public list (VAddI32, VSubI32, VLshlB32, VLshrB32, VAshrI32, VMulLoI32, VSubrevI32), so they count on neither side.

Relinker: not measured
It has no natural total to measure against. See question 3.

Pull request reports

Like decomp.dev's bot on Petari, every pull request gets a single comment listing the functions and instructions it implements, declares as stubs, reverts or removes. The comment is updated on every push, and no comment is posted when progress doesn't change. It runs as a separate workflow_run, so pull requests from forks never run with write permissions. Example: https://github.com/adriadam10/AnyPS5/pull/2

Questions

  1. Library total: I cross-checked the declared functions against the firmware export lists in ps5-payload-dev/sdk. Every declared function exists in the firmware, but they are a small subset (e.g. libScePad: 20 of 130). Is core/libs/prx exactly the set of functions imported by the games you have tested? If so, the README could say "of the functions games actually use" instead of "known functions".
  2. Silent stubs: libSceSaveDataDialog.native and libSceCommonDialog count as implemented, although docs/TechnicalDebt.md lists them as silent stubs. Should they call NotImplemented_nid_no_patch too, or should the script exclude them?
  3. Relinker / game compatibility: would a game compatibility list be useful as a third indicator, like shadPS4's? It would be maintained by hand.
  4. Placement: is the top of the README the right place for the map, or would you rather have it under "Status"?
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4648213430 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-09-26T16:25:44Z. --- ### What Adds an automatic progress map at the top of the README, in the style of the treemaps used by decompilation projects (e.g. [Petari](https://github.com/SMGCommunity/Petari)). - **`tools/progress.py`**: Python 3.9+, standard library only. It generates a single SVG with two treemaps, two badges and a detail table. - **`tools/rdna_isa.txt`**: AMD's RDNA 1 + RDNA 2 instruction list, used as the reference total for shaders. - **`.github/workflows/progress.yml`**: runs the script on every push to `main` and deploys the output to GitHub Pages. - **`.github/workflows/progress-report.yml`** + **`progress-comment.yml`**: post a progress report on every pull request (see below). - **`README.md`**: shows the map and badges, plus a short explanation of what each one measures. Nothing generated is committed to the repository: the output only lives in the Pages deployment. Preview: https://adriadam10.github.io/AnyPS5/ ### Why Someone landing on the repo currently has no quick way to see how far along the project is, or which areas still need work. The map shows it at a glance, updates itself, and points contributors to the parts that are still blue. ### What is measured **System libraries\*: 43.26% (847/1958)** Each block is a library in `core/libs/prx`, sized by its number of functions. A function counts as implemented when it no longer calls `NotImplemented_nid_no_patch`. \* The total only includes functions already declared in the project, not every function exported by the PS5 firmware. The README says so explicitly. **GPU shader instructions: 49.06% (572/1166)** - **Total:** the AMD RDNA 1 + RDNA 2 instruction list, taken from AMD's [machine-readable ISA specification](https://gpuopen.com/machine-readable-isa/) (MIT). Both generations are included because the decoder handles opcodes that only exist in RDNA 1. - **Implemented:** an instruction counts as implemented when it appears in `RdnaOpcode`. - **FLAT opcodes** also count for their GLOBAL and SCRATCH forms, because the decoder accepts all three segments. - **Excluded:** 7 decoded opcodes are not in AMD's public list (`VAddI32`, `VSubI32`, `VLshlB32`, `VLshrB32`, `VAshrI32`, `VMulLoI32`, `VSubrevI32`), so they count on neither side. **Relinker: not measured** It has no natural total to measure against. See question 3. ### Pull request reports Like decomp.dev's bot on Petari, every pull request gets a single comment listing the functions and instructions it implements, declares as stubs, reverts or removes. The comment is updated on every push, and no comment is posted when progress doesn't change. It runs as a separate `workflow_run`, so pull requests from forks never run with write permissions. Example: https://github.com/adriadam10/AnyPS5/pull/2 ### Questions 1. **Library total**: I cross-checked the declared functions against the firmware export lists in [ps5-payload-dev/sdk](https://github.com/ps5-payload-dev/sdk). Every declared function exists in the firmware, but they are a small subset (e.g. `libScePad`: 20 of 130). Is `core/libs/prx` exactly the set of functions imported by the games you have tested? If so, the README could say "of the functions games actually use" instead of "known functions". 2. **Silent stubs**: `libSceSaveDataDialog.native` and `libSceCommonDialog` count as implemented, although `docs/TechnicalDebt.md` lists them as silent stubs. Should they call `NotImplemented_nid_no_patch` too, or should the script exclude them? 3. **Relinker / game compatibility**: would a game compatibility list be useful as a third indicator, like shadPS4's? It would be maintained by hand. 4. **Placement**: is the top of the README the right place for the map, or would you rather have it under "Status"?
boykopovar commented 2026-09-27 05:32:28 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-27T05:32:28Z.


I really like this feature! But I don't like the fact that the generated images will be pushed to Git (even on another branch, I very carefully monitor the size of the .git folder so that there is nothing unnecessary there) every time, bloating the repository. Can you make the images generated and stored as GitHub Actions Artifacts? Would it be possible to also display them in the readme? The tools/rdna_isa.txt file is ok.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5853021629 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11#issuecomment-5853021629). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-27T05:32:28Z. --- I really like this feature! But I don't like the fact that the generated images will be pushed to Git (even on another branch, I very carefully monitor the size of the .git folder so that there is nothing unnecessary there) every time, bloating the repository. Can you make the images generated and stored as GitHub Actions Artifacts? Would it be possible to also display them in the readme? The tools/rdna_isa.txt file is ok.
adriadam10 commented 2026-09-27 16:30:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-09-27T16:30:38Z.


Done. The workflow no longer pushes anything to git. It generates the images and deploys them with GitHub Pages (actions/upload-pages-artifact + actions/deploy-pages), so the output only lives as an Actions artifact and in the Pages deployment. No branch and no commits. The README shows them from https://boykopovar.github.io/AnyPS5/, and the map with per-library tables is at the root of that site.

One setting is needed on your side: Settings → Pages → Source: GitHub Actions. After that, the next push to main publishes it. Until then, the images in the README will show as broken, because that URL doesn't exist yet.

I also squashed the PR into a single commit rebased on current main. I tested it on my fork: https://adriadam10.github.io/AnyPS5/

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5857685639 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11#issuecomment-5857685639). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-09-27T16:30:38Z. --- Done. The workflow no longer pushes anything to git. It generates the images and deploys them with GitHub Pages (`actions/upload-pages-artifact` + `actions/deploy-pages`), so the output only lives as an Actions artifact and in the Pages deployment. No branch and no commits. The README shows them from `https://boykopovar.github.io/AnyPS5/`, and the map with per-library tables is at the root of that site. One setting is needed on your side: **Settings → Pages → Source: GitHub Actions**. After that, the next push to `main` publishes it. Until then, the images in the README will show as broken, because that URL doesn't exist yet. I also squashed the PR into a single commit rebased on current `main`. I tested it on my fork: https://adriadam10.github.io/AnyPS5/
adriadam10 commented 2026-09-27 16:51:34 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-09-27T16:51:34Z.


I added a second commit that posts a progress report on pull requests, like decomp.dev's bot on Petari: https://github.com/adriadam10/AnyPS5/pull/2

It lists what each PR implements, declares as stubs, reverts or removes, keeps a single comment updated on every push, and stays silent when progress doesn't change. It's a separate commit, so it's easy to drop if you'd rather keep the PR to the map only. I've also updated the PR description.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5857838198 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11#issuecomment-5857838198). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-09-27T16:51:34Z. --- I added a second commit that posts a progress report on pull requests, like decomp.dev's bot on Petari: https://github.com/adriadam10/AnyPS5/pull/2 It lists what each PR implements, declares as stubs, reverts or removes, keeps a single comment updated on every push, and stays silent when progress doesn't change. It's a separate commit, so it's easy to drop if you'd rather keep the PR to the map only. I've also updated the PR description.
boykopovar commented 2026-09-27 20:25:05 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-27T20:25:05Z.


That's fine too. If there's no other way, we'll merge it. But maybe you could make it look like you did the first time (the image was displayed at the beginning of the readme), but store the generated images in Github Actions Artifacts (not pages) instead of the Git repository or pages.

I checked, and even with the current deployment setup, you can already add an image to the readme like this link: Progress'

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5859527710 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11#issuecomment-5859527710). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-27T20:25:05Z. --- That's fine too. If there's no other way, we'll merge it. But maybe you could make it look like you did the first time (the image was displayed at the beginning of the readme), but store the generated images in Github Actions Artifacts (not pages) instead of the Git repository or pages. I checked, and even with the current deployment setup, you can already add an image to the readme like this link: ![Progress](https://adriadam10.github.io/AnyPS5/progress.svg)'
adriadam10 commented 2026-09-28 13:21:59 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-09-28T13:21:59Z.


But maybe you could make it look like you did the first time (the image was displayed at the beginning of the readme), but store the generated images in Github Actions Artifacts (not pages) instead of the Git repository or pages.

Unfortunately a plain Actions artifact can't be embedded in the README: it's a .zip, downloading it requires being signed in, and its URL changes on every run and expires. Pages is the only GitHub way to get a public, stable URL for a workflow's output, and it's still an Actions artifact under the hood (upload-pages-artifact + deploy-pages), with nothing committed to git.

I checked, and even with the current deployment setup, you can already add an image to the readme like this link: Progress

That's exactly how the PR's README already shows the image at the top, just from boykopovar.github.io so it tracks your main instead of my fork. It's broken right now only because Pages isn't enabled yet: Settings → Pages → Source: GitHub Actions.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5870723270 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11#issuecomment-5870723270). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-09-28T13:21:59Z. --- > But maybe you could make it look like you did the first time (the image was displayed at the beginning of the readme), but store the generated images in Github Actions Artifacts (not pages) instead of the Git repository or pages. Unfortunately a plain Actions artifact can't be embedded in the README: it's a `.zip`, downloading it requires being signed in, and its URL changes on every run and expires. Pages is the only GitHub way to get a public, stable URL for a workflow's output, and it's still an Actions artifact under the hood (`upload-pages-artifact` + `deploy-pages`), with nothing committed to git. > I checked, and even with the current deployment setup, you can already add an image to the readme like this link: ![Progress](https://adriadam10.github.io/AnyPS5/progress.svg) That's exactly how the PR's README already shows the image at the top, just from `boykopovar.github.io` so it tracks your `main` instead of my fork. It's broken right now only because Pages isn't enabled yet: **Settings → Pages → Source: GitHub Actions**.
boykopovar commented 2026-09-28 15:43:38 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-28T15:43:38Z.


progress.py.md

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:5873473501 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11#issuecomment-5873473501). Originally posted by [boykopovar](https://github.com/boykopovar) on 2026-09-28T15:43:38Z. --- [progress.py.md](https://github.com/user-attachments/files/32757021/progress.py.md)
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!11
No description provided.