Skip to content

bundle pull -v: per-entry progress and completion lines count range-dedup spliced bytes as downloaded #2189

Closed

Description

@yigitdot

Observed

Testnet run, 2026-09-28: decdn -v bundle pull --hash ea8ae18f… --namespace 1 --exclude 'openai-gpt-oss-20b/metal/*' -o ~/openai-chunked.

Entry openai-gpt-oss-20b/original/model.safetensors (02bd4845…, 12.82 GiB) is range-deduped against the three model-0000x-of-00002.safetensors siblings. The progress bar is correct: it shows 999.75 MiB (11.84 GiB), reaches 999.75 MiB/999.75 MiB … pending siblings…, and the run summary says downloaded 14.8 GB → reconstructed 27.5 GB / range-dedup: spliced 12.7 GB from disk.

The -v lines for the same entry measure against the whole blob instead:

02bd4845…: 888.88 MiB of 12.82 GiB (5.73 MiB/s, ETA 36 minutes)
bundle pull: 02bd4845…: 12.82 GiB in 217.5s (60.33 MiB/s)

About 1 GiB of that entry crossed the network. The 36-minute ETA never happens, and the link never did 60 MiB/s for this entry.

Cause

  • drive_floor (crates/cli/src/commands/fetch.rs:2227) logs landed of total and fmt_eta(total - landed, bps), where total is the whole blob size (self.total_bytes, fetch.rs:2344), not the bytes this drive has to fetch. On a range-dedup drive the ETA assumes the spliced ranges still need downloading.
  • log_entry_done (crates/cli/src/commands/bundle_pull.rs:2950) takes both the size and the rate from the staging file length, which includes spliced bytes.

Impact

No billing or correctness effect. But these -v lines are what an operator reads to tell slow entries from fast ones (#2120), and on any range-deduped entry they report a wrong ETA and an inflated rate.

Expected

Per-entry lines measure the bytes this entry downloads, and report spliced bytes separately, e.g. bundle pull: 02bd4845…: 12.82 GiB in 217.5s (0.98 GiB downloaded at 4.6 MiB/s, 11.84 GiB spliced from disk).

🤖 Generated with Claude Code

Activity

  1. added
    kind:bug
    area:cli
    rust
    prio:low
    on Sep 28, 2026
  2. added a commit that references this issue on Sep 28, 2026
  3. yigitdot commented on Sep 28, 2026

    @yigitdot
    ContributorAuthor

    A third counter to fold into the fix, seen on a resume run (testnet, 2026-09-28): the summary's downloaded figure also counts a .partial prefix resumed from an earlier run.

    Re-pull of metal/model.bin (baa10b83…, 12.81 GiB) after an interrupted earlier attempt: 3.70 GiB spliced from disk, a 1.46 GB .partial resumed, ~8.3 GB actually transferred this run — summary said downloaded 9.7 GB. The behavior is documented (PullReport doc, crates/cli/src/commands/bundle_pull.rs:1075: "it counts a .partial prefix resumed from an earlier run"), but it contradicts the same doc's definition of downloaded as "content bytes paid for": the resumed prefix was paid by the earlier run, not this one. A resume run therefore overstates what it paid.

    Suggested shape alongside the per-entry fix: downloaded = bytes fetched this run only, with resumed reported separately (as spliced_bytes already is).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clikind:bugprio:lowrust

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions