Repository navigation
Fail fast on missing component identity - #2411
Conversation
|
Tip Atmos Pro
No affected stacks workflow was detected for this pull request. |
Dependency Review✅ No vulnerabilities or license issues found.Scanned FilesNone |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughPer-component auth resolution now returns initialization errors (with component/stack context) instead of falling back; Auth manager defers printing initialization errors; the component processor aborts on resolver failures; tests assert propagation and early termination; docs document the user-facing change. ChangesAuth Fail-Fast on Component Resolution
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@internal/exec/describe_stacks_component_processor.go`:
- Around line 144-146: The current error wrap for auth resolution returns
createErr directly; update the fmt.Errorf call in the component auth resolution
block (where createErr and componentAuthManager are used) to wrap with the
shared sentinel errUtils.ErrAuthManager so it becomes: use fmt.Errorf("%w:
failed to resolve auth for component %q in stack %q: %w",
errUtils.ErrAuthManager, componentName, stackName, createErr) thereby preserving
the original createErr while tagging it with ErrAuthManager (same pattern as
used in terraform_nested_auth_helper.go).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 8d827507-bf07-470d-84b0-fd0c6b87df1e
📒 Files selected for processing (4)
docs/fixes/2026-05-15-list-instances-auth-fail-fast.mdinternal/exec/describe_stacks_component_processor.gointernal/exec/describe_stacks_component_processor_auth_test.gopkg/auth/manager.go
💤 Files with no reviewable changes (1)
- pkg/auth/manager.go
Co-Authored-By: Claude Opus 4.7 <[email protected]>
…entinel Per CodeRabbit review, align the per-component auth error with the existing pattern in terraform_nested_auth_helper.go so callers can match via errors.Is(err, errUtils.ErrAuthManager). Co-Authored-By: Claude Opus 4.7 <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2411 +/- ##
==========================================
+ Coverage 78.06% 78.08% +0.01%
==========================================
Files 1110 1110
Lines 104674 104673 -1
==========================================
+ Hits 81714 81734 +20
+ Misses 18422 18397 -25
- Partials 4538 4542 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
These changes were released in v1.218.1-rc.0. |
what
why
atmos list instances --uploadfrom repeating the same identity error per component and continuing after bad auth.references
docs/fixes/2026-05-15-list-instances-auth-fail-fast.md.Summary by CodeRabbit
Bug Fixes
atmos list instances --uploadnow fails fast when per-component auth resolution fails for components with a default identity; returns a clear error including component and stack context and stops further processing.Documentation
Tests