[docs] Coyhaique: Review, lesson, and the Node gap narrowed

This commit is contained in:
2026-11-17 18:49:28 +01:00
parent 96ac78d079
commit 103283daaa
4 changed files with 68 additions and 2 deletions
+14
View File
@@ -83,3 +83,17 @@ that was imagined, not the one that was built.
**How to apply it.** Before acting on a predicted trap, write the test that would show it, run it
against the built app, and fix what fails. Then rewrite the trap's row with what was measured.
## Data built against a runtime's time zones goes stale when the runtime changes
**What happened.** On 2026-11-17 Node went from 22.11 to 22.23.4 and a test found a time zone
(America/Coyhaique) with no town guess. Rebuilding the town list then showed far worse: Santiago had
sat on a southern zone's clock since the first build, because Natural Earth files it under
America/Sao_Paulo and the build trusted any zone whose clock matched one of the country's own.
**Why it bit.** A build step that consults `Intl` bakes the runtime's time zone data into a file. An
upgrade changes the answers silently; only a test that asks *every* zone notices, and then the whole
derivation deserves a second look, not just the one zone.
**How to apply it.** After a Node upgrade, run the content tests first. When generated data changes,
diff it item by item (here: every town whose zone moved) and explain each change in the review.