fix(test): fix tolerant exit code and missing RC check in resource CLI test #907
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
1 participant
Notifications
Due date
No due date set.
Blocks
#896 fix(test): fix tolerant exit code and missing RC check in resource CLI test
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core!907
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/integration-resource-cli-tolerant-rc"
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
Fixes #896
resource type listexit code check fromrc == 0 or rc == 1to strictrc == 0— the test should fail if the command returns an errorresource.py) withexcept Exceptioncatch-all blocks so unhandled exceptions produce a clean "Unexpected error" message andAborted!exit instead of raw tracebacksisinstanceguard to re-raisetyper.Abortandtyper.Exitin the catch-all handlers — these are subclasses ofException(viaclick.exceptions) and must propagate normally for typer's exit machinery to work→) with ASCII (->) inresource_stopandresource_rebuilddocstrings to avoid encoding issuesPart of Epic #892.
9f86ea4e66f2b8580e15c3a153f2dfe580f57b60PM Review — Day 34
Status: Mergeable, 0 reviews, Priority/Critical, M3 (v3.2.0)
Fixes: #896 (assigned to @brent.edwards) | Part of: Epic #892
Review Summary
The Robot Framework test changes are correct and well-scoped:
rc == 0 or rc == 1→rc == 0. Eliminates masking of real CLI errors. ✓Scope Concern
The third commit (
e580f57) adds 14 catch-allexcept Exceptionhandlers tosrc/cleveragents/cli/commands/resource.py— production code not mentioned in the PR title or description. This is scope creep:logger.exception()alongside the console print to preserve debuggabilityAction Items
resource.pyexception handling changesLabels Applied This Session
4121521893a76166909fa76166909f2e3c48071b2e3c48071bec450e9085