Repository navigation
Description
Summary
After the #589 Redis auth migration, 20 unit test failures remain across 7 test files. These fall into two categories: (a) missing/renamed code in the main codebase that tests reference, and (b) unit tests that don't inherit the main conftest's REDIS_URL credential patch.
Context
Discovered during post-#589 test suite run on 2026-05-05. The 1,766 crash-loop errors from #589 are cleared. These are pre-existing or recent regressions unrelated to the Redis migration itself.
Failures by Group
Group A — Missing/renamed code (9 failures, 5 errors)
test_agent_readiness_probe.py (5 errors — collection failure)
ImportError: cannot import name 'get_agent_default_resources' from 'services.settings_service'services/agent_service/lifecycle.py:26imports this function but it doesn't exist insettings_service.py
test_telegram_webhook_backfill.py (4 failures)
ImportError: cannot import name 'AgentDefaultResourcesUpdate' from 'models'routers/settings.py:18imports this model but it's been removed/renamed frommodels.py
test_fleet_sync_audit.py (2 failures)
sqlite3.IntegrityError: UNIQUE constraint failed: agent_git_config.github_repo, agent_git_config.working_branch- Test seeds duplicate
(github_repo, working_branch)rows to test detection logic, but the schema UNIQUE constraint blocks this. Constraint likely needs to be partial (only forsource_mode=0).
test_git_status_dual_ahead_behind.py (2 failures)
compute_ahead_behind()returns(0, 0)when(0, 1)/(1, 0)expected- Ahead/behind calculation for the working branch is broken
test_schedule_status_observability.py (1 failure)
- Expected
#378 residual-race logmessage not emitted — log statement missing or changed
Group B — REDIS_URL not patched in unit test isolation (10 failures)
test_file_upload.py (6), test_voice_auth.py (3), test_chat_sync_backlog.py (1) all fail with:
RuntimeError: REDIS_URL must include credentials- These tests import modules whose import chain reaches
config.pybefore the main conftest'ssetdefaultpatch applies - Fix: Add
tests/unit/conftest.pythat setsos.environ.setdefault("REDIS_URL", "redis://test:test@redis:6379")before any imports
Group C — Collection errors (2 files excluded entirely)
unit/test_skill_service_user_agent.py
ModuleNotFoundError: No module named 'utils.url_validation'skill_service.pyimportsvalidate_skills_library_urlfrom a module not yet created
unit/test_voice_tools.py
ImportError: cannot import name 'GeminiVoiceService' from 'services.gemini_voice'- Class renamed or not yet added
Group D — Contract mismatch (1 failure)
test_subscription_auto_switch.py::test_get_auto_switch_default_on
assert False is True— auto-switch setting defaults toFalsebut test expectsTrue
Acceptance Criteria
-
get_agent_default_resourcesadded toservices/settings_service.pyor import inlifecycle.pyupdated -
AgentDefaultResourcesUpdatemodel restored inmodels.pyorrouters/settings.pyimport updated -
test_fleet_sync_audit.pyfixtures updated to work with UNIQUE constraint (or constraint made partial) -
compute_ahead_behind()correctly returns ahead/behind counts for working branch -
tests/unit/conftest.pycreated withREDIS_URLcredential patch (fixes 10 failures in one shot) -
#378 residual-racelog re-added totask_execution_service.py -
utils/url_validation.pycreated withvalidate_skills_library_url -
GeminiVoiceServiceadded/corrected inservices/gemini_voice.py - Auto-switch default aligned between backend and test expectation
- All 25 failures resolved, test suite passes cleanly
Technical Notes
Quickest wins in order:
tests/unit/conftest.pywith REDIS_URL patch → fixes 10 failures instantlyAgentDefaultResourcesUpdaterestore → fixes 4 failures + unblockssettings.pyget_agent_default_resourcesinsettings_service.py→ fixes 5 collection errors
Activity
chore(tests): add version floor to slackify-markdown
fix(tests): green dev-merge residuals (refs Abilityai#660)
fix(tests): green the unit-test suite (closes #660) (#714)
ci(unit-suite): add per-PR + nightly regression gates (#715) (#744)
vybe commentedon May 10, 2026
Fixed in PR #714 (32e06c8 on dev). All 49 failures + 2 collection errors in the unit-test suite resolved; 754 passed, 0 failed.
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
Release: v0.6.1 (#1171)
fix(ci): stop the Dependency Graph check failing on every release
fix(ci): make a wholly-red suite reportable, and detect calendar rot …
fix(ci): make a wholly-red suite reportable, and detect calendar rot …