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

feat(dif): Fail debug-files upload when file is too big #2331

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Jan 2, 2025

Previously, we only logged an easy-to-miss warning when we had to skip uploading a debug file because it was too big. Now, we instead fail the entire upload loudly, to ensure users do not miss this important information.

Depends on:

Resolves #2313

@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review January 3, 2025 09:04
@szokeasaurusrex szokeasaurusrex marked this pull request as draft January 3, 2025 09:38
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/dif-too-big-error branch 2 times, most recently from d447e10 to 08d6e45 Compare January 3, 2025 10:17
@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review January 3, 2025 10:17
MockEndpointBuilder::new("GET", "/api/0/organizations/wat-org/chunk-upload/")
.with_response_file("debug_files/get-chunk-upload-small-max-size.json"),
)
.assert_cmd(vec!["debug-files", "upload", "tests/integration/_fixtures/SrcGenSampleApp.pdb"])
Copy link
Member Author

Choose a reason for hiding this comment

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

This file is about 11 KiB, exceeding the maximum size of 2 KiB

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/dif-too-big-error branch from 08d6e45 to bb06bc8 Compare January 3, 2025 10:21
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/dif-too-big-error branch from bb06bc8 to 7765932 Compare January 7, 2025 10:35
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/dif-validation-handle branch from 275c5ea to ad7e037 Compare January 7, 2025 10:37
Base automatically changed from szokeasaurusrex/dif-validation-handle to master January 7, 2025 11:32
Previously, we only logged an easy-to-miss warning when we had to skip uploading a debug file because it was too big. Now, we instead fail the entire upload loudly, to ensure users do not miss this important information.

Also, add tests to verify the new behavior.

Resolves #2313
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/dif-too-big-error branch from 7765932 to 7153e89 Compare January 7, 2025 11:34
@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) January 7, 2025 11:34
@szokeasaurusrex szokeasaurusrex merged commit 739bc00 into master Jan 7, 2025
14 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/dif-too-big-error branch January 7, 2025 11:41
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.

2 participants