Commit 9c79110
committed
feat(ci): Phase 08 — JSON reporter + GitHub Actions workflow + badges
Closes the E2E test plan. Turns the local ba_e2e_test.py runner into a
CI-integrated quality gate that runs on every PR touching .agent/, docs,
or outputs/.
Changes:
1. ba_e2e_test.py — JSON reporter
- New emit_json() function with stable schema v1.0.0
- --json OUTPUT_PATH CLI flag
- Schema includes: $schema_version, fixture, repo_branch, repo_commit,
started_at, duration_ms, exit_code, verdict, totals, per-layer
checks with name/target/severity/message/duration_ms
- ensure_ascii=False so Vietnamese fixture strings survive round-trip
- Output is parseable by CI tooling or custom dashboards
- When --json is passed without --report, markdown goes to stdout
2. .github/workflows/e2e-skills.yml — quality gate workflow
- Triggers on PR + push to main/feat/** touching .agent/, sprint-spine,
workflow-cookbook, outputs/, or the workflow itself
- Python 3.11, actions/checkout@v4 with fetch-depth: 0 (ba_retro needs
git history)
- Runs full suite with --report + --json output
- Writes markdown report to GITHUB_STEP_SUMMARY for PR review UX
- Uploads reports/ as artifact (retention: 14 days)
- Posts sticky PR comment with the markdown report
(marocchino/sticky-pull-request-comment@v2)
- Fails the job only if verdict is FAIL or CRASH (warnings don't block)
- 10-minute timeout
- Zero external dependencies (stdlib only, matches ba_*.py convention)
3. README.md + README.vi.md — CI status badge
- GitHub Actions badge linked to the e2e-skills workflow
- Shows pass/fail state per branch
4. .gitignore — reports/ directory
- Add reports/ to ignore (CI runner output, per-run regenerated)
- plans/reports/ remains gitignored via existing plans/ rule
Verification:
- ba_e2e_test.py still compiles and runs green (270/272 pass, 1.8s)
- JSON schema smoke-tested: all 5 layers serialized, Vietnamese text
round-trips via ensure_ascii=False
- Workflow YAML has all required keys (name, on, jobs, steps,
actions/checkout, actions/setup-python) — validated via substring grep
- reports/test.md smoke test confirms reports/ is gitignored
- plans/reports/ negation pattern preserved (still gitignored via plans/)
Final E2E plan status: 8/8 phases complete.
First GH Action run will execute on next push. Badge will render once
the workflow runs at least once on a branch.
Known limitations (defer to v3.5):
- No trend tracking across runs (JSON history not persisted in CI)
- No branch protection rules (manual decision per team policy)
- No parallel layer execution (sequential is fast enough at 1.8s)
- No matrix testing across Python versions (3.11 pinned)1 parent 00032e8 commit 9c79110
File tree
5 files changed
+183
-1
lines changed- .agent/scripts
- .github/workflows
5 files changed
+183
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1210 | 1210 | | |
1211 | 1211 | | |
1212 | 1212 | | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
1213 | 1267 | | |
1214 | 1268 | | |
1215 | 1269 | | |
| |||
1300 | 1354 | | |
1301 | 1355 | | |
1302 | 1356 | | |
| 1357 | + | |
| 1358 | + | |
1303 | 1359 | | |
1304 | 1360 | | |
1305 | 1361 | | |
| |||
1308 | 1364 | | |
1309 | 1365 | | |
1310 | 1366 | | |
| 1367 | + | |
1311 | 1368 | | |
1312 | 1369 | | |
1313 | 1370 | | |
1314 | 1371 | | |
1315 | 1372 | | |
1316 | 1373 | | |
1317 | | - | |
| 1374 | + | |
1318 | 1375 | | |
1319 | 1376 | | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
1320 | 1383 | | |
1321 | 1384 | | |
1322 | 1385 | | |
| |||
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
18 | 24 | | |
19 | 25 | | |
20 | 26 | | |
| |||
0 commit comments