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

cleanup: Make group saving/loading more forgiving with data errors #2466

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

JFreegman
Copy link
Member

@JFreegman JFreegman commented Dec 13, 2023

Rather than aborting the process on invalid group save data we either try to continue if possible, or abort the saving/loading instead of the entire process. This addresses #2426


This change is Reviewable

@JFreegman JFreegman added the cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature. label Dec 13, 2023
@JFreegman JFreegman added this to the v0.2.19 milestone Dec 13, 2023
Copy link

codecov bot commented Dec 13, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (55a7600) 71.60% compared to head (9b3c108) 71.52%.

Files Patch % Lines
toxcore/group_pack.c 36.36% 7 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2466      +/-   ##
==========================================
- Coverage   71.60%   71.52%   -0.09%     
==========================================
  Files          75       75              
  Lines       25189    25195       +6     
==========================================
- Hits        18036    18020      -16     
- Misses       7153     7175      +22     

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

Rather than aborting the process on invalid group save data we
either try to continue if possible, or abort the saving/loading
instead of the entire process
@JFreegman JFreegman merged commit 9b3c108 into TokTok:master Dec 14, 2023
52 of 53 checks passed
@JFreegman JFreegman deleted the group_save_asserts branch December 14, 2023 16:05
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Internal code cleanup, possibly affecting semantics, e.g. deleting a deprecated feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants