Skip to content

marketplace: case-sensitivity mismatch between Rust model_archive_kind and Python archive_mode #613

Description

Spun off from review on #601 (pre-existing; not introduced there).

The Rust installer's model_archive_kind (apps/skit/src/marketplace_installer.rs) matches suffixes with eq_ignore_ascii_case, while the Python uploader's archive_mode (scripts/marketplace/upload_models_to_hf.py) uses case-sensitive str.endswith. So model.TAR.GZ is recognized by the installer but not by the uploader — the same class of install-vs-upload divergence #572 addressed, just milder (filenames are conventionally lowercase).

Suggested fix: lowercase before matching in Python (e.g. file_path.lower().endswith(suffix), suffixes in archive_suffixes.json are already lowercase) and extend the parity coverage to exercise mixed-case names. Left out of #601 to keep that PR focused on the zstd gap.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions