Skip to content

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

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 getWMSBoundingBoxweb/client/utils/__tests__/CoordinatesUtils-test.js
  • should create a request with empty featuresweb/client/utils/mapinfo/__tests__/arcgis-test.js
  • toWMCweb/client/utils/ogc/__tests__/WMC-test.js
  • annotationsToGeoJSON with length and area measuresweb/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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions