Repository navigation
fix(tests): keep two backend tests independent of runner tz and fonts - #261
Merged
Merged
Conversation
- Date parity: skip zone/anchor pairs where Postgres and Node tz databases disagree on offsets (tzdata 2026f keeps Havana on UTC-4 on 1 Nov 2026), log what was skipped, and fail if more than two drift. - PDF.js paint: render with the bundled standard fonts and the canvas Path2D, as imports/pdf.ts does, instead of runner system fonts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Backend CI fails on every PR into
feat/web-rebuildsince the runner environment changed after 3 Nov. No app code changed.saved-views.test.tsdate parity: CI'spostgres:17-alpinenow ships tzdata 2026f, where Cuba stays on UTC−4 on 1 Nov 2026. Node's ICU still falls back. The test now compares Postgres and Node offsets around each anchor, skips only the pairs that disagree, logs them, and fails if more than two drift.pdf-preview-runtime.unit.test.tspaint: the test drew non-embedded Helvetica from runner system fonts, and the new Ubuntu image has none. It now uses PDF.js's bundled standard fonts plus the canvasPath2D, the same setup asimports/pdf.ts.Product note: a Havana user's "today" can differ between server filtering and the client until Node's tz data catches up.
Checks and limits
5d9ee3…; onlyAmerica/Havana 2026-11-01skipped) and 2026e (old digest266d3c…; nothing skipped): 18/18.node:22-bookworm-slimcontainer, the new PDF setup paints 520 dark pixels (the old setup painted 0).AI usage
Workspace
repo/, and read the relevant project guides.🤖 Generated with Claude Code