Skip to content

test: drop the dall-e-3 azure cost tracking test that pinned a removed cost map key - #42636

Closed
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
litellm_drop_dalle3_cost_test
Closed

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
litellm_drop_dalle3_cost_test

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

How it solves it:

  • Drops the test, as asked in Slack, since the model it pins is retired

User Flow

Test-only change, no user-facing behavior changes

Relevant issues

Follow-up to #42435 and #42617

Affected release

Linear ticket

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have added meaningful tests (n/a, this removes a test that pins a retired model)
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

Screenshots / Proof of Fix

Test-only change. Attribution was checked locally with LITELLM_LOCAL_MODEL_COST_MAP=True: on main at 327515a the test fails with ValueError: Model is None and does not exist in passed completion_response, and with the cost map from the parent of #42435 swapped in it passes. The other 66 tests that failed on CircleCI pipeline 90114 either pass on main already thanks to #42617 or fail with both cost maps, so they are unrelated to #42435

Type

✅ Test

Caveats (if any)

Low

  • No cost tracking test remains for image_generation on Azure DALL-E; azure/hd/1024-x-1024/dall-e-3 and azure/standard/1024-x-1024/dall-e-3 are still in the cost map if someone wants to repoint instead

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

Link to Devin session: https://app.devin.ai/sessions/0df586d33151439e869db129cdb0242c
Open in Devin Desktop: https://app.devin.ai/desktop/session/0df586d33151439e869db129cdb0242c?variant=devin


Note

Low Risk
Test-only deletion with no runtime behavior changes; only reduces coverage for Azure DALL-E 3 image_generation cost tracking.

Overview
Removes test_dalle_3_azure_cost_tracking from test_completion_cost.py so CI stays green after the model cost map dropped retired dall-e-3 keys (follow-up to #42435 / #42617).

That test mocked an Azure DALL-E 3 ImageResponse and asserted completion_cost(..., call_type="image_generation") was positive; without the map entry it errors (e.g. model not found). No production or pricing logic changes—only less test coverage for Azure DALL-E 3 image-generation costing.

Reviewed by Cursor Bugbot for commit 75aec7d. Bugbot is set up for automated code reviews on this repo. Configure here.

…d cost map key

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot requested a review from a team September 23, 2026 01:30
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

CLAassistant commented Sep 23, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@kerry-berri

Copy link
Copy Markdown
Contributor

@greptileai

@kerry-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 75aec7d. Configure here.

@greptile-apps

greptile-apps Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The change should not merge until Azure image-generation cost coverage is preserved using a currently supported pricing key

Summary

This PR removes a failing Azure DALL-E 3 cost-tracking test whose original unqualified cost-map key was retired. Current Azure-qualified DALL-E 3 pricing keys remain supported, so deleting rather than repointing the test leaves Azure image cost attribution without direct regression coverage

Reviews (1) · Last reviewed commit: "test: drop the dall-e-3 azure cost track..."

@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Comments Outside Diff

These findings sit on lines the diff does not cover, so they could not be posted inline. Each one leaves this list once its file changes.

  • P2 Azure Cost Coverage Removed tests/local_testing/test_completion_cost.py:359 ▶

    Deleting this test removes the only Azure image-generation completion_cost coverage. Supported Azure DALL-E 3 pricing keys remain, so this violates the requirement that test changes not weaken regression coverage and must be addressed before merging.

@codecov

codecov Bot commented Sep 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

Superseded by #42631, which repointed this same test at gpt-image-2 on main. Nothing left to merge here

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