Commit f54fcb8
Add Mac M4 reviewer aid for PR-B1: smoke runner + script
Two artifacts that let a reviewer (especially on Mac M4 where pure-
Linux CI is opaque) verify PR-B1's gRPC surface end-to-end on their
own hardware, not by reading the diff.
scripts/smoke_grpc_runtime.py
Single-file async smoke that walks 10 RPC scenarios:
1. CreateSession -> success
2. GetSessionInfo -> initial zero state
3. CloseSession -> final history length 0
4. CloseSession again on the same id -> NOT_FOUND
5. GetSessionInfo on a closed id -> NOT_FOUND
6. AppendTokens (any id) -> UNIMPLEMENTED [PR-B2]
7. Generate (any id) -> UNIMPLEMENTED [PR-B3]
8. CreateSession with eos + client_label -> success, fields recorded
9. CreateSession on pool slab #1 of 1 -> success
10. CreateSession when pool exhausted -> RESOURCE_EXHAUSTED
Each step prints a single JSON-Lines record with expected vs observed
outcome + structured detail. The exit code is 0 iff every step
matches its expected outcome. Optional --report writes a structured
JSON suitable for committing to results/platform-tests/.
Pure asyncio + grpcio; no torch dependency, so it runs on any host
that has the project's gRPC stack — including the dev environment
at https://github.com/FluffyAIcode/Kakeya-LLM-Inference-engine/runs.
scripts/review_pr_b1_on_mac.sh
One-shot Mac-M4-targeted runner. Produces under
results/platform-tests/:
pr-b1-mac-grpc-tests-<unix>.json (pytest + coverage)
pr-b1-mac-grpc-tests-<unix>.junit.xml
pr-b1-mac-grpc-tests-<unix>.coverage.xml
pr-b1-mac-grpc-smoke-<unix>.json (smoke runner output)
The reviewer commits these back to the PR branch so the PR has
on-branch evidence of 'this works on Apple Silicon, observable at
the wire level'. NOT a CI-gating script — Linux CI (which is
already green on this PR) remains the binding gate per ADR 0008
\u00a79's Linux-only-path carve-out.
Local verification on Linux dev VM:
scripts/smoke_grpc_runtime.py runs cleanly: 10/10 steps pass.
scripts/review_pr_b1_on_mac.sh's pytest step segfaults on this
particular VM due to a torch-2.12-vs-Python-3.12 coverage tracer
conflict; CI (torch within requirements.txt range >=2.4,<3.0)
and Mac M4 (the user's torch install) both run pytest cleanly,
so this is a known-VM-only artifact. The smoke step works
independently and is the higher-signal review aid anyway.
Co-authored-by: FluffyAIcode <FluffyAIcode@users.noreply.github.com>1 parent e31841b commit f54fcb8
2 files changed
Lines changed: 471 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
0 commit comments