forked from cleveragents/cleveragents-core
3eecb79003
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
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
*** Settings ***
|
|
Documentation Smoke test validating that nox sessions referenced in CI exist and can be listed
|
|
Library Process
|
|
Library OperatingSystem
|
|
|
|
*** Test Cases ***
|
|
Nox Lists All Required Sessions
|
|
[Documentation] Verify that nox can list sessions and the required CI sessions are present
|
|
[Tags] ci quality slow
|
|
${result}= Run Process nox --list
|
|
Should Be Equal As Integers ${result.rc} 0 msg=nox --list failed with: ${result.stderr}
|
|
# Verify required sessions exist in nox output
|
|
Should Contain ${result.stdout} lint
|
|
Should Contain ${result.stdout} typecheck
|
|
Should Contain ${result.stdout} unit_tests
|
|
Should Contain ${result.stdout} integration_tests
|
|
Should Contain ${result.stdout} coverage_report
|
|
Should Contain ${result.stdout} security_scan
|
|
Should Contain ${result.stdout} dead_code
|
|
Should Contain ${result.stdout} complexity
|
|
Should Contain ${result.stdout} build
|
|
|
|
CI Workflow File Exists
|
|
[Documentation] Verify the CI workflow file is present in the repository
|
|
[Tags] ci quality slow
|
|
File Should Exist .forgejo/workflows/ci.yml
|
|
|
|
Nox Lint Session Runs Successfully
|
|
[Documentation] Verify that nox lint session can be invoked
|
|
[Tags] ci quality slow
|
|
${result}= Run Process nox -s lint timeout=120s on_timeout=kill
|
|
Should Be Equal As Integers ${result.rc} 0 msg=nox -s lint failed: ${result.stderr}
|