fix: Handle errors for failed to retreive user spec. Don't return an error for invalid chart config in spec.#96
Conversation
…error for invalid chart config in spec.
WalkthroughThe changes revise error handling in the user input and secret spec retrieval logic, particularly eliminating errors for missing charts and handling missing user input specs more explicitly. Associated tests are updated or added to reflect these new behaviors, ensuring the code now returns empty or partial specs instead of errors in these scenarios. Additionally, dependency versions in Changes
Sequence Diagram(s)sequenceDiagram
participant Controller
participant SpecManager
participant SecretsManager
Controller->>SpecManager: GetUserInput()
alt UserInputSpec not found
SpecManager->>Controller: Create empty UserInputSpec
Controller->>Controller: Set empty UserInputSpec
Controller->>Controller: Requeue if setting fails
else Other error
SpecManager->>Controller: Log and requeue with error
else UserInputSpec found
SpecManager->>Controller: Return UserInputSpec
end
sequenceDiagram
participant SecretsManager
participant Charts
SecretsManager->>Charts: Get(maybeChart)
alt Chart found
SecretsManager->>Caller: Return spec with chart
else Chart not found
SecretsManager->>Caller: Return spec with chart = nil (no error)
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Possibly related PRs
Suggested reviewers
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
✨ Finishing Touches🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
### [1.20.1](v1.20.0...v1.20.1) (2025-07-25) ### Bug Fixes * Handle errors for failed to retreive user spec. Don't return an error for invalid chart config in spec. ([#96](#96)) ([4254c64](4254c64))
|
This PR is included in version 1.20.1 🎉 |
Summary by CodeRabbit
Bug Fixes
Tests
Chores