Commit af46fca
committed
fix(baseline): probe /api/stats for serve-smoke readiness instead of /actuator/health
The original baseline captured health=fail on both seed repos. Initial
hypothesis was that the 8s sleep was too short for Spring Boot + Neo4j
cold start. Live probing showed otherwise:
- /actuator/health returns HTTP 503 with body
{"groups":["liveness","readiness"],"status":"OUT_OF_SERVICE"}
at ALL times, even after the graph is fully loaded.
- /api/stats returns HTTP 200 within ~10-11s on both seeds, populated
with real graph data (691/1836 nodes/edges for petclinic, 224/297
for realworld-express).
The real bug is in GraphHealthIndicator, which flags the app as
OUT_OF_SERVICE despite a loaded graph. Filed as a separate known gap
for a future fix; out of scope for getting the baseline unblocked.
Changes to scripts/baseline/run-pipeline.sh:
- Poll /api/stats (30 x 2s = 60s budget) for readiness. /api/stats is
the public REST surface and returns iff the graph is loaded.
- Capture /actuator/health HTTP code + body as a diagnostic; do not
gate readiness on it.
- Truncate timings.txt at the start of each run so re-runs don't
accumulate stale entries.
- Summary JSON now reports stats_ok (real readiness) and health_raw
(diagnostic body) rather than health_ok.
BASELINE.md:
- Marks pipeline serve-smoke gap as RESOLVED with real timings + stats
for both seeds.
- Adds a new known gap for the GraphHealthIndicator 503 issue.1 parent fab34db commit af46fca
2 files changed
Lines changed: 42 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
230 | 240 | | |
231 | 241 | | |
232 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | | - | |
| 61 | + | |
| 62 | + | |
45 | 63 | | |
46 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
47 | 70 | | |
48 | 71 | | |
49 | 72 | | |
| |||
54 | 77 | | |
55 | 78 | | |
56 | 79 | | |
| 80 | + | |
57 | 81 | | |
58 | 82 | | |
59 | 83 | | |
60 | | - | |
61 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
62 | 87 | | |
63 | 88 | | |
64 | 89 | | |
0 commit comments