Repository navigation
Harden model extensions - #997
Merged
zaneni6 merged 2 commits intoNov 10, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Validation accepts Windows-reserved COM/LPT names with superscript suffixes, allowing overlays that fail during flm pull; the validator, schema checks, and regression tests need updating.
1 open issue
What changed in this PR
This follow-up to #874 hardens model-extension catalog validation and adjusts SDK packaging and release CI.
Changes:
- Validates merged
preferred_sourceentries and their frontend/backend provider selections. - Rejects additional Windows-unsafe path names, updates schema patterns, and adds regression tests.
- Preserves SDK headers in Debian packages, skips extension fixture builds in release runs, and documents the fixture’s vcpkg dependency.
| File | Description |
|---|---|
src/test/model_list_platform/test_model_list_platform.cpp |
Adds path, preferred-source, folder-collision, and provider validation tests. |
src/schemas/model-catalog-overlay-v1.schema.json |
Tightens folder and relative-path patterns for Windows compatibility. |
src/include/AutoModel/model_catalog_overlay.hpp |
Validates merged entries and rejects Windows-unsafe path components. |
src/common/AutoModel/model_frontend.cpp |
Checks frontend and multimodal provider compatibility for preferred sources. |
debian/rules |
Stops deleting installed SDK headers. |
.github/workflows/build-and-test.yml |
Skips model-extension fixture builds during release runs. |
.github/script/ci/setup_windows_deps.ps1 |
Documents the fixture’s dependency on vcpkg include files; no behavior change. |
Review effort: Balanced
- Check the entry a preferred_source merge-patches in like the entry
itself: every field it sets, and the frontend family, backend and
provider it selects. Before, only its name and files were checked.
- Refuse catalog folder and file names Windows rewrites: a trailing dot
or space ("Model." opens "Model", which another entry may own) and
device names such as CON, NUL.txt, COM1 and COM or LPT with a
superscript 1 to 3. The schema patterns match.
- Ship model_extension.h in the .deb; debian/rules removed include/, so
the packaged CMake config pointed at a missing header.
- Skip the Gemma4-open fixture builds and tests in release runs, as the
models-from-source jobs are.
- Note that the fixture needs vcpkg from setup_windows_deps.ps1.
jtuyls
force-pushed
the
users/jtuyls/model-extension-followups
branch
from
November 10, 2026 08:49
b9d81b2 to
fb26e31
Compare
# Conflicts: # .github/script/ci/setup_windows_deps.ps1
Collaborator
|
Thanks, Jorn, these all look good! #971 (vendored curl, vcpkg dropped) landed in the meantime and already updated the Gemma4-open fixture, so it conflicted only on the new vcpkg note in |
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.

Follow up on #874.