You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This isn’t necessarily a showstopper, since the navigation SDK uses Polyline encoding by default instead of GeoJSON. However, we should find a way to get performance back to within the same ballpark as it was before adopting Codable. If it’s already in the same ballpark, then we should increase the timeout and also add a performance unit test to make any runtime changes more apparent.
I’m not sure if equality comparisons are contributing to the test’s flakiness, but we could improve equality performance by storing Polyline-encoded representations of Route.shape and RouteStep.shape and comparing those strings instead of the full LineString structs.
Locally, testGeoJSON() takes a little over a second with a 10% standard deviation, much less than the 5-second timeout. I’m getting suspicious that this is something other than a performance issue.
Fixed for now in #404. If it is a race condition, we can revisit it when it comes up in some other form, but this end-to-end test isn’t a good vehicle for understanding any concurrency issue.
V5Tests.testGeoJSON()
has been failing occasionally for months, but ever since #382 landed, it has been failing much more frequently:This is most likely a symptom of the Codable performance issue raised in #221 (comment). The issue lies upstream in Turf, which this library relies on to decode LineStrings, and technically further upstream in the Swift standard library.
This isn’t necessarily a showstopper, since the navigation SDK uses Polyline encoding by default instead of GeoJSON. However, we should find a way to get performance back to within the same ballpark as it was before adopting Codable. If it’s already in the same ballpark, then we should increase the timeout and also add a performance unit test to make any runtime changes more apparent.
/cc @mapbox/navigation-ios @frederoni
The text was updated successfully, but these errors were encountered: