Repository navigation
Closed
0 / 10 of 1 issue completed
Copy link
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/testsThe test suite, its fixtures, fakes and floorsource/agentFiled by an agenttype/infraType infra: the build, CI, images or clustervalue/mediumValue Medium
Description
Problem or Motivation
Six tests do work that they do not need (all times measured; the local times have no coverage):
tests/docs/test_docs_inventory.py:172-173collects the document references two times (3.73 s).tests/docs/test_docs.py:206-236builds the CLI reference about 4 times (5.51 s).tests/commands/test_ai_rag_ingest_analyze_dry_run.py:112runs forage on the real repository with 40git logcalls (6.78 s).tests/support/sandbox.py:171-173closes the listener, butaccept()does not wake, so the teardown waits 2.0 s.tests/server/test_service_memory.py:33-41runs 200 rounds (13.97 s in CI).tests/ai/rag/test_polyglot_chunking.py:344setsdeadline=800, which fails correct code on a loaded host.
Saving: 20-25 s of CI worker time (estimated), and one less source of flaky failures.
Found by the CI and test audit of 2026-11-11. The account runs at most 20 hosted jobs at one time (measured), so each job that does no work makes the queue of each pull request longer.
Proposed Solution & Architectural Design
- Collect the document references one time.
- Share the JSON output of the CLI reference, and keep the check and
--checkpaths. - Use a small tmp git repository with
--repofor forage. - Call
shutdown(SHUT_RDWR)beforeclose(). - Use 50 rounds with the same budget. First prove with a fail-to-pass run that the test fails on an unbounded cache. Rename the test and its docstring.
- Remove
deadline=800.
Risk: Low. A leak of less than about 0.3 MiB per round can pass the 50-round test.
Target Subsystem
SDLC, Git & PR Governance (tests/docs/, tests/commands/, tests/support/sandbox.py, tests/server/, tests/ai/rag/).
Existing Tool Considered
The standard library (socket.shutdown) and the Hypothesis deadline setting. No new tool. Cost: about 30,000 tokens and 2 hours.
Acceptance Criteria
- Each named test takes less time than the time given above.
- The memory test fails on an unbounded cache.
- The sandbox teardown takes 0.1 s or less.
Dependencies
None.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 1 sub-issues
Metadata
Metadata
Assignees
Labels
effort/lowEffort Low: little workpriority/p2-mediumPriority P2: standard workscope/testsThe test suite, its fixtures, fakes and floorsource/agentFiled by an agenttype/infraType infra: the build, CI, images or clustervalue/mediumValue Medium
Activity
dan-petty commentedon Nov 11, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
perfprefix of the title gives the type.(tests)scope of the title gives the scope.Saves 20-25 s of CI time and removes one flaky source, but does not block a release.Reduces CI queue time and flaky failures for all contributors.Six small, localised edits in test files, estimated at 2 hours.Both target CI test performance, but #4427 asks to measure and rank fixes while this candidate asks to apply six specific fixes.devops-cli-service commentedon Nov 12, 2026
Released in v0.118.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.118.0
devops-cli-service commentedon Nov 12, 2026
Live since 2026-11-12 12:40 UTC