Repository navigation
fix(ci): unbreak the Windows and macOS unit-test smoke jobs on every PR - #4562
Conversation
Every open PR failed "Unit Tests (Windows smoke)" and "(macOS smoke)" on code already on main. Those jobs run only on PRs, so main stayed green. - macOS: edit_impact searched callers with `\b` and `\s` in git grep -E, which macOS's regex does not support, so it found no callers there. It now uses POSIX classes, which every git grep accepts. - Windows: test_store asserted POSIX mode 0600; Windows has no mode bits, and the store's ACL is tested separately in the same file.
|
Verdict: Approve This fixes the two smoke-job failures every PR inherits from main, and the macOS half is a real bug fix: the edit-impact check could not find callers there, because macOS Real-world evidenceN/A: no evidence bundle was produced. This PR touches CI and an internal tool helper, with no CLI, API, MCP or Agent UI surface. I ran both new patterns through a real 🔍 Technical detailsIssues found 🟢 No unit test pins the boundary semantics ( 🟢 Comment slightly overstates coverage ( Strengths
|
…md#4662) Every open PR shows these two failures; this clears them. The macOS one is fixed here; the Windows one is fixed by amd#4585, so the smoke jobs go green once both merge. - **macOS, `test_memory_turn_recall`:** an audio test imported the Whisper ASR module, and that import loaded torch. Once torch is loaded, macOS has two OpenMP runtimes in the process (torch's and faiss's), so memory recall refuses every faiss search for the rest of the run. torch and whisper are now imported only when an ASR is actually created. The recall test runs and passes; it isn't skipped. amd#4580 handles this failure by skipping the test, so drop that half of amd#4580 when this merges. - **Windows, `test_resolves_direct_shebang_posix`:** the test faked Linux by patching `sys.platform` for the whole process. pyfakefs teardown then took the POSIX path and called `os.getuid`, which doesn't exist on Windows. amd#4585 now patches only the uninstall module's view of the platform, so this PR doesn't touch it. The macOS failure dates from amd#4061 (Sep 28), which added the recall test after the torch-loading audio test from amd#3616. The smoke job runs with `-x`, so earlier failures hid it until amd#4562 fixed those on Oct 2. ## Test plan - [x] New `test_importing_whisper_asr_does_not_load_torch` fails on main and passes here - [x] Locally on macOS, all audio and memory tests in CI order: 433 passed, `test_memory_turn_recall` included - [x] Locally on macOS, every unit test up to and including the recall test: torch never loads, and recall passes. The 13 failures are local env noise (CLI binaries not on PATH, pip frontends); none import the audio module - [ ] CI: "Unit Tests (macOS smoke)" passes `test_memory_turn_recall.py` Co-authored-by: Kalin Ovtcharov <[email protected]> Co-authored-by: Kalin Ovtcharov <[email protected]>
Every open PR fails the Windows and macOS unit-test smoke jobs on code that is already on main. Those jobs only run on PRs, so main looks green while each PR inherits two red checks. After this, the smoke jobs only fail on what a PR actually changed.
git grep -Ehas no\bor\s. The patterns now use POSIX classes, so this is a real bug fix for macOS users, not just a test fix.0600. Windows has no mode bits, and the store's Windows ACL is already tested in the same file.Test plan
tests/unit/agents/test_edit_impact.pytests/unit/engineering/test_store.pylevels(anddef levels (and skipalevelspython util/lint.py --black --isort