Retarget prompt adapter e2e tests to a public fixture, bump catalog SHAs, and un-gate docs
Maintainer thường phản hồi trong vòng 3 ngày
@ajbozarth đang làm issue này rồi.
Từ ngày 23/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Follow-up to #1654. #1654 ships the prompt-fallback mechanism on LocalHF, but the feature is not reachable end-to-end yet: no catalog repo publishes prompt io.yaml files at its pinned revision, and the e2e tests lean on a temporary private repo. This issue tracks making prompt fallback actually usable, in three parts.
1. Retarget the e2e tests to a public fixture
The adapter-resolution e2e tests in test/backends/test_adapters/test_adapter_resolution_e2e.py point at a temporary private repo, ajbozarth/granitelib-rag-r1.0 (a weights-stripped copy of ibm-granite/granitelib-rag-r1.0 with prompt io.yaml files added), pinned to a specific SHA. Because the repo is private, the tests xfail rather than run for anyone without read access — including CI's public-only token and any other developer's token — via the require_hf_token() marker plus the _xfail_if_test_repo_unreadable autouse fixture. They run normally only for a developer with access to that personal repo.
This is a deliberate, documented stopgap (there is a TODO at the top of the file), but a bare in-code TODO can linger silently: the tests give no real signal in CI, and the SHA pin, private-repo dependency, and xfail guard stay in place until someone removes them.
- Identify a public repo that carries the same layout the tests exercise: the prompt
io.yamlfiles under the adapter-function subpaths, for the model slots the tests reference (granite-4.2-3b,granite-4.2-8b, and theanyslot). The natural target isibm-granite/granitelib-rag-r1.0itself once it adds prompt support — the temporary repo is already a copy of it — but any public repo carrying the layout works. - In
test/backends/test_adapters/test_adapter_resolution_e2e.py, repoint_TEST_REPOand update_TEST_SHAto the public repo. - Remove the temporary access guard once the repo is public: the
_xfail_if_test_repo_unreadableautouse fixture and its_test_repo_readable()helper, plus therequire_hf_token()marker if the public repo needs no token. - Repoint any e2e tests the OpenAI/Ollama prompt-fallback follow-up adds against the same fixture repo.
2. Bump the catalog SHAs so the fallback actually resolves
mellea/backends/adapters/catalog.py pins each repo to a specific revision (_RAG_SHA, _CORE_R1_SHA, _GUARDIAN_SHA). Prompt fallback cannot activate for any released Mellea until a repo publishes prompt io.yaml slots and its pin here is bumped to a revision that includes them — publishing to the repo's main is not enough on its own. Bump the relevant pin(s) once the public prompt data exists. If the fixture repo from part 1 is one of the catalog repos (e.g. ibm-granite/granitelib-rag-r1.0 → _RAG_SHA), that retarget and this pin bump are the same change.
3. Remove the "Coming soon" docs markers
docs/docs/advanced/intrinsics.md marks prompt fallback coming-soon at the top of the ## Prompt fallback section, and the PromptBinding table cell's ✅ shipping wording relies on that marker for context. Revisit both once the fallback is reachable end-to-end.
Acceptance criteria
- A public repo carries the prompt
io.yamllayout, and the catalog pins reference a revision that includes it. - The adapter-resolution e2e tests run (not
xfail) under CI's token; no remaining reference toajbozarth/granitelib-rag-r1.0or a personal-repo SHA pin. - The
_xfail_if_test_repo_unreadableguard and itsTODOare removed. - The "Coming soon" markers in
intrinsics.mdare removed (or updated) to match the now-reachable behavior.
- Ngôn ngữ chính
- Python
- Star
- 1.8k
- Fork
- 161
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
generative-computing/mellea#1864 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug: instruct() and react() replay tool-call turns without tool_callsCó thể đã có người làm @simonyang08 đã nhận 21 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
generative-computing/mellea#1784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesCó thể đã có người làm @madhusudhan1260 đã nhận 18 ngày trước. Đang mởgood first issue p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
generative-computing/mellea#1780 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/telemetry enhancement p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
generative-computing/mellea#1210 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Add requirement priorityĐang mởarea/requirement area/stdlib enhancement p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
generative-computing/mellea#31 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của generative-computing/mellea
Issue tương tự
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Pin Hugging Face commit revisions for AuK weight downloads and eliminate post-download SHA TOCTOUĐang mởarea:voice better-dependency-freedom dependencies effort:low in-progress model:medium plan planner:gemini-4-neon-high priority:2 security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-area-label
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
OpenFreeEnergy/openfe#2371 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
NCATSTranslator/Babel#1269 ·
Maintainer thường phản hồi trong vòng 1 ngày