Repository navigation
Test Windows signal wakeup socket error reporting - #9023
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (4)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
cc1a2da to
4a16d45
Compare
4a16d45 to
4bb1f97
Compare
4bb1f97 to
a035e0f
Compare
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [ ] test: cpython/Lib/test/test_mmap.py (TODO: 19) dependencies: dependent tests: (2 tests)
Legend:
|
Capture Winsock failures with bounded atomic storage and report them through sys.unraisablehook on the interpreter thread. Honor warn_on_full_buffer for WSAEWOULDBLOCK. Include bounded Windows socket regressions without changing Unix or CRT wakeup writes. Assisted-by: OpenAI Codex:model identifier unavailable
a035e0f to
44712eb
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 44712eb197
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| signal.signal(signal.SIGUSR2, signal.SIG_DFL) | ||
|
|
||
|
|
||
| def check_windows_wakeup_reporting(): |
There was a problem hiding this comment.
Remove the disallowed test-logic addition
This adds a new test function with many assertions to a test file, but the repository's critical test policy forbids modifying test assertions, logic, or data and limits acceptable test-file edits to expected-failure decorator changes. Drop this test-file addition or obtain an explicit policy exception before landing the runtime change.
AGENTS.md reference: AGENTS.md:L273-L279
Useful? React with 👍 / 👎.
Current revision
Targets Python 3.15
mainatf39da82d9d38cd5bdceb9e645205e830f65126fbwith one logical commit,44712eb1979fdc1934b43a2e07e9d2f7909ac286. The unique patch is unchanged from the prior reviewed PR head (range-diff=); current main fixes, original author attribution, and assistance trailers are preserved. No files underLib/are changed.Normal commit hooks, changed-range hooks, whitespace checks, and source-equivalence review passed. Normal hosted CI is enabled for this exact head. No new native build or runtime validation is claimed; earlier results below remain attributed to their original revisions.
Summary
Extract Windows signal wakeup-socket error reporting from #8954, with a regression in the existing
stdlib_signal.pysnippet.sys.unraisablehookon the main interpreter thread before Python signal handlers run.warn_on_full_buffer=Falsefor WSAEWOULDBLOCK only; other socket errors remain reported.The regression uses bounded numeric-loopback TCP sockets and covers successful byte delivery, default/true/false/default full-buffer reporting, unraisable-hook fields, and invalid-socket errors with warnings disabled. Signal handlers are reinstalled for each raise.
Reference: CPython v3.14.7 signalmodule.c.
Validation
f216ec98bee1b5ac8540bda27f98988fb098f13a: CPython and RustPython signal snippets passed. Full snippets: 480 passed, 4 skipped. Canonical tests: SUCCESS, 43,883 run, 4,927 skipped.AI assistance
OpenAI Codex assisted with source comparison, regression design, independent review, and validation. The runtime did not expose its model identifier.