Skip to content
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

Better error reporting #5266

Merged
merged 18 commits into from
Dec 26, 2024
Merged

Conversation

ibesora
Copy link
Collaborator

@ibesora ibesora commented Dec 24, 2024

This PR avoids suppressing any error that's not an abort error or a "Framebuffer not complete" error.
While doing that I found multiple instances of errors that were being thrown and swallowed across the codebase and had to fix some tests.

Launch Checklist

  • Confirm your changes do not include backports from Mapbox projects (unless with compliant license) - if you are not sure about this, please ask!
  • Briefly describe the changes in this PR.
  • Link to related issues.
  • Include before/after visuals or gifs if this PR includes visual changes.
  • Write tests for all new functionality.
  • Document any changes to public APIs.
  • Post benchmark scores.
  • Add an entry to CHANGELOG.md under the ## main section.

Copy link

codecov bot commented Dec 24, 2024

Codecov Report

Attention: Patch coverage is 75.92593% with 13 lines in your changes missing coverage. Please review.

Project coverage is 91.81%. Comparing base (f967780) to head (a1c5048).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
src/util/test/util.ts 57.14% 12 Missing ⚠️
src/ui/map.ts 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5266      +/-   ##
==========================================
- Coverage   91.84%   91.81%   -0.03%     
==========================================
  Files         281      282       +1     
  Lines       38856    38898      +42     
  Branches     6793     6818      +25     
==========================================
+ Hits        35686    35715      +29     
- Misses       3043     3055      +12     
- Partials      127      128       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ibesora ibesora requested a review from HarelM December 24, 2024 12:46
@ibesora ibesora marked this pull request as ready for review December 24, 2024 12:46
@HarelM
Copy link
Collaborator

HarelM commented Dec 24, 2024

One small nit picking left.

src/ui/map.ts Outdated
const globeRenderingChaged = this.style.projection.transitionState > 0 !== isGlobeRendering;
this.style.projection.setErrorQueryLatitudeDegrees(this.transform.center.lat);
this.transform.setTransitionState(this.style.projection.transitionState, this.style.projection.latitudeErrorCorrectionRadians);
const globeRenderingChaged = this.style.projection?.transitionState > 0 !== isGlobeRendering;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chaged should be changed, not fully related to this change obviously...

@ibesora ibesora merged commit d32542a into maplibre:main Dec 26, 2024
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants