tests: run repeated CLI checks in-process in sgd5_effects_check #1597

Merged
tedin7 merged 1 commit from upstream-pr/1604 into main 2026-11-24 15:16:02 +00:00
tedin7 commented 2026-11-24 14:49:09 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T14:49:09Z.


Summary

  • Extract main(argv=None) -> int in tools/sgd5_effects.py so the CLI entry point can be invoked in-process without changing CLI behavior or exit codes.
  • Update tests/sgd5_effects_check.py (test_candidates_and_boundaries) to keep an end-to-end subprocess smoke test for the CLI and run the remaining positive, mutation, and boundary cases in-process via sgd5_effects.main(...).

Benchmark (Linux, 3-run median)

  • python3 -B tests/sgd5_effects_check.py: 1.841s -> 0.263s (-85.7%, -1.578s wall time)

Test plan

  • python3 -B tests/sgd5_effects_check.py -v

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6584496758 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1604). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-24T14:49:09Z. --- ### Summary - Extract `main(argv=None) -> int` in `tools/sgd5_effects.py` so the CLI entry point can be invoked in-process without changing CLI behavior or exit codes. - Update `tests/sgd5_effects_check.py` (`test_candidates_and_boundaries`) to keep an end-to-end subprocess smoke test for the CLI and run the remaining positive, mutation, and boundary cases in-process via `sgd5_effects.main(...)`. ### Benchmark (Linux, 3-run median) - `python3 -B tests/sgd5_effects_check.py`: `1.841s` -> `0.263s` (`-85.7%`, `-1.578s` wall time) ### Test plan - `python3 -B tests/sgd5_effects_check.py -v` AI-assisted; commands listed were executed locally.
upstream-sync closed this pull request 2026-11-24 16:03:14 +00:00
chatgpt-codex-connector[bot commented 2026-11-24 16:03:31 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T15:02:20Z.


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-24T15:05:33.739915Z be147f1 Draft marked ready
ℹ️ 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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7135356873 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/1604#issuecomment-7135356873). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/chatgpt-codex-connector%5Bbot%5D) on 2026-11-24T15:02:20Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"be147f17f35b18ecf9a757309e0f964712d228eb","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-24T15:05:33.739915Z">2026-11-24T15:05:33.739915Z</relative-time> | `be147f1` | Draft marked ready | <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>
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
R0Y00/Xbox2Windows!1597
No description provided.