Skip to content

fix(novelty_extractor): mock embeddings in bundle tests for offline CI#169

Merged
rosspeili merged 1 commit into
ARPAHLS:mainfrom
rosspeili:fix/novelty-extractor-bundle-ci-mock
Jun 13, 2026
Merged

fix(novelty_extractor): mock embeddings in bundle tests for offline CI#169
rosspeili merged 1 commit into
ARPAHLS:mainfrom
rosspeili:fix/novelty-extractor-bundle-ci-mock

Conversation

@rosspeili

Copy link
Copy Markdown
Contributor

Hotfix for CI failures after #159: novelty_extractor bundle tests no longer call real fastembed / HuggingFace. They mock _get_model with deterministic keyword vectors so pytest skills/ stays offline and avoids 429 rate limits.

No changes to skill.py or runtime behavior — test-only.

Refs #159

Description

After bundle tests entered CI, novelty_extractor tried to download bge-small-en-v1.5 from HuggingFace on every matrix job. Rate limits caused empty results and two test failures (~3 min per job). Bundle tests should mock externals per TESTING.md; this aligns the skill with that policy.

Type of Change

  • Skill Proposal
  • Bug Report Fix
  • Doc Fix
  • Framework Feature / RFC Updates

Checklist (all PRs)

  • My code follows the Agent Code of Conduct.
  • I have run pytest skills/ locally (76 passed).
  • CHANGELOG.md updated under [Unreleased].
  • examples/README.md — N/A.

New or updated skill

N/A — test_skill.py only; no manifest or skill logic changes.

Constitution & Safety

N/A — tests mock embeddings; production skill unchanged.

Related Issues

Refs #159

HuggingFace 429 rate limits caused pytest skills/ to fail in GitHub Actions. Bundle tests now use deterministic keyword vectors instead of downloading fastembed models.
@rosspeili rosspeili merged commit 368b47f into ARPAHLS:main Jun 13, 2026
5 checks passed
@rosspeili rosspeili deleted the fix/novelty-extractor-bundle-ci-mock branch June 13, 2026 13:43
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.

1 participant