Skip to content

fix(ci): count settings loads under the mutmut stats trampoline #6476

Done

Description

@devops-cli-service

Split from #6448.

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.

Activity

  1. added
    type/bug
    scope/ci
    source/agent
    status/new
    value/medium
    effort/low
    on Nov 19, 2026
  2. devops-cli-service commented on Nov 19, 2026

    @devops-cli-service
    ContributorAuthor
  3. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 29, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 29, 2026
  5. devops-cli-service commented on Nov 29, 2026

    @devops-cli-service
    ContributorAuthor

    Live since 2026-11-29 16:17 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumscope/cisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions