Skip to content

docs(openspec): plan #1878 Fail tests on warnings and mark ty advisory - #5105

Closed
devops-cli-service[bot] wants to merge 1 commit into
mainfrom
test/1878-turn-all-warnings-into-errors-with
Closed

devops-cli-service[bot] wants to merge 1 commit into
mainfrom
test/1878-turn-all-warnings-into-errors-with

Conversation

@devops-cli-service

Copy link
Copy Markdown
Contributor

Plans #1878

Make every warning an error in the filterwarnings list of pyproject.toml, and keep a reason above each exception. Add one reasoned ignore for the google-genai deprecation, whose comment names Python 3.17. Shut the Qdrant client that two tests leave open, and patch the RAG lookup of the outlines test that leaves a sqlite connection open. A pytester control proves that a deprecation warning fails a run, and the test-settings row fails when the filter loses its error entry or a reason, or the google-genai ignore names no removal version. The uv-check row becomes advisory in the gate, so a diagnostic of the pinned ty never fails devops ci, while devops ci uv-check still exits 1. mypy --strict stays the blocking type gate.

Change: openspec/changes/1878-turn-all-warnings-into-errors-with/

@devops-cli-service devops-cli-service Bot added type/docs Type docs: a change to the documents scope/openspec OpenSpec changes, specs and their checks labels Nov 12, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the test/1878-turn-all-warnings-into-errors-with branch from 1bcce01 to 23dc194 Compare November 12, 2026 15:31
@dan-petty

Copy link
Copy Markdown
Owner

Warning census for #1878 (plan PR #5105 closed with no merge)

The plan of #5105 cannot pass group 1, because its scope comes from a wrong count in the item body. The bare "error" entry in filterwarnings of pyproject.toml makes each ResourceWarning, UserWarning and third-party DeprecationWarning a test failure, in files that group 1 does not name.

Census. The implement job ran the full suite with the "error" entry (implement comment 6827938727 on #1878): 61 failed, 3 errors, 23810 passed. About 36 of the failures are new warning failures in files that group 1 does not name. About 21 failures were "FileNotFoundError: kubectl" in the runner image; #5137 fixed them on main. The body says that a full run gives "8 warnings in 8 tests" and that the change adds 3 lines. That count is wrong.

Warning sources and their files. A new plan must decide each source and name each file in the Changes: list of a group.

  1. The anthropic package warns a DeprecationWarning for the model claude-sonnet-4-5 (end of life 30 Nov 2026). These tests use the model: tests/ai/client/test_claude_provider.py:76, tests/ai/client/test_ai_streaming.py:922, tests/ai/client/test_ai_client_providers_and_embeddings.py:317 and :662, tests/ai/test_thinking_providers.py:278, :334 and :424. Possible decision: change the model name in the tests.
  2. tree_sitter_dockerfile warns "DeprecationWarning: int argument support is deprecated" when src/devops_cli/ai/ast/engine.py:592 loads it. Possible decision: one ignore entry with a reason.
  3. A ResourceWarning "unclosed file" in tests/github/test_github_session.py (test_a_process_that_sent_a_request_exits_without_closing_its_session).
  4. UserWarnings from src/devops_cli/ai/rag/qdrant.py:659 and from the qdrant_client package in tests/ai/rag/test_rag_qdrant.py.
  5. The event-loop sources that the implement agent named (tests/conftest.py and other files).

Advice for the next plan.

  • Measure the census before the plan, and name each source file in the Changes: list of a group. The planner cannot run the suite, so the census must be in the item text.
  • Dependency: fix(roadmap): the review_window git transcript does not match the code #4865. In the runner image, the full-suite verify fails 2 review_window tests of tests/core/test_git_contract.py. CI on main is green. Implement does not subtract the failures that exist on the base, so a group that verifies with the full suite fails on these tests.
  • Possible split for refine: the ty advisory row (groups 2 and 4 of docs(openspec): plan #1878 Fail tests on warnings and mark ty advisory #5105) does not need the "error" entry, so it can be built now. The "error" entry (groups 1 and 3) waits for the decisions above and for fix(roadmap): the review_window git transcript does not match the code #4865.
  • Review points that stay open: (a) no group verify runs uv run devops ci, but the criteria map "uv run devops ci passes" to group 4; (b) devops ci run decides its own exit code (src/devops_cli/commands/ci.py:2440-2441), so a ty diagnostic still fails that path, and the plan changes only _handle_ci_results; (c) a failed advisory row clears the gate cache (src/devops_cli/commands/ci.py:1511-1519), so each later run repeats every row while ty has a diagnostic.
  • A stale fact: the plan says that the dev group holds ty 0.0.92. The dev group holds ty 0.0.101.

Why no retry. The stop class is plan_defect, and its action is amend. A retry of this plan costs about 4.5M tokens and about 68 minutes, and it stops again on the same scope.

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

Labels

scope/openspec OpenSpec changes, specs and their checks type/docs Type docs: a change to the documents

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant