Test session leaking into production state.db fix
Cluster 50681 · agent. Data as of
Nothing open on GitHub. Fix merged in #74517 on 30 Jul 2026. Check it covers your case.
The short answer
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #74517. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
unresolved. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These items all address the same bug: DEFAULT_DB_PATH is evaluated at import time as a module-level constant, causing pytest test sessions to write to the production state.db instead of an isolated test database. Fixes involve lazy evaluation and hermetic test fixtures.
Open issues0
Open PRs0
Fixes on record
-
#74517 test: land the test-stability backlog — 12 PRs salvaged, Windows hermeticity, fail-closed guards, event-based waits
files:
.github/workflows/tests.yml,contributors/emails/[redacted:email],contributors/emails/[redacted:email],contributors/emails/[redacted:email],contributors/emails/[redacted:email],gateway/restart.py,gateway/slash_commands.py,hermes_cli/web_server.py,hermes_state.py,plugins/memory/honcho/session.py,scripts/run_tests.sh,tests/agent/test_anthropic_keychain.py,tests/agent/test_copilot_acp_client.py,tests/agent/test_vision_routing_31179.py,tests/conftest.py,tests/cron/test_sessiondb_init_hang.py,tests/gateway/test_approve_deny_commands.py,tests/gateway/test_complete_path_at_filter.py,tests/gateway/test_restart_drain.py,tests/gateway/test_restart_service_detection.py(+13 more)
2 PRs closed without merging
From the close comments: done elsewhere 1 · duplicate 1
Closed issues · 1
- Closed#50681Bug: pytest 测试会话泄漏到生产 state.db(DEFAULT_DB_PATH 模块级常量在 import 时冻结)
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Subsystem
- agent
- Merged PRs
- #74517
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 30 Jul 2026