Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Runtime styling snapshotter tests fail intermittently on CI #291

Closed
1ec5 opened this issue Apr 30, 2020 · 4 comments · Fixed by #293
Closed

Runtime styling snapshotter tests fail intermittently on CI #291

1ec5 opened this issue Apr 30, 2020 · 4 comments · Fixed by #293
Assignees

Comments

@1ec5
Copy link
Contributor

1ec5 commented Apr 30, 2020

-[MGLMapSnapshotterTests testRuntimeStyling] has failed intermittently on CI ever since #189 (comment). I refactored a helper method to add another snapshotter test that was ultimately disabled; not sure why it causes this test to become unreliable though.

/cc @mapbox/maps-ios

@fabian-guerra
Copy link
Contributor

The current tests draws:
expectedImage as
expectedImage

actualImage_1 as an image with clear color
actualImage_1

/cc @1ec5

@1ec5
Copy link
Contributor Author

1ec5 commented May 1, 2020

I think the culprit is the changes in #189 to test #280. Instead of unconditionally looking at Null Island, the snapshotter is configured to snapshot whatever the style specifies as its default camera. But even in the runs that fail, the style finishes loading, the map transform finishes transitioning to the default camera, and mbgl::Map::Impl::onDidFinishRenderingMap() gets called (which would result in -[MGLMapViewDelegate mapViewDidFinishLoadingMap:] getting called in a map context).

@1ec5
Copy link
Contributor Author

1ec5 commented May 1, 2020

#293 works around the issue for now, since it’s frequently blocking builds. mapbox/mapbox-gl-native#16454 tracks the likely issue upstream in mbgl.

@captainbarbosa
Copy link
Contributor

This might be happening again...?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants