-
-
Notifications
You must be signed in to change notification settings - Fork 10
feat(debug-files): honor server upload limits and add --derived-data #1140
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
Open
BYK
wants to merge
1
commit into
main
Choose a base branch
from
byk/feat/debug-files-upload-limits
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partial size-drop in
filterBySize(e.g. oversized source bundles) silently exits 0In
uploadDebugFiles,filterBySizedrops any DIF whosecontent.lengthexceedseffectiveMaxFileSizewith only alog.warn. Theaccepted.length === 0guard that raisesValidationErroronly fires when every file is dropped. When some files are accepted and only others are dropped — most notably the in-memory source bundles produced by--include-sources, which bypass the scan-timeprepareDifssize gate — the dropped files never enterchunked, sobuildResultsproduces no result entry for them.doUploadonly flags results withstate === "error" || "not_found", sofailures.lengthstays 0,setExitCode(1)is never called, and the command prints "Uploaded N debug file(s)" and exits 0 with no indication the source bundle was dropped.Evidence
filterBySize(debug-files.ts:309-327) drops oversized DIFs with onlylog.warnandcontinue, returning the remaining subset.accepted.length === 0guard (debug-files.ts:391) only throwsValidationErrorwhen all files are dropped; a partial drop passes through silently.buildResults(debug-files.ts:288) maps only overchunked, built fromaccepted, so dropped files have no entry in the returned results.--include-sourcesbundles are pushed bybuildDifListafterprepareDifsran its scan-time gate, so they reachfilterBySizeas the only files that can be oversized in the real-upload path; if a bundle exceeds the limit while its parent DIF does not, it is dropped silently.doUpload(upload.ts) computesfailuresonly fromstate === "error" || "not_found"; with no entry for the dropped bundle,failures.lengthis 0 andsetExitCode(1)is never invoked, so the command exits 0.Identified by Warden find-bugs · 9LL-87A