ci: reduce Python test overhead and Windows latency (#6357)
* test: merge overlapping semantic contract coverage Consolidate the six confirmed NAN-310 overlap groups while preserving replay, usage, generation kwargs, archive metadata, inspect fields, and subagent crash/redelivery assertions. * test: lighten history seeds and layer runner progress rules * ci: defer test storage setup and record phase timings Close each listener-owned binary bridge before waiting for its TCP server; retain active upload and undecided-connection regressions. Avoid consuming readiness twice and run the repository import scan once in its static gate. NAN-310. * test: scope filesystem mocks and observe consumed socket prefixes * test: publish subprocess readiness files atomically * ci: isolate external tool discovery and use three Windows workers
This commit is contained in:
1 parent
743c51e81f
commit
f284749d2f
28 files changed
+518
-448
No files matched your search
@@ -211,11 +211,12 @@ def test_atomic_write_ignores_unsupported_directory_fsync(
|
||||
def fake_close(fd: int) -> None:
|
||||
assert fd == dir_fd
|
||||
|
||||
monkeypatch.setattr("os.open", fake_open)
|
||||
monkeypatch.setattr("os.fsync", fake_fsync)
|
||||
monkeypatch.setattr("os.close", fake_close)
|
||||
with monkeypatch.context() as patch:
|
||||
patch.setattr("os.open", fake_open)
|
||||
patch.setattr("os.fsync", fake_fsync)
|
||||
patch.setattr("os.close", fake_close)
|
||||
|
||||
CronService._atomic_write(store_path, '{"version": 1, "jobs": []}')
|
||||
CronService._atomic_write(store_path, '{"version": 1, "jobs": []}')
|
||||
|
||||
assert store_path.read_text(encoding="utf-8") == '{"version": 1, "jobs": []}'
|
||||
assert list(store_path.parent.glob("*.tmp")) == []
|
||||
|
||||
Reference in new issue
Block a user