test: add TDD bug-capture test for #1078 — container-instance missing --mount flag #1129
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.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!1129
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "tdd/m5-container-mount-flag"
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
This PR adds a TDD bug-capture test for #1078 (
resource add container-instancemissing--mountflag). The test proves the bug exists by attempting to use the--mountflag and observing that it is rejected with "No such option: --mount" (exit code 2).Changes
features/tdd_container_mount_flag.feature— 3 Behave scenarios tagged@tdd_expected_fail @tdd_bug @tdd_bug_1078features/steps/tdd_container_mount_flag_steps.py— Step definitions usingtyper.testing.CliRunnerCHANGELOG.md— Added entry under## Unreleaseddocumenting the TDD test additionScenarios
--mountflag recognition (resource-reference format)--mountflags on a single command (repeatable)/path:/container-path:ro)Motivation
Per the Bug Fix Workflow in CONTRIBUTING.md, every bug fix begins with a TDD test. The
@tdd_expected_failtag inverts the test result so CI passes while the bug is unfixed. When #1078 is fixed, the tag will be removed and the test will run normally as a regression guard.Bug Analysis
The
resource_addfunction incleveragents.cli.commands.resourcedefines--imagefor container-instance resources but does not implement--mount. The specification mandates a repeatable--mount RESOURCE_OR_PATH:CONTAINER_PATHflag.Known Limitations
--mountflags) only proves the CLI accepts two--mountflags without error. It does not verify that both mount values are actually captured and stored. A docstring note documents this limitation and defers stronger assertions to the bug-fix PR for #1078.Quality Gates
Robot integration test: N/A — purely CLI flag recognition level bug.
Closes #1099
16727a621111fd8a4ff6Self-QA Review Complete — Would Approve ✅
This PR has passed the automated self-QA review loop (2 cycles). If this were a review from an independent reviewer, it would be approved.
Summary
Quality Gates
All passing: lint ✅ | typecheck ✅ | unit tests ✅ (462 features, 12233 scenarios) | integration tests ✅ | coverage 98% ✅
Note
Formal approval must come from a reviewer who did not author the code. This comment serves as a self-QA signal that the PR is ready for independent review and merge.
Review: APPROVED
TDD tags correct (
@tdd_bug @tdd_bug_1078 @tdd_expected_fail). Behave steps fully implemented. 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
5a5f6dbe94d63d754a81Review: test: add TDD bug-capture test for #1078 — container-instance missing --mount flag
Approved. Clean TDD bug-capture test with proper tags, good test structure, and complete BDD + Robot coverage.
d63d754a81f4c011c734New commits pushed, approval review dismissed automatically according to repository settings
f4c011c7343c6b6b54b2