You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(ci): count settings loads under the mutmut stats trampoline #6476
Problem: tests/ai/spend/test_ai_spend_pricing.py::test_a_priced_request_loads_the_settings_at_most_once passes in a plain run of the mutants tree. It fails in the stats run of mutmut (MUTANT_UNDER_TEST=stats). It counts the calls of the code object of load_settings, and in the mutants tree that code object is the trampoline that @_mutmut_mutated puts around each function. It counts 10 loads where it expects 1. Why deferred: The repository-metadata change in #6448 does not change the trampoline or the call count. The test needs a seam that is stable under mutation. Acceptance criteria: The test passes under MUTANT_UNDER_TEST=stats in a prepared mutants tree. The test counts the settings loads through a seam that the mutmut trampoline does not replace. A plain run of the test still passes.
Related: perf(ai): resolve settings once per LLM request in spend pricing #1420, which asks for a different change. Both concern settings loads in the spend pricing path, but #1420 delivers the once-per-request resolution while the candidate fixes the test to count loads through a mutmut-stable seam.
Activity
devops-cli-service commentedon Nov 19, 2026
Both concern settings loads in the spend pricing path, but #1420 delivers the once-per-request resolution while the candidate fixes the test to count loads through a mutmut-stable seam.devops-cli-service commentedon Nov 29, 2026
Released in v0.247.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.247.0
devops-cli-service commentedon Nov 29, 2026
Live since 2026-11-29 16:17 UTC