Skip to content

Preserve NaN payloads in box intersections - #3047

Merged
alixander merged 2 commits into
masterfrom
fix/box-nan-payload
Nov 26, 2026
Merged

alixander merged 2 commits into
masterfrom
fix/box-nan-payload

Conversation

@alixander

@alixander alixander commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Human


AI

Preserve the bit-for-bit contract between FirstBoxIntersection and the first result from geo.Box.Intersections when computing a box corner produces a NaN. The optimized segment routine can preserve only the coordinates it receives. In the failing Linux/amd64 race build the box calculation had already selected a different NaN payload.

The named regression preserves all eight input bit patterns from the weekly race failure and compares the hit and both output coordinates against the reference on the running platform. PR CI runs the geometry package alongside TALA under the race detector, including the existing 400,000-case comparison.

On the test-only commit, the Ubuntu/amd64 race check reproduced the exact Y-coordinate mismatch. The same check with the fix passed. Both ordinary hits and misses still measured zero heap allocations.

  • sent from alixander's Codex

@alixander
alixander marked this pull request as ready for review November 26, 2026 02:46
@alixander
alixander merged commit 6b97236 into master Nov 26, 2026
20 checks passed
@alixander
alixander deleted the fix/box-nan-payload branch November 26, 2026 08:52
alixander added a commit that referenced this pull request Nov 26, 2026
Master removed isometric diagram rendering (#3048) and preserves NaN
payloads in box intersections (#3047).

Take master's deletions, including the isometric files this branch had
simplified, and drop what this branch added for isometric in D2.js: the
renderIsometric stub, the 400 error for isometric: true, and the notes
about it in the README, the type definitions and both changelogs. The CI
step that runs tests with xsort_small no longer names
d2renderers/d2isometric. The changelog keeps master's wording of the font
cache entry: D2.js registers its bundled fonts and uses those caches too.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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