Skip to content

fix(tools): report title launch errors - #1014

Draft
Thimo188 wants to merge 32 commits into
mainfrom
upstream-pr/23970
Draft

Thimo188 wants to merge 32 commits into
mainfrom
upstream-pr/23970

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#23970, originally opened by DonRyuzaki.

Source commit: ed10f834c515b3aec9753b622788258e15f096a6. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


What

Report an OS process-launch error as a normal launch-failed title-run outcome. The smoke path previously let Session/Popen raise an OSError, ending tools/title_run.py with a Python traceback and no run summary. The runner now writes the flattened error to stderr.log, records zero presents and no exit code, and includes the failure in the standard JSON and Markdown summaries. This applies to launch failures on any title and host OS. docs/dev/TRACING.md lists the new outcome.

This draft depends on boykopovar#22357, which includes boykopovar#22267 and their title-run outcome, provenance and cache-policy changes. It merges upstream ee93861d05f into that stack. The actual feature commit ed10f834c51 on top changes only tools/title_run.py, tools/tests/test_title_run.py, and the existing title-run documentation; inherited changes remain owned by their original PRs.

On Windows, one XPSemu Alpha 2.1 (PPSA97358) invocation with the existing --windows-fixed-base 0x400000 option reproduced WinError 623, Illegal System DLL Relocation. A later repeat on this stacked head launched and rendered, so the host-side address conflict is intermittent in this setup. This PR reports launch failures accurately; it does not fix that address conflict or claim to unlock the title.

Tested

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 and the licence notice of code adapted from upstream (see AGENTS.md)
  • 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
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: fix(tools): record effective cache policy for title runs boykopovar/AnyPS5#22357
  • Fixes: none
  • Unblocks: none measured
  • GPUs tested: n/a
  • AI-assisted: yes

Codex added 30 commits November 17, 2026 10:02
Windows can reject a fixed-base title before the process starts. Record the host launch error in the smoke summary so batch runs continue and comparisons distinguish it from relink failure.
@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

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
PR 774 tools/title_run_provenance.py
PR 776 tools/title_run_provenance.py
PR 777 tools/tests/test_title_run_observation.py
tools/title_run_provenance.py
PR 781 tools/tests/test_title_run_machines.py
tools/title_run_provenance.py
PR 787 tools/tests/test_title_run_cache.py
tools/tests/test_title_run_machines.py
tools/tests/test_title_run_observation.py
tools/title_run_cache.py
tools/title_run_provenance.py

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with main, rebase needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants