Repository navigation
Conversation
The report was cut to the server's 10 MB limit by keeping its first bytes, which dropped the most recent device log entries and every section after the log. Keep the first 1 MB (build details and device state) and fill the rest from the end, cutting at line breaks.
The issue server now accepts attachments up to 20 MiB. Screenshots keep the 10 MB limit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Send to the Loop Developers caps the diagnostic report at the server's 10 MB per-file limit by keeping its first bytes. The device log is in the middle of the report, oldest entries first, so a busy log (Tandem history streaming plus G7, for example) pushed out the most recent entries along with every section after the log: watch, status extension, loop data, the glucose/carb/dose stores and notifications. A report about something that just happened ended days earlier.
When the report is over the limit, it now keeps the first 1 MB (build details and device state) and fills the rest from the end of the report, with a
[… older entries removed to fit the size limit …]marker between. Both cuts fall on line breaks, so the text stays valid UTF-8. Reports under the limit are unchanged. Share a Diagnostic Report is unaffected; it has no cap.The diagnostic report's cap is also raised from 10 MB to 20 MB, matching the ingest server's new per-file limit (ps2/loop-analytics b78e6f9, now deployed). Screenshots stay at 10 MB.
Testing
fitted(_:toBytes:headBytes:)standalone: short input passes through unchanged; multi-byte input over the limit keeps its head and newest lines and stays valid UTF-8; a 15 MB input comes out at 9,999,972 bytes, keeping both its first and last sections, in 9 ms.dev has the same code; I can open a matching PR there if wanted.