fix(ci): master Test workflow green on Python 3.12 and ubuntu-26.04
🧪 Test / 🧪 Lock + lint (push) Waiting to run

- CI installs PyYAML (new dependency group test) so the staged-diff secret rules load; the Update workflow also installs the orchestrator requirements
- operator.py: termios.IUTF8 falls back to 0o40000 on Python 3.12, where the terminal prompt crashed with AttributeError
- operator.py: the run preview trusts filters of the system and global git config (git-lfs on runner images) and stays off for repo or command filters, and when git cannot name a filter's scope
- test_radio feeds the listener its stdin through an own pipe, since 3.12 communicate() flushes a closed proc.stdin
- test_hub_match_content gives the runner a MEDUSA rules home instead of the host's
- test_queue_hung uses a script named docker, since a multicall sleep refuses that name

🎯 Fix: 93 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 90
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-25 09:20:36 +00:00
1 parent d3bc54f401
commit 888ebb40af
8 files changed
+71 -25

No files matched your search

+11 -11
View File
@@ -109,14 +109,20 @@ class TestRadio(unittest.TestCase):
def _pidfile(self, sid: str) -> Path:
return self.root / "radio-listen" / f"{sid}.pid"
def _listen(self, sid: str) -> subprocess.Popen:
def _spawn(self, sid: str) -> subprocess.Popen:
reader, writer = os.pipe()
os.write(writer, json.dumps({"session_id": sid}).encode())
os.close(writer)
proc = subprocess.Popen(
[sys.executable, "-c", LISTENER, str(RADIO)],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, env=self._env(None),
stdin=reader, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, env=self._env(None),
)
os.close(reader)
self.addCleanup(self._stop, proc)
proc.stdin.write(json.dumps({"session_id": sid}))
proc.stdin.close()
return proc
def _listen(self, sid: str) -> subprocess.Popen:
proc = self._spawn(sid)
deadline = time.monotonic() + 10
while time.monotonic() < deadline and proc.poll() is None:
pidfile = self._pidfile(sid)
@@ -607,13 +613,7 @@ class TestRadio(unittest.TestCase):
_, victims = self._victims()
self.root.mkdir()
(self.root / "radio-listen").symlink_to(victims)
proc = subprocess.Popen(
[sys.executable, "-c", LISTENER, str(RADIO)],
stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, env=self._env(None),
)
self.addCleanup(self._stop, proc)
proc.stdin.write(json.dumps({"session_id": "s2"}))
proc.stdin.close()
proc = self._spawn("s2")
try:
code = proc.wait(timeout=10)
except subprocess.TimeoutExpired: