From f960716483314b4399e6c7859b69e604ec68a90d Mon Sep 17 00:00:00 2001 From: yilsem Date: Sat, 12 Sep 2026 12:17:16 +0300 Subject: [PATCH] test(mobile): verify Windows host ancestry and 0.1.4 runtime integration --- apps/mobile/README.md | 7 +++++++ tests/tui_gateway/test_compute_host.py | 7 ++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/mobile/README.md b/apps/mobile/README.md index 4f78e0d..82b18b5 100644 --- a/apps/mobile/README.md +++ b/apps/mobile/README.md @@ -149,6 +149,13 @@ deterministik sağlayıcı kullanılır. Aynı görev ikinci defa gönderildiği geçmişinde yalnız bir kullanıcı görevi oluşur. Gerçek Google/iş modeli kalite ve maliyet testi olarak sayılmaz. +12 Eylül 2026, 0.1.4 kaynak doğrulaması: zorunlu `scripts/run_tests.sh` +sarmalayıcısıyla `test_compute_host.py`, `test_compute_host_phase1.py` ve +`test_mobile_runtime_integration.py` birlikte çalıştırıldı. 3 dosyada 16 test +geçti, 0 başarısız; süre 32,9 saniye. Windows venv yönlendirici sürecinin +bildirdiği PID, gerçek süreç soy ağacı üzerinden doğrulanır. Bu koşu yalnız +yerel sentetik sağlayıcı kullanır, telefon donanımı veya Google kabulü değildir. + Henüz tamamlanmayanlar: - Karşılıklı cihaz kimliğinin gerçek Android ve paketlenmiş IDE arasında, diff --git a/tests/tui_gateway/test_compute_host.py b/tests/tui_gateway/test_compute_host.py index fa00197..0956268 100644 --- a/tests/tui_gateway/test_compute_host.py +++ b/tests/tui_gateway/test_compute_host.py @@ -7,6 +7,7 @@ import threading from pathlib import Path import pytest +import psutil from tui_gateway.compute_host import ComputeHost, HostSession @@ -49,7 +50,11 @@ def test_compute_host_line_json_seed_turn_interrupt(): try: hello = _read_json_line(out) assert hello["type"] == "hello" - assert hello["host_pid"] == proc.pid + # Native Windows venv python.exe is a redirector: Popen owns the shim + # while the actual Python child reports its own PID. Verify the real + # process ancestry instead of mistaking that topology for a host bug. + reported = psutil.Process(hello["host_pid"]) + assert proc.pid in {reported.pid, *(parent.pid for parent in reported.parents())} proc.stdin.write(json.dumps({"type": "session.seed", "sid": "s1", "request_id": "seed"}) + "\n") proc.stdin.flush()