Commit 1615b89
authored
ci(sandbox): MCP-3236 integration tests + workflow + snap-docker harness (MCP-34.5) (#782)
* qa(sandbox): MCP-3236 integration tests + CI workflow + snap-docker harness
- .github/workflows/sandbox-integration.yml: dedicated CI job on ubuntu-latest
(kernel 6.8, Landlock ABI 3) — runs sandbox package tests, upstream/core
wrapper integration tests, scanner isolation-mode degradation tests, binary
build, and server startup probe with isolation.mode=sandbox
- docs/development/sandbox-snap-docker-harness.md: manual harness for Ubuntu
snap-docker hosts — negative baseline (mode=docker → AppArmor failure
reproducing GH #71) and positive case (mode=sandbox → Landlock confinement,
scanner graceful degradation)
- docs/qa/mcpproxy-qa-mcp3236-2026-06-29.html: HTML QA report (10/11 pass,
1 skip — linux-only Landlock tests skip on darwin as designed)
Satisfies exit criterion #4 of MCP-34 (MCP-3236).
* ci(sandbox): poll for running:True in health probe (fix MCP-3236 startup race)
The 'Verify server health' step checked /api/v1/status once, immediately after
the start step's readiness loop broke on the first HTTP-200 — but the server
responds to /status before it finishes warming up (Bleve index, capability
registration), so 'running' was still False and the step failed on CI.
Retry for running:True up to 30s before failing.
Related #71
* ci(sandbox): check status.phase==Ready, not nonexistent running field
The health probe checked d.get('running') in /api/v1/status, but the response
shape is {"status": {"phase": "Ready"}} — there is no top-level 'running'
field, so the check was always False even though the server was up and serving.
Poll for status.phase == Ready instead.
Related #71
* ci(sandbox): poll /readyz (controller-backed) for readiness
Parsing /api/v1/status JSON was fragile (the status object is nested and the
healthy phase is 'Running', not 'Ready'). /readyz is the canonical readiness
endpoint — controller-backed, returns 200 when IsReady() is true — so poll it
for 200 instead. Structure-independent and idiomatic.
Related #71
* ci(sandbox): use docker_isolation.mode (global key) + assert sandbox actually resolved
CodexReviewer caught the probe was vacuous: the config used a top-level
"isolation" key, but the GLOBAL isolation mode is docker_isolation.mode
(per-server isolation is the only 'isolation' key). The wrong key was silently
ignored, so the server started with isolation_mode=none — the 'sandbox' probe
never tested sandbox.
- workflow + harness: isolation -> docker_isolation for the global mode
- workflow: assert the server log shows isolation_mode=sandbox (fail if not),
so a future wrong-key regression can't pass vacuously
- harness positive case now actually runs the stdio 'everything' server under
Landlock (inherits global sandbox); negative baseline under docker (AppArmor)
Related #711 parent 72a51c1 commit 1615b89
3 files changed
Lines changed: 840 additions & 0 deletions
File tree
- .github/workflows
- docs
- development
- qa
| 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 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
0 commit comments