feat(tools): progress map and pull request progress reports #11
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11"
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 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 tomainand 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 callsNotImplemented_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)
RdnaOpcode.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/2Questions
libScePad: 20 of 130). Iscore/libs/prxexactly 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".libSceSaveDataDialog.nativeandlibSceCommonDialogcount as implemented, althoughdocs/TechnicalDebt.mdlists them as silent stubs. Should they callNotImplemented_nid_no_patchtoo, or should the script exclude them?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.
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 fromhttps://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
mainpublishes 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/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.
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:
'
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-09-28T13:21:59Z.
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.That's exactly how the PR's README already shows the image at the top, just from
boykopovar.github.ioso it tracks yourmaininstead of my fork. It's broken right now only because Pages isn't enabled yet: Settings → Pages → Source: GitHub Actions.Imported from boykopovar/AnyPS5. Originally posted by boykopovar on 2026-09-28T15:43:38Z.
progress.py.md