Skip to content

Drop serial MP CI retries and killpg overlay - #8756

Merged
youknowone merged 1 commit into
RustPython:mainfrom
youknowone:fix/flaky-mp
Sep 21, 2026
Merged

youknowone merged 1 commit into
RustPython:mainfrom
youknowone:fix/flaky-mp

Conversation

@youknowone

@youknowone youknowone commented Sep 20, 2026 •

Copy link
Copy Markdown
Member
  • Closes #xxxx
  • I did not use AI to write the code of this patch.
  • This PR follows our AI policy

Summary

Run test_multiprocessing_{fork,forkserver,spawn} in the main -j $CORES CPython test job. Remove the serial -j 1 five-retry FLAKY_MP step.

Also drop @unittest.expectedFailureIf(not hasattr(os, "killpg")) on test_resource_tracker_fork_deadlock; os.killpg exists and the test passes.

Test plan

Linux apple-container, release, threading, no jit/ssl:

  • test_resource_tracker_fork_deadlock after overlay removal
  • MP suites -j 2 (12/12)
  • MP + test_concurrent_futures -j 4 (remaining files after a local timeout cap also passed)
  • CI

Summary by CodeRabbit

  • Tests

    • Multiprocessing tests now run as part of the standard CPython test suite without separate flaky-test handling or retries.
  • Documentation

    • Updated Windows semaphore acquisition comments to clarify signal handling behavior.

Multiprocessing fork/spawn/forkserver now run in the main -j $CORES
CPython test job. Remove expectedFailureIf for os.killpg now that
killpg exists.

Assisted-by: Grok:4.6
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: RustPython/RustPython/.coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: 09bbffdf-7347-43fb-b642-67a54fde39bb

📥 Commits

Reviewing files that changed from the base of the PR and between e189ca7 and 11be12f.

⛔ Files ignored due to path filters (1)
  • Lib/test/_test_multiprocessing.py is excluded by !Lib/**
📒 Files selected for processing (2)
  • .github/workflows/ci.yaml
  • crates/stdlib/src/multiprocessing.rs

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

The CI workflow now runs multiprocessing tests with the standard CPython test command. It no longer retries them in a separate step. A Windows semaphore polling comment was updated without changing runtime behavior.

Changes

Multiprocessing test execution

Layer / File(s) Summary
Standard CPython test execution
.github/workflows/ci.yaml
Removed multiprocessing test exclusions, matrix settings, and the separate single-threaded retry step. The tests now run with the standard CPython test command.
Windows semaphore comment
crates/stdlib/src/multiprocessing.rs
Updated the comment to describe polling without a SIGINT event. Runtime behavior is unchanged.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: shaharnaveh

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies both primary changes: removing serial multiprocessing CI retries and removing the killpg overlay.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. (1 skipped: 1 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@youknowone
youknowone merged commit 54420c4 into RustPython:main Sep 21, 2026
32 checks passed
@youknowone
youknowone deleted the fix/flaky-mp branch September 21, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant