Skip to content

Tests fail on Chrome 150: floating point differences in reprojection results #12604

Closed

Description

@offtherailz

Description

Chrome 150 returns slightly different results (1 ULP) for Math transcendental functions, as allowed by the ECMAScript spec. 4 tests assert exact floating point equality on reprojected coordinates and fail; Chrome 149 passes. Failures look random on CI because GitHub is rolling out runner images with Chrome 150 gradually.

Failing tests:

  • test getWMSBoundingBox — web/client/utils/__tests__/CoordinatesUtils-test.js
  • should create a request with empty features — web/client/utils/mapinfo/__tests__/arcgis-test.js
  • toWMC — web/client/utils/ogc/__tests__/WMC-test.js
  • annotationsToGeoJSON with length and area measures — web/client/plugins/Annotations/utils/__tests__/AnnotationsUtils-test.js

Example: miny: 43.70759642778743 (Chrome 150) vs 43.70759642778742 (fixture, Chrome 149).

How to reproduce

  • Run npm test on master with Chrome 150

Expected Result

Tests pass on any Chrome version.

Current Result

4 tests fail with last-digit mismatches. Reproduced locally on Chrome 150 with values identical to CI.

  • Not browser related
Browser Affected Version
Chrome 150 (headless)

Other useful information

Fix: compare coordinates with tolerance instead of exact equality. Ready on branch fix_fp_tests_chrome150.

Activity

  1. self-assigned this
    on Jul 8, 2026
  2. added a commit that references this issue on Jul 8, 2026
    24a8bcb
  3. added a commit that references this issue on Jul 9, 2026
    a0d89c8
  4. added a commit that references this issue on Jul 9, 2026
    643d689
  5. self-assigned this
    on Jul 9, 2026
  6. added 2 commits that reference this issue on Jul 16, 2026
    f11cd57
    cfed8eb
  7. added a commit that references this issue on Aug 19, 2026
    55b47d2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions