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
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
54 lines
3.2 KiB
Plaintext
54 lines
3.2 KiB
Plaintext
*** Settings ***
|
|
Documentation Integration smoke test for session create DI error (bug #570).
|
|
... Regression tests verifying that the DI container fix for
|
|
... session create works correctly. Bug #570 is now fixed
|
|
... (same root cause as bug #554).
|
|
Resource ${CURDIR}/common.resource
|
|
Library Process
|
|
Library OperatingSystem
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Test Cases ***
|
|
Session Create After Init Should Not Error
|
|
[Documentation] After agents init, session create --format plain should
|
|
... exit 0 and produce a new session rather than a DI
|
|
... AttributeError.
|
|
[Tags] tdd_bug tdd_bug_570
|
|
${tmpdir}= Evaluate __import__('tempfile').mkdtemp(prefix='sce_570_')
|
|
${init}= Run Process ${PYTHON} -m cleveragents init sce-test
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${init.rc} 0
|
|
... msg=agents init should exit 0 but got ${init.rc}. stderr: ${init.stderr}
|
|
${create}= Run Process ${PYTHON} -m cleveragents session create --format plain
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${create.rc} 0
|
|
... msg=session create should exit 0 but got ${create.rc}. stderr: ${create.stderr}
|
|
Should Not Contain ${create.stderr} AttributeError
|
|
... msg=session create should not raise AttributeError: ${create.stderr}
|
|
[Teardown] Remove Directory ${tmpdir} recursive=True
|
|
|
|
Session Create Then List Shows Created Session
|
|
[Documentation] After creating a session, listing should show it.
|
|
[Tags] tdd_bug tdd_bug_570
|
|
${tmpdir}= Evaluate __import__('tempfile').mkdtemp(prefix='sce_570_list_')
|
|
${init}= Run Process ${PYTHON} -m cleveragents init sce-list
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${init.rc} 0
|
|
... msg=agents init should exit 0 but got ${init.rc}. stderr: ${init.stderr}
|
|
${create}= Run Process ${PYTHON} -m cleveragents session create --format plain
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${create.rc} 0
|
|
... msg=session create should exit 0 but got ${create.rc}. stderr: ${create.stderr}
|
|
Should Not Contain ${create.stderr} AttributeError
|
|
... msg=session create should not raise AttributeError: ${create.stderr}
|
|
${list}= Run Process ${PYTHON} -m cleveragents session list --format plain
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${list.rc} 0
|
|
... msg=session list should exit 0 but got ${list.rc}. stderr: ${list.stderr}
|
|
Should Contain ${list.stdout} total:
|
|
... msg=Expected 'total:' in plain output: ${list.stdout}
|
|
Should Not Contain ${list.stdout} total: 0
|
|
... msg=Expected at least one session in list output: ${list.stdout}
|
|
[Teardown] Remove Directory ${tmpdir} recursive=True
|