You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test(cli): assert the bundle pull unmatched-pattern warning on stderr from the real binary #2362
area:clidecdn binary: get, gateway, pool, publish, origin, setupgood first issueScoped and documented well enough for a first contributionkind:testTest coverage, flakes, fixtures or the e2e harness
No test checks that the bundle pull unmatched-pattern warning reaches the user. EntryFilter::apply_reporting and dry_run_manifest have unit tests, but apply_and_warn prints with eprintln!, and the in-process tests cannot capture stderr. A change that drops the apply_and_warn call from the dry run or the real pull leaves every test green.
Expected
A subprocess test in crates/cli/tests/ runs the real decdn binary, the same way origin_import_dryrun.rs and fetch_node_dir_guard.rs do (common::decdn_command(home)):
Write a v1 manifest with prefixed paths (openai-gpt-oss-20b/config.json, openai-gpt-oss-20b/metal/model.bin) to <out>/.decdn-bundles/<blake3 hex>.json by hand (bundle_cache is pub(crate)).
Run bundle pull --hash b3:<hex> -o <out> --exclude 'metal/*' --dry-run.
Assert that stdout contains would fetch 2 entr(ies), and that stderr contains warning: --exclude 'metal/*' matched no entries and the '**/metal/*' hint.
Run it again with no cache file. Assert that stdout contains the no-cache line and the include/exclude patterns are matched against them then note.
Optional: the same run with -i <manifest> instead of --hash.
area:clidecdn binary: get, gateway, pool, publish, origin, setupgood first issueScoped and documented well enough for a first contributionkind:testTest coverage, flakes, fixtures or the e2e harness
Activity