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
68 lines
4.1 KiB
Plaintext
68 lines
4.1 KiB
Plaintext
*** Settings ***
|
|
Documentation Integration smoke test for project show after create (bug #590).
|
|
... Verifies that ``agents project show`` finds a project
|
|
... immediately after ``agents project create`` commits it.
|
|
Resource ${CURDIR}/common.resource
|
|
Library Process
|
|
Library OperatingSystem
|
|
Library String
|
|
Suite Setup Setup Test Environment
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Test Cases ***
|
|
Project Show Displays Created Project
|
|
[Documentation] After creating a project, show should display its details.
|
|
${tmpdir}= Evaluate __import__('tempfile').mkdtemp(prefix='show_590_')
|
|
${init}= Run Process ${PYTHON} -m cleveragents init show-test
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${init.rc} 0
|
|
... msg=agents init failed: ${init.stderr}
|
|
${create}= Run Process ${PYTHON} -m cleveragents project create local/show-proj
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${create.rc} 0
|
|
... msg=project create failed: ${create.stderr}
|
|
${result}= Run Process ${PYTHON} -m cleveragents project show --format plain local/show-proj
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
... msg=project show should exit 0 but got ${result.rc}. stderr: ${result.stderr}
|
|
Should Contain ${result.stdout} local/show-proj
|
|
... msg=project show output should contain project name but got: ${result.stdout}
|
|
[Teardown] Remove Directory ${tmpdir} recursive=True
|
|
|
|
Project Show With Description Displays Description
|
|
[Documentation] Show should display the project description after creation.
|
|
${tmpdir}= Evaluate __import__('tempfile').mkdtemp(prefix='show_590_desc_')
|
|
${init}= Run Process ${PYTHON} -m cleveragents init show-desc-test
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${init.rc} 0
|
|
... msg=agents init failed: ${init.stderr}
|
|
${create}= Run Process ${PYTHON} -m cleveragents project create local/desc-proj
|
|
... -d A test project
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${create.rc} 0
|
|
... msg=project create failed: ${create.stderr}
|
|
${result}= Run Process ${PYTHON} -m cleveragents project show --format plain local/desc-proj
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${result.rc} 0
|
|
... msg=project show should exit 0 but got ${result.rc}. stderr: ${result.stderr}
|
|
Should Contain ${result.stdout} A test project
|
|
... msg=project show should display description but got: ${result.stdout}
|
|
[Teardown] Remove Directory ${tmpdir} recursive=True
|
|
|
|
Project Show Returns Error For Nonexistent Project
|
|
[Documentation] Showing a project that was never created should fail.
|
|
${tmpdir}= Evaluate __import__('tempfile').mkdtemp(prefix='show_590_missing_')
|
|
${init}= Run Process ${PYTHON} -m cleveragents init show-missing-test
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Be Equal As Integers ${init.rc} 0
|
|
... msg=agents init failed: ${init.stderr}
|
|
${result}= Run Process ${PYTHON} -m cleveragents project show --format plain local/nonexistent
|
|
... timeout=120s on_timeout=kill cwd=${tmpdir}
|
|
Should Not Be Equal As Integers ${result.rc} 0
|
|
... msg=project show for nonexistent project should fail but exited 0
|
|
${combined}= Set Variable ${result.stdout}${result.stderr}
|
|
${lower}= Convert To Lower Case ${combined}
|
|
Should Contain ${lower} not found
|
|
... msg=project show for nonexistent project should mention "not found" but got: ${combined}
|
|
[Teardown] Remove Directory ${tmpdir} recursive=True
|