Repository navigation
fix(cli): measure bundle pull -v entry lines on downloaded bytes, not spliced ones - #2192
Merged
Merged
Conversation
… spliced ones (#2189) The drive's -v progress line and ETA now measure against the position the drive reaches (present + the range set's gaps, new decdn_client::range_set_reach) instead of the whole blob, so a range-dedup drive's ETA no longer counts the ranges it splices from disk. The entry completion line takes its rate from the bytes the entry paid for and reports spliced bytes separately. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…arget Correct the range_set_reach doc (the drive still reports against total_bytes), clarify the drive_floor target and entry-line docs, clamp the logged position to the target so a re-delivered tail never reads past 100%, name the hash in the target-sizing debug line, and pin range_set_reach to the concurrent drive's final reported position. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Code Coverage OverviewLanguages: Rust Rust / code-coverage/cargo-llvm-covThe overall line coverage in commit 3a1000b in the Show a line coverage summary of the most impacted files.
Updated |
…g 0 B Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ine tests Co-Authored-By: Claude Opus 5.5 <[email protected]>
… partial Co-Authored-By: Claude Opus 5.5 <[email protected]>
thiras
approved these changes
Sep 28, 2026
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.
Closes #2189.
Problem
On a range-deduped entry, the two
-vper-entry lines measured against the whole blob, so spliced bytes read as download:drive_floorloggedlanded of <whole blob>and an ETA forwhole - landed, although the drive never downloads the spliced ranges (36-minute ETA for a ~1 GiB download).log_entry_donetook its rate from the staging file length, spliced bytes included (60 MiB/s for a ~5 MiB/s link).Fix
decdn_client::range_set_reach(store, ranges): the position a range-set drive reaches once done (present content + the ranges' missing gaps), the same base + gapsdrive_range_lanesreports progress against.drive_watchedpasses it todrive_flooras the line's denominator and ETA base (and toEntryStalled). The whole-blob multi-source path is unchanged.pull_entry_untimedreturnsEntryBytes { paid, spliced }; the completion line takes its rate frompaidand, on a dedup entry, reports the split:bundle pull: <hash>: 12.82 GiB in 217.5s (0.98 GiB downloaded at 4.6 MiB/s, 11.84 GiB spliced from disk)A plain entry's line has the same shape as before.
Reporting only. No billing or correctness effect.
Tests
range_set_reach_counts_present_plus_the_ranges_gaps(fresh / sub-range / overlapping / resumed prefix).entry_done_line_*: plain rate, dedup split, zero-elapsed guard.cargo nextest run -p decdn-client -p decdn-cli: 1235 passed. Clippy--all-targets, fmt, andcargo doc -D warningsare clean.🤖 Generated with Claude Code