Skip to content

fix(grit-v2): REGION_CODES NameError in dataset-README generation#11

Merged
CooperBigFoot merged 1 commit into
mainfrom
fix/grit-v2-readme-regions
Jun 29, 2026
Merged

fix(grit-v2): REGION_CODES NameError in dataset-README generation#11
CooperBigFoot merged 1 commit into
mainfrom
fix/grit-v2-readme-regions

Conversation

@CooperBigFoot

Copy link
Copy Markdown
Owner

Stage 9 (_write_readme_fallback_segment_lines) iterated over an undefined `REGIONS` (typo for REGION_CODES, introduced by dfa33e9). This crashed the adapter at the very end of every full planetary build — after the data files and manifest were already written, so it does not corrupt output but does abort the run. Surfaced by the v0.3.0 GRIT rebuild.

One-word fix: REGIONSREGION_CODES. Proof (real failing path, no mock): _fallback_segment_lines({}) now returns - None instead of raising NameError. The published 0.3.0 dataset uses the hand-authored hosting/grit-hfx-v0.3.0/README.md, not this generated one, so the dataset itself is unaffected.

stage_9 -> _write_readme -> _fallback_segment_lines iterated over an undefined
`REGIONS` (introduced by dfa33e9); the constant is REGION_CODES. Crashed every
full build after the data + manifest were written. Proof: the function now
returns '- None' on empty input instead of raising NameError.
@CooperBigFoot CooperBigFoot merged commit 31582cb into main Jun 29, 2026
4 checks passed
@CooperBigFoot CooperBigFoot deleted the fix/grit-v2-readme-regions branch June 29, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant