Skip to content

fix(test): update model ID expectations to match transformed format#3361

Open
code-yeongyu wants to merge 1 commit intodevfrom
fix/ci-model-id-test
Open

fix(test): update model ID expectations to match transformed format#3361
code-yeongyu wants to merge 1 commit intodevfrom
fix/ci-model-id-test

Conversation

@code-yeongyu
Copy link
Copy Markdown
Owner

@code-yeongyu code-yeongyu commented Apr 12, 2026

Summary

CI on dev has been failing (4+ consecutive failures) due to 2 test failures in generate-omo-config.test.ts.

Root Cause

resolveModelFromChain() in fallback-chain-resolution.ts calls transformModelForProvider() which converts claude-opus-4-6claude-opus-4.6 for the anthropic provider. The test expectations weren't updated to match this transformed output.

Changes

Updated 3 assertions in 2 tests:

  • "anthropic/claude-opus-4-6""anthropic/claude-opus-4.6"

Testing

  • bun test src/cli/config-manager/generate-omo-config.test.ts → 7 pass / 0 fail
  • bun run typecheck → clean
  • bun test src/cli/config-manager/ → 44 pass / 0 fail

Summary by cubic

Fix CI by updating test expectations to match the provider-transformed Anthropic model ID format (claude-opus-4.6 instead of claude-opus-4-6). This resolves two failing tests on dev.

  • Bug Fixes
    • Updated 3 assertions in src/cli/config-manager/generate-omo-config.test.ts to expect "anthropic/claude-opus-4.6".
    • Aligns with model normalization in resolveModelFromChain()transformModelForProvider().

Written for commit f7d8c90. Summary will update on new commits.

resolveModelFromChain() calls transformModelForProvider() which
converts claude-opus-4-6 to claude-opus-4.6 for the anthropic
provider. The test expectations in generate-omo-config.test.ts
were not updated to match this transformed output.

Fixes CI failure on dev (2 tests in generate-omo-config.test.ts)
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Auto-approved: Test-only change updating expectations to match model ID normalization logic, fixing broken CI tests.

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