Alex Willmer
Alex Willmer
I expect the test to fail, based on ```console ➜ ansible git:(issue1360) ✗ ANSIBLE_STRATEGY=linear ansible localhost -m atexit_cleanup [WARNING]: Invalid characters were found in group names but not replaced, use...
In old CPython (probably 2.x) atexit was a pure Python module. The list of registered callbacks was stored in `atexit._exithandlers`. In current CPython (since https://github.com/python/cpython/commit/670e6921349dd408b6958a0c5d3b1486725f9beb) atexit is a builtin module...
From `-vvv` output it looks like the process(es) for the target are being terminated by SIGTERM (request graceful process shutdown) > [mux 53761] 11:42:47.504339 D mitogen.parent: Router(Broker(2510)): deleting route to...
Two third party packages worth perusing 1. https://pypi.org/project/multiexit/ > A better, saner and more useful [atexit](https://docs.python.org/3/library/atexit.html) replacement for Python 3 that supports [multiprocessing](https://docs.python.org/3/library/multiprocessing.html). 2. https://pypi.org/project/safe-exit/ > Safe Exit is a...
Reproduced with just Mitogen ```python import atexit import sys import os import mitogen.master def cleanup(file): try: os.unlink(file) except FileNotFoundError: pass def foo(file): atexit.register(cleanup, file) with open(file, 'wb') as f: f.truncate()...
An experiment to test my belief about how this patch will behave. The following code is `fork_it.py` a simplified version of the first stage ```python #!/usr/bin/env python3 import os import...
That code should probably prefer io module, rather than fallback to it.
Possible data point, possible noisy test. In https://github.com/mitogen-hq/mitogen/actions/runs/20068591776/job/57565192791 ` testing 1356c4393c65bb3c3df857fe8f985c8063f73fa5 with timeout=10 one failure occured, only on u2204 py27-m_mtg ``` ====================================================================== FAIL: test_stage (first_stage_test.CommandLineTest) ---------------------------------------------------------------------- Traceback (most recent call...
I skipped LPython on macOS and used Linux instead. Feel free to close this with impunity. Thanks, Alex
This looks like an upstream Ansible issue to me. I can reproduce it without Mitogen, e.g. ```yaml - hosts: d13.lan gather_facts: false vars: ansible_python_interpreter: python3 tasks: - file: path: /tmp/mitogen-issue1250...