Files
cleveragents-core/robot/tdd_checkpoint_real_rollback.robot
T
brent.edwards 3eecb79003
CI / lint (pull_request) Successful in 16s
CI / quality (pull_request) Successful in 46s
CI / typecheck (pull_request) Successful in 56s
CI / security (pull_request) Successful in 56s
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 29s
CI / e2e_tests (pull_request) Successful in 2m7s
CI / unit_tests (pull_request) Successful in 3m8s
CI / docker (pull_request) Successful in 9s
CI / integration_tests (pull_request) Successful in 3m57s
CI / coverage (pull_request) Successful in 7m48s
CI / benchmark-regression (pull_request) Successful in 40m48s
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

35 lines
1.8 KiB
Plaintext

*** Settings ***
Documentation TDD Bug #822 — checkpoint rollback is simulated, not real
... Integration tests verifying that
... CheckpointService.rollback_to_checkpoint() actually restores
... file system state via git reset --hard. Currently the method
... only constructs a RollbackResult without executing the git
... operation, so files modified after the checkpoint remain
... unchanged. Tests are tagged tdd_expected_fail so CI passes
... via result inversion.
Resource ${CURDIR}/common.resource
Suite Setup Setup Test Environment
Suite Teardown Cleanup Test Environment
*** Variables ***
${HELPER} ${CURDIR}/helper_tdd_checkpoint_real_rollback.py
*** Test Cases ***
TDD Checkpoint Rollback Restores File Content
[Documentation] Verify that rollback reverts a modified file to its checkpoint state
[Tags] tdd_expected_fail tdd_bug tdd_bug_822
${result}= Run Process ${PYTHON} ${HELPER} rollback-restores-content cwd=${WORKSPACE} timeout=30s on_timeout=kill
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} tdd-checkpoint-rollback-restores-content-ok
TDD Checkpoint Rollback Removes Added Files
[Documentation] Verify that rollback removes files added after the checkpoint
[Tags] tdd_expected_fail tdd_bug tdd_bug_822
${result}= Run Process ${PYTHON} ${HELPER} rollback-removes-added-files cwd=${WORKSPACE} timeout=30s on_timeout=kill
Log ${result.stdout}
Log ${result.stderr}
Should Be Equal As Integers ${result.rc} 0
Should Contain ${result.stdout} tdd-checkpoint-rollback-removes-added-files-ok