-
-
Notifications
You must be signed in to change notification settings - Fork 739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix render test false negative #4864
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4864 +/- ##
==========================================
- Coverage 87.66% 86.95% -0.71%
==========================================
Files 265 265
Lines 37937 37937
Branches 2407 2485 +78
==========================================
- Hits 33257 32988 -269
- Misses 3608 3828 +220
- Partials 1072 1121 +49 ☔ View full report in Codecov by Sentry. |
I think we should not merge a failing render test though, we should update the image or fix the root cause of this test as oart of this PR. |
@NathanMOlson any updates on this PR? Can we move it forward somehow? |
This PR can be moved forward by fixing #4859. I don't know how to fix #4859. Also, a better solution than the one in this PR would be to update the pixelmatch library to include the changes here: mapbox/pixelmatch#142. These changes have been approved by the maintainer, but have not been merged because they add processing time. I do not see a way to fix the pixelmatch library without adding processing time. In my opinion, MapLibre would be better served with a version of pixelmatch that detects transparency differences, even if it is slightly slower. |
In the past, a similar problem was solved by adding a border around the tiles to stitch different zoom level for tiles when terrain is on. |
Fixes #4862. Merging this change will cause the
terrain/fog
render test to fail (as it should), due to #4859.The pixelmatch library does not detect a difference between transparent and white. To work around this, the horizon and fog colors have been changed to not be white.