Skip to content

Skip reranking tests when model file is unavailable#228

Merged
bernardladenthin merged 1 commit into
mainfrom
claude/confident-babbage-ggbty5
Jun 13, 2026
Merged

Skip reranking tests when model file is unavailable#228
bernardladenthin merged 1 commit into
mainfrom
claude/confident-babbage-ggbty5

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • Add conditional test execution to RerankingModelTest using JUnit 5's Assumptions API
  • Skip tests gracefully when the required reranking model file (models/jina-reranker-v1-tiny-en-Q4_0.gguf) is not available
  • Prevents test failures in environments where the model file has not been downloaded

Test plan

  • Affected unit tests pass locally (tests skip when model unavailable, run when present)
  • CI is green on this branch

Related issues / PRs

Checklist

  • I have read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  • My commits follow Conventional Commits
  • No security-sensitive changes

https://claude.ai/code/session_01VhZPQjHAWvrq7Hd3mDz57C

The @BeforeAll setup() called new LlamaModel() unconditionally, which
triggered LlamaLoader.initialize() -> UnsatisfiedLinkError on CI runners
without the native library, causing the test class to error rather than
skip. Add Assumptions.assumeTrue(model file exists) before the LlamaModel
constructor, matching the skip guard pattern used in LlamaEmbeddingsTest.

https://claude.ai/code/session_01VhZPQjHAWvrq7Hd3mDz57C
@bernardladenthin bernardladenthin merged commit c8bc1b2 into main Jun 13, 2026
7 of 10 checks passed
@bernardladenthin bernardladenthin deleted the claude/confident-babbage-ggbty5 branch June 13, 2026 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants