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:
chengyongru authored and GitHub committed 2026-10-21 14:47:55 +08:00
1 parent 743c51e81f
commit f284749d2f
28 files changed
+518 -448

No files matched your search

+3 -1
View File
@@ -229,7 +229,9 @@ root = Path(sys.argv[1])
runtime = GatewayRuntime(paths=GatewayInstance.resolve(config_path=root / 'config.json').paths)
with runtime.foreground_instance(GatewayStartOptions(port=0)):
child = subprocess.Popen([sys._base_executable, '-c', 'import time; time.sleep(60)'])
(root / 'ready.json').write_text(json.dumps({'child': child.pid}), encoding='utf-8')
ready = root / 'ready.tmp'
ready.write_text(json.dumps({'child': child.pid}), encoding='utf-8')
ready.replace(root / 'ready.json')
time.sleep(60) # Models a blocked event loop that cannot service the kernel event.
"""