Skip to content

fix(tests): resolve cost-guard fixture collision breaking main slice 6 - #85970

Merged
teknium1 merged 1 commit into
mainfrom
fix/cost-guard-gpt55pro-confusion-trust-gate
Aug 14, 2026
Merged

fix(tests): resolve cost-guard fixture collision breaking main slice 6#85970
teknium1 merged 1 commit into
mainfrom
fix/cost-guard-gpt55pro-confusion-trust-gate

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

Summary

Main's slice 6 is red from a semantic collision between two commits that were each green in isolation: 54cc39a (custom-provider pricing distrust, tested with openai/gpt-5.5-pro fixtures) and 83d373a (salvaged #70324, which makes openai/gpt-5.5-pro warn UNCONDITIONALLY as a known-confusion id, regardless of pricing trust). The distrust tests now get the id-keyed nudge warning where they assert None — 4 failures on every main run and every PR since 3c5fd91.

Not a flake and not a regression in either fix's logic: the two behaviors are both correct, the test fixtures just collided on that one model id.

Changes

  • tests/hermes_cli/test_model_cost_guard.py: pricing-distrust tests use a neutral vendor/priced-model fixture id so they assert what they actually test (foreign pricing distrust), with a comment explaining why gpt-5.5-pro can't be the fixture
  • New test_known_confusing_model_still_warns_on_custom_provider: pins the intended composed behavior — the id-keyed confusion nudge survives custom-provider pricing distrust

Validation

Before After
tests/hermes_cli/test_model_cost_guard.py 4 failed, 6 passed (on main) 10 passed
+ test_cli_startup_model_cost_guard.py 19/19 passed

Infographic

CI fix infographic

…rust and gpt-5.5-pro confusion nudge

54cc39a (distrust foreign pricing for custom providers) tested with
openai/gpt-5.5-pro fixtures; 83d373a (salvaged #70324) made that exact
id warn unconditionally as a known-confusion model. Each was green alone;
together the distrust tests fail on every main run (slice 6).

Use a neutral fixture id for the distrust tests and add a regression test
pinning the composed behavior: the id-keyed nudge survives custom-provider
pricing distrust.
@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

૮ >ﻌ< ა ci review

ran on a055d51 — fix(tests): resolve cost-guard fixture collision between pri

⚠️ Warnings

OSV vulnerability scan · View job

5 known vulnerabilities found in pinned dependencies.

How to fix:

Review the findings in the Security tab. Update the affected dependencies if a patched version is available.


debug info

CI timings

CI timings · View report · View job

Wall time 3m6s vs 6m59s (-55.6%). 7 job(s) slower, 15 faster, 2 unchanged.

  • Python tests / Run tests slice 2/12: -139.0s
  • Python tests / Run tests slice 1/12: -61.0s
  • OSV scan / Emit review status: -38.0s
  • OSV scan / Scan lockfiles / osv-scan: -18.0s
  • Python tests / Run tests slice 12/12: +16.0s

@alt-glitch alt-glitch added type/test Test coverage or test infrastructure P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard area/billing Account usage, credit usage, billing (cross-cutting) labels Aug 14, 2026
@teknium1
teknium1 merged commit 16b54e2 into main Aug 14, 2026
47 checks passed
@teknium1
teknium1 deleted the fix/cost-guard-gpt55pro-confusion-trust-gate branch August 14, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/billing Account usage, credit usage, billing (cross-cutting) comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have type/test Test coverage or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants