|
9 | 9 | # Runs (in order): |
10 | 10 | # 1. Full build (./build_github_pages.sh). Regenerates generated/ |
11 | 11 | # (object_library, svg_manifest, scenes, protocols), precomputes the |
12 | | -# static scene layout, type-checks, bundles into dist/, and renders |
13 | | -# generated/scene_render_stats/<scene>.stats.json. That render step |
14 | | -# (node tools/scene_to_png.mjs --all, run internally by |
15 | | -# build_github_pages.sh) is REQUIRED before validate: SCENE-LINT's |
16 | | -# geometry checks read the stats files, and without them validate |
17 | | -# reports missing_render_evidence instead of a real geometry result. |
18 | | -# 2. TypeScript gate (./check_codebase.sh: tsc, tsc --lint config, |
| 12 | +# static scene layout, type-checks, and bundles into dist/. |
| 13 | +# 2. Render scene statistics with Playwright |
| 14 | +# (node tools/scene_to_png.mjs --all). This is REQUIRED before |
| 15 | +# validation: SCENE-LINT's geometry checks read the stats files, and |
| 16 | +# without them validation reports missing_render_evidence instead of a |
| 17 | +# real geometry result. |
| 18 | +# 3. TypeScript gate (./check_codebase.sh: tsc, tsc --lint config, |
19 | 19 | # eslint, prettier --check, node --test). |
20 | | -# 3. Python tests (pytest tests/). |
21 | | -# 4. Content validation (bash run_validate.sh), which reads the renderer |
22 | | -# evidence produced in step 1. |
| 20 | +# 4. Python tests (pytest tests/). |
| 21 | +# 5. Content validation (bash run_validate.sh), which reads the renderer |
| 22 | +# evidence produced in step 2. |
23 | 23 | # |
24 | 24 | # Exit code is 0 only when every step passes. A step failure prints a |
25 | 25 | # summary and exits non-zero immediately; it does not mask or skip later |
@@ -132,17 +132,19 @@ trap print_summary EXIT |
132 | 132 | SUMMARY_ENABLED=1 |
133 | 133 |
|
134 | 134 | # 1. Full build: regenerates generated/, precomputes layout, type-checks, |
135 | | -# bundles dist/, and renders generated/scene_render_stats/ (required |
136 | | -# render evidence for run_validate.sh's SCENE-LINT stage below). |
| 135 | +# and bundles dist/. |
137 | 136 | step_run build bash build_github_pages.sh |
138 | 137 |
|
139 | | -# 2. TypeScript gate (typecheck, typecheck:lint, lint, format:check, test:node). |
| 138 | +# 2. Render evidence for run_validate.sh's SCENE-LINT stage below. |
| 139 | +step_run render_stats node tools/scene_to_png.mjs --all |
| 140 | + |
| 141 | +# 3. TypeScript gate (typecheck, typecheck:lint, lint, format:check, test:node). |
140 | 142 | step_run typescript ./check_codebase.sh |
141 | 143 |
|
142 | | -# 3. Python tests. |
| 144 | +# 4. Python tests. |
143 | 145 | step_run pytest pytest tests/ |
144 | 146 |
|
145 | | -# 4. Content validation against generated evidence. |
| 147 | +# 5. Content validation against generated evidence. |
146 | 148 | step_run validate bash run_validate.sh |
147 | 149 |
|
148 | 150 | # All steps complete; summary prints via EXIT trap. Exit 0 (failure paths |
|
0 commit comments