Story: Fix 17 failing tests (persistence, scheduled, web) #102
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot#102
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Epic: #101
Description
17 tests are currently failing due to API changes that were not reflected in tests.
Failing Tests
test_persistence.py (10 failures):
TestPersistencePlugin::test_on_message_received_stores_user_messageTestPersistencePlugin::test_on_message_received_disabledTestPersistencePlugin::test_on_after_send_stores_assistant_messageTestPersistencePlugin::test_transform_history_injects_previous_messagesTestPersistencePlugin::test_transform_history_empty_historyTestPersistencePlugin::test_transform_history_disabledTestPersistencePlugin::test_conversation_flowTestPersistencePlugin::test_separate_conversations_per_peerTestStdinModePersistence::test_stdin_peer_conversationTestStdinModePersistence::test_remember_numbers_scenariotest_scheduled.py (5 failures):
TestSubagentPlugin::test_spawn_no_llmTestSubagentPlugin::test_spawn_successTestSubagentPlugin::test_spawn_concurrency_limitTestHeartbeatPlugin::test_start_disabledTestHeartbeatPlugin::test_start_no_cronweb/test_plugin.py (2 failures):
TestLifecycle::test_start_when_disabledTestLifecycle::test_stop_gracefulAcceptance Criteria
ruff check cobot/passesFinding: Tests are not actually broken
All 17 "failures" were caused by missing
pytest-asyncioin the test environment. When run withpip install -e ".[dev]"(which installs pytest-asyncio), all 300 tests pass.Root cause: Running
pytestwithout first installing dev dependencies.Fix needed: This is really a dev environment/CI story, not a test fix story. Options:
conftest.pythat warns if pytest-asyncio is missingpip install -e ".[dev]"as prerequisite in CONTRIBUTING.md.[dev]Result: 300 passed, 0 failed, 18 warnings
This story can be closed or re-scoped to "ensure dev deps are documented/enforced."