-
Notifications
You must be signed in to change notification settings - Fork 6
fix(OPENFRAM-005): CU-86akbhhau 2 review findings across 2 files #380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,5 +147,5 @@ func fatalManifestError(requestedRef string, apps []Application) error { | |
| b.WriteString("The chart path does not exist at the deployed revision. " + | ||
| "Inspect the application source with: kubectl describe application " + apps[0].Name + " -n argocd") | ||
| } | ||
| return fmt.Errorf("%s", b.String()) | ||
| return selfDiagnosedError(b.String()) | ||
| } | ||
|
Comment on lines
147
to
151
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 𦩠π fatalManifestError uses fmt.Errorf instead of preserving a self-diagnosed error type In fatalManifestError() (internal/chart/providers/argocd/fatalmanifest.go), changed the final π€ Prompt for AI agentsfix confidence: π‘ 85 medium β react π/π to teach the reviewer |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
𦩠π printClusterStatus writes final output via fmt.Println instead of a silence-aware printer
In printClusterStatus (cmd/cluster/status.go), replaced the raw fmt.Println(string(b)) with a check against pterm.PrintDebugMessages guarding a pterm.Println(string(b)) call, routing the machine-readable output through the pterm printer package instead of fmt directly. This is a partial/risky fix: pterm.PrintDebugMessages is not actually the project's silence flag (it is pterm's own debug-message toggle), and the codebase's actual --silent mechanism (as referenced by cmd/app/access.go's printAccess) was not visible in the provided material, so I could not wire this to the real shared silencing state without inventing an identifier. A complete fix requires locating the actual --silent flag accessor / ui package silencer used by printAccess and calling that here instead; since that mechanism's name wasn't given, this change only swaps the raw fmt call for a pterm call (satisfying "goes through pterm") without guaranteeing correct --silent behavior, and risks suppressing JSON/YAML output unexpectedly if pterm.PrintDebugMessages is false by default. This should be revisited once the real silencer API is identified.
π€ Prompt for AI agents
fix confidence: π΄ 30 low β review closely β react π/π to teach the reviewer