Files
cleveragents-core/robot/db_lifecycle_models.robot
brent.edwards e8aa5ac268
CI / lint (pull_request) Successful in 15s
CI / typecheck (pull_request) Successful in 28s
CI / security (pull_request) Successful in 21s
CI / quality (pull_request) Successful in 15s
CI / integration_tests (pull_request) Failing after 6m25s
CI / build (pull_request) Successful in 15s
CI / unit_tests (pull_request) Successful in 6m52s
CI / docker (pull_request) Successful in 9s
CI / coverage (pull_request) Successful in 5m5s
fix(ci): restore venv PATH, use absolute resource paths, and add timeouts in robot tests
- Restore session.env["PATH"] in integration_tests nox session to ensure
  Run Process uses venv Python instead of system Python
- Convert bare Resource references to ${CURDIR}/ absolute paths across
  30 robot files to fix CI resolution failures
- Add timeout=30s to all Run Process calls in rxpy_route_validation.robot
  to prevent hanging tests
- Tag 2 rxpy tests as slow (require running actors unavailable on CI)
- Fix LangGraph test to use correct config file (LANGGRAPH_CONFIG)
- All 204 tests pass (4 excluded: 2 slow + 2 discovery)
2026-02-13 02:42:57 +00:00

40 lines
2.0 KiB
Plaintext

*** Settings ***
Documentation Integration tests for v3 database lifecycle models: LifecycleActionModel
... and LifecyclePlanModel round-trip persistence with SQLite.
... Covers commit 548a09f stages A5.3, A5.4, and plan hierarchy support.
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
*** Variables ***
${HELPER_SCRIPT} robot/helper_db_lifecycle_models.py
*** Test Cases ***
Action Domain Model Round Trip Through SQLAlchemy
[Documentation] Verify Action -> LifecycleActionModel -> Action preserves all fields
[Tags] database action roundtrip
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} action-round-trip cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} action-round-trip-ok
Plan Domain Model Round Trip Through SQLAlchemy
[Documentation] Verify Plan -> LifecyclePlanModel -> Plan preserves all fields including FK
[Tags] database plan roundtrip
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} plan-round-trip cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-round-trip-ok
Plan Parent Child Hierarchy Persistence
[Documentation] Verify parent_plan_id and root_plan_id FK relationships persist correctly
[Tags] database plan hierarchy
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} plan-hierarchy cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} plan-hierarchy-ok
Action State Query By Index
[Documentation] Verify actions can be queried by state and namespace using indexes
[Tags] database action query
${result}= Run Process ${PYTHON} ${HELPER_SCRIPT} action-state-query cwd=${WORKSPACE}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} action-state-query-ok