[llvm] [lit] Migrate lit to ProcessPoolExecutor (PR #202681)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 00:20:34 PDT 2026
================
@@ -71,6 +83,44 @@ def execute(self):
if test.result is None:
test.setResult(skipped)
+ def _abort_executors(self, executors, future_to_test):
+ """SIGKILL all workers on abort (ctrl-C, --max-failures, --max-time,
+ worker crash). Pre-3.14 ProcessPoolExecutor has no force-stop."""
+ try:
+ # We don't call ex.shutdown() here: it joins the management thread,
+ # which is blocked reading the queue we just corrupted.
+ # cancel() is safe from 3.10:
+ # https://github.com/python/cpython/issues/94440
+ if sys.version_info >= (3, 10):
----------------
boomanaiden154 wrote:
It's unclear to me what exactly happens for Python 3.8/3.9.
Do we just not cancel the futures? Is that not strictly necessary here? I think some additional commentary here would be good.
https://github.com/llvm/llvm-project/pull/202681
More information about the llvm-commits
mailing list