docs: preserve failures in non-Windows quick starts #1212
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!1212
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1212/head"
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?
@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 UTCProblem
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 --checkpassed. This verifies shell control flow, not macOS tool installation or the actual Python suite.AI-assisted (ChatGPT/Codex).
@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.
806ee0dℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@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 (16Markdown files,269links)./root/.local/share/x2w-rev-venv/bin/python -B tests/bidi_controls_check.py: passed (1005files).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.