fix(web): keep the failure report with a failed conversion #11228

Merged
ebosido444-ai merged 3 commits from upstream-pr/11228 into main 2026-10-27 17:36:04 +00:00
ebosido444-ai commented 2026-10-25 22:12:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by ebosido444-ai on 2026-10-25T22:12:46Z.


What

A failed inspect or conversion hid the progress panel that held the conversion log, cleared the selected archives and showed one plain line, so the evidence was gone and a multi-GB input had to be picked again. Compose the message with the phase, the current input, the target, the libraries tag and the last 150 log lines, and show it inside the error box under "Failure details" so it can be selected and copied into a report.

failure-report.mjs is pure and unit-tested. It is added to tools/package_release.py's WEB_FILES and to the FILES fixture in tools/tests/test_web_release.py, because app.mjs now imports it and the release archive has to carry every frontend module.

Tested

node --test demo/web/tests/{app,batch,failure-report,output-directory}.test.mjs: 14 pass, 0 fail. node --check demo/web/app.mjs demo/web/failure-report.mjs. python3 -m unittest discover -s tests -p test_web_release.py from tools/: 30 tests pass, including test_package_includes_every_frontend_source. Not exercised in a real browser: the change replaces the error box contents, and an end-to-end failure needs a working release download.

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
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5009236157 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11228). Originally posted by [ebosido444-ai](https://github.com/ebosido444-ai) on 2026-10-25T22:12:46Z. --- ### What A failed inspect or conversion hid the progress panel that held the conversion log, cleared the selected archives and showed one plain line, so the evidence was gone and a multi-GB input had to be picked again. Compose the message with the phase, the current input, the target, the libraries tag and the last 150 log lines, and show it inside the error box under "Failure details" so it can be selected and copied into a report. `failure-report.mjs` is pure and unit-tested. It is added to `tools/package_release.py`'s `WEB_FILES` and to the `FILES` fixture in `tools/tests/test_web_release.py`, because `app.mjs` now imports it and the release archive has to carry every frontend module. ### Tested `node --test demo/web/tests/{app,batch,failure-report,output-directory}.test.mjs`: 14 pass, 0 fail. `node --check demo/web/app.mjs demo/web/failure-report.mjs`. `python3 -m unittest discover -s tests -p test_web_release.py` from `tools/`: 30 tests pass, including `test_package_includes_every_frontend_source`. Not exercised in a real browser: the change replaces the error box contents, and an end-to-end failure needs a working release download. ### 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 - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical 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
MarcZX10 commented 2026-10-25 22:37:31 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T22:37:31Z.

Review: DISMISSED


The new frontend module is imported by app.mjs, but the completed hosted relinker CTest run fails web_release on Ubuntu, Windows and both macOS jobs. The failing test_package_includes_every_frontend_source reports failure-report.mjs as present in demo/web but absent from the release archive. Please add the module to tools/package_release.py's WEB_FILES and update the corresponding FILES fixture in tools/tests/test_web_release.py, then rerun the suite. The failure occurs in this PR's all-platform checks; the remaining checks pass.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5645707455 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11228#pullrequestreview-5645707455). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T22:37:31Z. **Review:** DISMISSED --- The new frontend module is imported by `app.mjs`, but the completed hosted relinker CTest run fails `web_release` on Ubuntu, Windows and both macOS jobs. The failing `test_package_includes_every_frontend_source` reports `failure-report.mjs` as present in `demo/web` but absent from the release archive. Please add the module to `tools/package_release.py`'s `WEB_FILES` and update the corresponding `FILES` fixture in `tools/tests/test_web_release.py`, then rerun the suite. The failure occurs in this PR's all-platform checks; the remaining checks pass.
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!11228
No description provided.