Skip to content

fix(cli): bundle pull --exclude/--include pattern that matches no entry is silently ignored #2327

Closed

Description

@yigitdot

What happened

decdn bundle pull --hash ea8ae18f… --namespace 1 --exclude "metal/*" (gpt-oss-20b bundle) still pulled openai-gpt-oss-20b/metal/model.bin (9.11 GiB). The manifest paths carry a top-level directory prefix (openai-gpt-oss-20b/…). Under gitignore semantics a pattern with an inner / is anchored to the root, so metal/* matches nothing. The run gave no sign of this. The total showed 22.90 GiB instead of 13.82 GiB, and the operator noticed only by watching the progress bars.

--exclude "**/metal/**" worked: 4 fetched, 12 skipped, 1 excluded, 0 failed.

Expected

A --include or --exclude pattern that matches zero manifest entries prints a warning before any fetch starts, for example: --exclude "metal/*" matches no entry; manifest paths start with openai-gpt-oss-20b/. The fetch summary already counts excluded, so the zero case is known before the pull begins.

Repro

  1. Pick a bundle whose manifest paths share a top-level directory.
  2. Run decdn bundle pull --hash <H> --exclude "<subdir>/*" --dry-run -o /tmp/x.
  3. The excluded entries still appear in the list, with no warning.

Evidence

Testnet run, 2026-10-06 08:38:40Z.

Activity

  1. added
    kind:bug
    area:cli
    on Oct 6, 2026
  2. self-assigned this
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:bug

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions