Files
cleveragents-core/features/steps
freemo 05c3efd09c
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 28s
CI / lint (pull_request) Successful in 3m19s
CI / typecheck (pull_request) Successful in 3m55s
CI / quality (pull_request) Successful in 4m16s
CI / unit_tests (pull_request) Failing after 4m22s
CI / security (pull_request) Successful in 4m42s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 6m54s
CI / coverage (pull_request) Successful in 11m41s
CI / status-check (pull_request) Failing after 1s
CI / e2e_tests (pull_request) Successful in 8m21s
CI / benchmark-regression (pull_request) Successful in 55m3s
fix(config): resolve database_url relative to CLEVERAGENTS_HOME, not CWD
Ensure that when database_url is a relative path (like sqlite:///cleveragents.db),
it resolves relative to CLEVERAGENTS_HOME instead of the current working directory.
This fixes E2E test isolation where data from previous runs persisted across runs
at CWD, causing UNIQUE constraint failures.

Changes:
- Added _resolve_database_urls model validator in Settings to rewrite relative
  SQLite paths to absolute paths under CLEVERAGENTS_HOME
- Updated get_database_url() in container.py to use CLEVERAGENTS_HOME as base
  directory and create parent directories when CLEVERAGENTS_HOME is explicitly set
- Updated _check_database() in system.py to walk up directory tree for writable
  ancestor check, handling cases where intermediate directories have not yet been
  created
- Removed @tdd_expected_fail from TDD test (now passes genuinely)

ISSUES CLOSED: #1024
2026-03-25 10:54:02 +00:00
..