docs: preserve failures in non-Windows quick starts #1212

Manually merged
github merged 1 commit from gh-pr/1212/head into gh-pr/1212/base 2026-11-26 22:49:22 +00:00
Owner

@⁠nanyoudegege on GitHub · 2026-11-24 03:34 UTC · original
nanyoudegege:docs/non-windows-quick-start-failures → main · +15 −8 · 1 files · 1 commits · merged 2026-11-24 04:07 UTC

Problem

The macOS and Linux Python quick starts run a series of commands, but the last successful check can hide a failed dependency install or earlier test from the block's exit status.

Change

Run each block in a subshell and return the status of the first failing command. This stops the block without exiting the caller's shell. The listed checks and their order are unchanged.

Verification

Extracted both verbatim Markdown code blocks and exercised them on cloud Linux under Bash 5.2, Dash, and Zsh 5.9 with stand-ins for Homebrew, environment setup, dependency installation, and the test commands. Both original snippets continued and returned 0 after an injected install or middle-check failure. Both updated snippets preserved the nonzero status and stopped; the caller survived, and the all-success controls kept the full list in order. Also checked the macOS Homebrew lookup failure. git diff --check passed. This verifies shell control flow, not macOS tool installation or the actual Python suite.

AI-assisted (ChatGPT/Codex).

**@⁠nanyoudegege** on GitHub · 2026-11-24 03:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1212) `nanyoudegege:docs/non-windows-quick-start-failures` → `main` · +15 −8 · 1 files · 1 commits · merged 2026-11-24 04:07 UTC ### Problem The macOS and Linux Python quick starts run a series of commands, but the last successful check can hide a failed dependency install or earlier test from the block's exit status. ### Change Run each block in a subshell and return the status of the first failing command. This stops the block without exiting the caller's shell. The listed checks and their order are unchanged. ### Verification Extracted both verbatim Markdown code blocks and exercised them on cloud Linux under Bash 5.2, Dash, and Zsh 5.9 with stand-ins for Homebrew, environment setup, dependency installation, and the test commands. Both original snippets continued and returned 0 after an injected install or middle-check failure. Both updated snippets preserved the nonzero status and stopped; the caller survived, and the all-success controls kept the full list in order. Also checked the macOS Homebrew lookup failure. `git diff --check` passed. This verifies shell control flow, not macOS tool installation or the actual Python suite. AI-assisted (ChatGPT/Codex).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:49:21 +00:00
github manually merged commit 806ee0dfb8 into gh-pr/1212/base 2026-11-26 22:49:22 +00:00
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-24 03:34 UTC · original · edited 2026-11-24 03:37 UTC

Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T03:37:21.324297Z 806ee0d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@⁠codex review" or "@⁠codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-24 03:34 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1212#issuecomment-7121229638) · edited 2026-11-24 03:37 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"806ee0dfb8eeec34f5277c7bf567bd77d8394b63","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-24T03:37:21.324297Z">2026-11-24T03:37:21.324297Z</relative-time> | `806ee0d` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@⁠codex review" or "@⁠codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
Author
Owner

@⁠tedin7 on GitHub · 2026-11-24 03:41 UTC · original · reviewed

Technical review on Linux (Windows build/tests were not executed locally).

Checks run (Linux, commit 806ee0df)

  • /root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py: passed (16 Markdown files, 269 links).
  • /root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (1005 files).

Findings

No issues found. Wrapping both the macOS and Linux Python quick-start blocks in (...) subshells with || exit $? on setup steps and each test invocation preserves the listed checks and order while surfacing the first failure without exiting the caller's shell.

**@⁠tedin7** on GitHub · 2026-11-24 03:41 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/1212#pullrequestreview-6033310833) · **reviewed** Technical review on Linux (Windows build/tests were **not** executed locally). ### Checks run (Linux, commit `806ee0df`) - `/root/.local/share/x2w-rev-venv/bin/python -B tests/docs_links_check.py`: passed (`16` Markdown files, `269` links). - `/root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py`: passed (`1005` files). ### Findings No issues found. Wrapping both the macOS and Linux Python quick-start blocks in `(...)` subshells with `|| exit $?` on setup steps and each test invocation preserves the listed checks and order while surfacing the first failure without exiting the caller's shell.
This discussion has been locked. Commenting is limited to contributors.
No description provided.