Skip to content

fix(apple): Rewind files after fetching from objectstore#1924

Merged
jjbayer merged 5 commits intomasterfrom
fix/apple-download-rewind
Apr 14, 2026
Merged

fix(apple): Rewind files after fetching from objectstore#1924
jjbayer merged 5 commits intomasterfrom
fix/apple-download-rewind

Conversation

@jjbayer
Copy link
Copy Markdown
Member

@jjbayer jjbayer commented Apr 13, 2026

Downloads from objectstore did not rewind the File object after downloading, leading to seemingly empty crash reports. This did not cause an issue for minidumps because they are mapped as ByteView.

Follow-up: Use the existing download service (#1928).

Fixes #1884.

use crate::{assert_snapshot, read_fixture, setup_service, symbol_server};

#[tokio::test]
async fn test_attachment_download() {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

There's a similar test in process_minidump.rs, but apple crash report downloads had no test coverage.

Without the fix in attachments.rs, this test fails with the same empty stack trace as we saw in #1884.

Comment thread crates/symbolicator-native/src/symbolication/attachments.rs Outdated
Comment thread crates/symbolicator-native/tests/integration/process_apple.rs Outdated
@jjbayer
Copy link
Copy Markdown
Member Author

jjbayer commented Apr 14, 2026

I split out the refactor to #1928 because it failed sentry tests for minidumps.

@jjbayer jjbayer marked this pull request as ready for review April 14, 2026 08:04
@jjbayer jjbayer requested a review from a team as a code owner April 14, 2026 08:04
@loewenheim
Copy link
Copy Markdown
Contributor

This deserves a changelog entry.

Copy link
Copy Markdown
Member

@Dav1dde Dav1dde left a comment

Choose a reason for hiding this comment

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

Test Coverage 🙏

@jjbayer jjbayer enabled auto-merge (squash) April 14, 2026 10:53
@jjbayer jjbayer merged commit 4729244 into master Apr 14, 2026
25 checks passed
@jjbayer jjbayer deleted the fix/apple-download-rewind branch April 14, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uploading iOS crash reports with send-envelope no longer works

3 participants