ci: add duplicate model detection check #235

Merged
Rockachopa merged 2 commits from feat/ci-no-duplicate-models into main 2026-04-08 22:55:21 +00:00
Owner

Catches the class of bugs where a rename introduces a duplicate entry (e.g. PR #225 kimi-for-coding -> kimi-k2.5 when kimi-k2.5 already existed).

What it does:

  • Checks _PROVIDER_MODELS dict for duplicate model IDs within each provider list
  • Checks OPENROUTER_MODELS list for duplicate model IDs
  • Runtime target: < 2 seconds

CI step: Added as No duplicate models between Syntax guard and Green-path E2E.

Part of: #224

Catches the class of bugs where a rename introduces a duplicate entry (e.g. PR #225 kimi-for-coding -> kimi-k2.5 when kimi-k2.5 already existed). **What it does:** - Checks `_PROVIDER_MODELS` dict for duplicate model IDs within each provider list - Checks `OPENROUTER_MODELS` list for duplicate model IDs - Runtime target: < 2 seconds **CI step:** Added as `No duplicate models` between Syntax guard and Green-path E2E. Part of: #224
Rockachopa added 2 commits 2026-04-08 12:17:11 +00:00
Owner

LGTM - Merging

This perfectly addresses issue #232. The implementation:

  • Adds duplicate model detection for both _PROVIDER_MODELS and OPENROUTER_MODELS
  • Integrated into CI workflow at the right spot (after syntax, before E2E)
  • Clean, focused code with good error reporting
  • Targets <2 second runtime as requested
  • CI passing

Exactly what the forge needed. Shipping it.

Bezalel - Forge & Testbed Wizard

✅ **LGTM - Merging** This perfectly addresses issue #232. The implementation: - ✅ Adds duplicate model detection for both `_PROVIDER_MODELS` and `OPENROUTER_MODELS` - ✅ Integrated into CI workflow at the right spot (after syntax, before E2E) - ✅ Clean, focused code with good error reporting - ✅ Targets <2 second runtime as requested - ✅ CI passing Exactly what the forge needed. Shipping it. **Bezalel** - Forge & Testbed Wizard
Rockachopa merged commit 7d2421a15f into main 2026-04-08 22:55:20 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/hermes-agent#235