test: add TDD bug-capture test for #1076 — use_action automation_profile propagation #1116
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Blocks
#1098 TDD: Write failing test for #1076 — use_action() does not propagate automation_profile
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core!1116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tdd/m4-use-action-automation-profile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add Behave BDD scenarios that capture the bug described in #1076 where
PlanLifecycleService.use_action()does not resolve or propagate theautomation_profilefrom the Action (or any other source in the spec's precedence chain) to the created Plan.This is the TDD counterpart to bug #1076, following the project's Bug Fix Workflow. The test proves the bug exists and will serve as a regression guard once the fix is merged.
Changes
features/tdd_use_action_automation_profile.feature— Three Behave scenarios tagged@tdd_expected_fail @tdd_bug @tdd_bug_1076:automation_profile="full-auto"— Plan'sautomation_profileshould beAutomationProfileRef(profile_name="full-auto", provenance=ACTION)but isNone.automation_profilebut with project-scoped config"trusted"— Plan'sautomation_profileshould beAutomationProfileRef(profile_name="trusted", provenance=PROJECT)but isNone.automation_profile— Plan'sautomation_profileshould resolve to the global default"supervised"withprovenance=GLOBALbut isNone.features/steps/tdd_use_action_automation_profile_steps.py— Step definitions exercisingPlanLifecycleService.use_action()and asserting the expected behavior per the specification (docs/specification.md lines 18919, 18967). Shared_use_action_on_project()helper eliminates duplicate When step bodies. Guard assertion onAction.automation_profileaftercreate_action()ensures the Action itself stores the profile correctly.CHANGELOG.md— Entry added under## Unreleaseddescribing the TDD test addition.How It Works
All three scenarios fail at the assertion level (confirming the bug exists), but the
@tdd_expected_failtag inverts the result so the test suite passes CI. When the bug is fixed in #1076, the@tdd_expected_failtag will be removed and the tests will run normally.Quality Gates
nox -s lintnox -s typechecknox -s unit_testsnox -s integration_testsnox -s e2e_testsnox -s coverage_reportCloses #1098
Review: PR #1116 — TDD bug-capture test for #1076 (use_action automation_profile propagation)
Overall Assessment: APPROVE
This is a clean, well-structured TDD bug-capture PR that follows all project conventions.
Checklist
@tdd_bug,@tdd_bug_1076,@tdd_expected_fail)tdd/mN-prefix)tdd/m4-use-action-automation-profile— v3.3.0 = M4features/, steps infeatures/steps/tdd_use_action_automation_profile.feature->tdd_use_action_automation_profile_steps.pyCloses #1098(TDD issue)Test Quality
automation_profileset — verifies propagation from action to planautomation_profile— verifies fallback to global defaultSummary
No issues found. Clean TDD bug-capture that follows the project's Bug Fix Workflow. Ready to merge.
Review: APPROVED
Clean TDD bug-capture PR for automation_profile propagation bug (#1076).
@tdd_expected_fail @tdd_bug @tdd_bug_1076tdd/m4-use-action-automation-profilecorrectly matches M4 (v3.3.0)Two well-designed scenarios covering both branches of the precedence chain (Action-level and Plan-level profile resolution). Ready to merge.
Day 43 Review — PR #1116
test: TDD for #1076 — use_action automation_profile propagationVerdict: APPROVED
TDD Verification
This is a TDD PR capturing bug #1076. Standard TDD review checklist:
@tdd_bug,@tdd_bug_1076,@tdd_expected_fail)test:prefixThe PR is mergeable with no conflicts. Once merged, the corresponding bug fix branch can be created from
master.@hamza.khyari — Please review and approve for second approval.
aee16ea7a17df52b43dcNew commits pushed, approval review dismissed automatically according to repository settings
Review: APPROVED
TDD tags correct (
@tdd_bug @tdd_bug_1076 @tdd_expected_fail). Behave steps fully implemented for use_action automation_profile propagation bug. CHANGELOG entry present.Note
Missing Robot Framework integration tests. For consistency with other TDD PRs, consider adding a
.robotfile + helper script in a follow-up.New commits pushed, approval review dismissed automatically according to repository settings