Skip to content

fix(tests): the suppression ceiling message names the wrong file #5253

Closed

Description

@dan-petty

Problem Description

test_suppressions_stay_under_their_ceilings tells the reader to "raise the ceiling in src/devops_cli/config/defaults.py" (tests/invariants/test_architectural_invariants.py:1416). The ceilings are not in that file. DEFAULT_SUPPRESSION_CEILINGS is at tests/invariants/test_architectural_invariants.py:121-145, and src/devops_cli/config/defaults.py has no suppression ceiling.

The message also offers a higher ceiling as the first other fix. A higher ceiling lowers a quality threshold, and only the owner can allow that (AGENTS.md rule 5). A repair turn of the implement job reads this message: on #1928 (plan PR #5140) the fix was a stub under typings/, not a higher ceiling.

Reproduction Steps

  1. Add a second [[tool.mypy.overrides]] entry to pyproject.toml.
  2. Run uv run devops ci test tests/invariants/test_architectural_invariants.py -k suppressions.
  3. Read the assertion text.

Expected vs Actual Behavior

Expected: the message names the file and line of the ceilings, and it names the usual fix for each kind first (for [[tool.mypy.overrides]]: a stub under typings/, as typings/jq.pyi does). It says that only the owner can allow a higher ceiling.

Actual: "[[tool.mypy.overrides]]: 2 > ceiling 1 in [pyproject.toml]. Fix the cause, or raise the ceiling in src/devops_cli/config/defaults.py with a reason recorded in the proposal of the change".

Environment Diagnostics

Main at 0a14161 (release 0.123.0).

Logs, Traces, or Terminal Output

CI of plan PR #5140: job 131340584400 (Tests & Coverage shard 3 of 4) and job 131342060289 (Service Image Tests shard 3 of 6) fail with the text above.

Source: #5140

Activity

  1. added
    source/agent
    type/bug
    scope/tests
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 12, 2026
  4. removed
    status/new
    on Nov 15, 2026
  5. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor
  6. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-15 13:55 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/testssource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions