You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(tests): update check_login_rate_limit import across 7 test files #752
7 test files import `check_login_rate_limit` from `routers.auth`, but this function was moved or renamed. As a result, 29 test collection errors are emitted on every test run, masking real failures and inflating the error count.
Context
Discovered via full test suite run on 2026-05-10. The import fails at collection time, so all tests in the affected files are silently skipped rather than executed.
Affected files:
`tests/test_ip_rate_limit_fix.py`
`tests/unit/test_login_rate_limit_split.py`
`tests/unit/test_webhook_rate_limit_inprocess.py`
`tests/unit/test_webhook_rate_limit_toctou.py`
`tests/unit/test_fleet_status_resilience.py`
`tests/unit/test_sync_health_service.py`
`tests/test_github_pat_propagation_unit.py`
Acceptance Criteria
Run `grep -r "check_login_rate_limit" src/` to locate the current function name/path
Update all 7 test files to import from the correct location
`python -m pytest tests/ --collect-only` reports 0 collection errors for these files
All previously-erroring tests either pass or have an explicit skip reason
Technical Notes
The function may have been renamed or inlined during a refactor of `routers/auth.py`. Start with:
```bash
grep -r "check_login_rate_limit|login_rate_limit" src/backend/routers/auth.py
```
Fixed in PR #756 (c5ad320 on dev). sys.modules leaks in test_ip_rate_limit and test_sync_health_service resolved; 47 cross-file test errors eliminated.
Activity
vybe commentedon May 10, 2026
/claim
github-actions commentedon May 10, 2026
Claimed by @vybe. Label
status-in-progressadded.Next steps:
feature/752-<short-slug>Fixes #752fix(tests): fix sys.modules leaks causing 47 cross-file test errors (#…
vybe commentedon May 10, 2026
Fixed in PR #756 (c5ad320 on dev). sys.modules leaks in test_ip_rate_limit and test_sync_health_service resolved; 47 cross-file test errors eliminated.
fix(tests): conftest sys.modules baseline + tests-side lint (closes #762
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
feat(skill-gates): the per-agent skill gate map (Abilityai/trinity-en…
feat(systems): the approval map in the manifest, written through the …
feat(systems): a manifest states the whole desired shape, and apply r…