Files
cleveragents-core/robot/legacy_plan_removal.robot
brent.edwards 3eecb79003 test(plan): TDD failing tests for checkpoint real rollback (bug #822)
TDD expected-fail tests proving bug #822 exists:
CheckpointService.rollback_to_checkpoint() returns a successful
RollbackResult but does not execute git reset --hard. Files modified
after the checkpoint remain unchanged after rollback.

Also fixes Robot Framework timeout robustness across the entire test
suite: all Run Process calls now use on_timeout=kill (prevents
SIGTERM-induced -15 exit codes under CI load) and timeouts increased
to 120s (prevents premature kills during heavy parallel execution).

ISSUES CLOSED: #839
2026-03-16 01:45:50 +00:00

37 lines
1.6 KiB
Plaintext

*** Settings ***
Documentation Verify legacy plan commands emit deprecation warnings.
Library Process
Library OperatingSystem
Variables ${CURDIR}/helper_plan_lifecycle_persistence.py
*** Variables ***
${PYTHON} python
*** Keywords ***
Run Python Script
[Arguments] ${script} @{extra_args}
${result}= Run Process ${PYTHON} @{extra_args} ${CURDIR}/legacy_plan_removal_helper.py ${script}
... env:PYTHONPATH\=src:. timeout=120s on_timeout=kill
RETURN ${result}
*** Test Cases ***
Legacy Plan Tell Emits Deprecation Warning
[Documentation] Verify that importing and using legacy PlanService triggers a deprecation warning.
${result}= Run Python Script plan_service -W all
Should Contain ${result.stderr} DeprecationWarning
Legacy PlanRepository Emits Deprecation Warning
[Documentation] Verify PlanRepository emits DeprecationWarning on instantiation.
${result}= Run Python Script plan_repository -W all
Should Contain ${result.stderr} DeprecationWarning
Legacy ChangeRepository Emits Deprecation Warning
[Documentation] Verify ChangeRepository emits DeprecationWarning on instantiation.
${result}= Run Python Script change_repository -W all
Should Contain ${result.stderr} DeprecationWarning
V3 Lifecycle Service Does Not Emit Deprecation
[Documentation] Verify PlanLifecycleService does NOT emit DeprecationWarning.
${result}= Run Python Script lifecycle_service -W error::DeprecationWarning
Should Be Equal As Integers ${result.rc} 0