1878998b7a
CI / benchmark-publish (pull_request) Has been skipped
CI / build (pull_request) Successful in 25s
CI / lint (pull_request) Successful in 3m19s
CI / typecheck (pull_request) Successful in 3m56s
CI / security (pull_request) Successful in 4m6s
CI / quality (pull_request) Successful in 4m10s
CI / integration_tests (pull_request) Successful in 7m20s
CI / unit_tests (pull_request) Successful in 7m44s
CI / docker (pull_request) Successful in 1m8s
CI / e2e_tests (pull_request) Successful in 13m1s
CI / coverage (pull_request) Successful in 12m25s
CI / status-check (pull_request) Successful in 1s
CI / build (push) Successful in 26s
CI / lint (push) Successful in 3m31s
CI / quality (push) Successful in 3m40s
CI / typecheck (push) Successful in 3m57s
CI / benchmark-regression (push) Has been skipped
CI / security (push) Successful in 4m1s
CI / integration_tests (push) Successful in 8m55s
CI / unit_tests (push) Successful in 9m14s
CI / docker (push) Successful in 9s
CI / e2e_tests (push) Successful in 11m42s
CI / coverage (push) Successful in 11m37s
CI / status-check (push) Successful in 4s
CI / benchmark-publish (push) Successful in 29m25s
CI / benchmark-regression (pull_request) Successful in 54m8s
Rename the TDD tag system from tdd_bug/tdd_bug_<N> to tdd_issue/tdd_issue_<N> across the entire codebase. The tdd_expected_fail tag is unchanged. The TDD expected-failure workflow is not limited to bug fixes — it applies equally to any issue type (features, tasks, refactors). The _bug suffix was misleading and narrowed the perceived scope. The new _issue suffix accurately reflects that the TDD tagging system applies to any Forgejo issue. Changes span 92 files: - features/environment.py: validate_tdd_tags(), should_invert_result(), and apply_tdd_inversion() updated — regex, variables, error messages - robot/tdd_expected_fail_listener.py: _validate_tdd_tags(), _should_invert_result(), start_test(), end_test() updated consistently - 33 Behave .feature files: all @tdd_bug/@tdd_bug_<N> tags renamed - 29 Robot .robot files: all tdd_bug/tdd_bug_<N> tags renamed - 3 Robot fixture files renamed (tdd_bug_alone, tdd_missing_tdd_bug, tdd_expected_fail_missing_bug_n) with content and references updated - Tag validation tests and helpers updated (function names, command dispatch keys, output strings, fixture references) - CONTRIBUTING.md: section renamed from 'TDD Bug Test Tags' to 'TDD Issue Test Tags', all tag references and examples updated - noxfile.py: comment references updated - Step definition files, mock helpers, and benchmark files: docstring references updated ISSUES CLOSED: #965
61 lines
3.3 KiB
Plaintext
61 lines
3.3 KiB
Plaintext
*** Settings ***
|
|
Documentation TDD Issue #967 — plan execute only transitions state, does not run
|
|
... strategize or execute phase processing. Integration smoke tests
|
|
... exercising the CLI orchestration layer via real
|
|
... PlanLifecycleService (in-memory) and PlanExecutor (stub actors)
|
|
... to verify that a plan in Strategize/QUEUED state can be taken
|
|
... through to Execute phase. The bug fix is already in the
|
|
... codebase; these tests serve as permanent regression guards.
|
|
Resource ${CURDIR}/common.resource
|
|
Suite Setup Setup Test Environment With Database Isolation
|
|
Suite Teardown Cleanup Test Environment
|
|
|
|
*** Variables ***
|
|
${HELPER} ${CURDIR}/helper_tdd_plan_execute_phase_processing.py
|
|
|
|
*** Test Cases ***
|
|
TDD CLI Execute Plan From Strategize QUEUED State
|
|
[Documentation] Verify that the CLI execute_plan handler correctly
|
|
... orchestrates run_strategize before transitioning when
|
|
... a plan is in Strategize/QUEUED state.
|
|
... Bug #967: originally the CLI only called service.execute_plan().
|
|
[Tags] tdd_issue tdd_issue_967
|
|
${result}= Run Process ${PYTHON} ${HELPER} cli-execute-from-queued 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-cli-execute-from-queued-ok
|
|
|
|
TDD CLI Execute Orchestrates Full Lifecycle
|
|
[Documentation] Verify that the CLI execute_plan handler calls both
|
|
... run_strategize and run_execute for a QUEUED plan.
|
|
... Bug #967: the CLI skipped PlanExecutor orchestration.
|
|
[Tags] tdd_issue tdd_issue_967
|
|
${result}= Run Process ${PYTHON} ${HELPER} cli-full-orchestration 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-cli-full-orchestration-ok
|
|
|
|
TDD Positive Control Proper Orchestration
|
|
[Documentation] Positive control: verify that the proper service-level
|
|
... orchestration path (run_strategize then execute_plan)
|
|
... works correctly.
|
|
[Tags] tdd_issue tdd_issue_967
|
|
${result}= Run Process ${PYTHON} ${HELPER} proper-orchestration 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-proper-orchestration-ok
|
|
|
|
TDD CLI Auto Discovery Includes QUEUED Plans
|
|
[Documentation] Verify that the CLI auto-discovery filter includes plans
|
|
... in Strategize/QUEUED state, not just Strategize/COMPLETE.
|
|
... Bug #967: the original filter excluded QUEUED plans.
|
|
[Tags] tdd_issue tdd_issue_967
|
|
${result}= Run Process ${PYTHON} ${HELPER} cli-auto-discovery 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-cli-auto-discovery-ok
|