Harish R S
Harish R S
### Reason/Context The entire microcks-cli codebase uses `fmt.Printf`/`fmt.Println` for all output — command results, error messages, HTTP dumps, and diagnostic messages all go to stdout indiscriminately. This creates three concrete...
Context: Maintainer @Harsh4902 raised in #301: "can we store this output at a particular location for further usage?" — this issue directly addresses that question. CI/CD platforms natively consume JUnit...
Summary: The CI pipeline only compiled binaries — `go test`, `go vet`, and static analysis never ran on any PR. Real bugs shipped undetected as a result. Evidence: what these...
Description: `BackupConfigFile()` in `mesheryctl/pkg/utils/helpers.go` calls `os.Create()` but discards the returned `*os.File` without closing it, leaking a file descriptor on every invocation. Fixes #20045 Changes: - Capture the `*os.File` returned by...
BackupConfigFile() in mesheryctl/pkg/utils/helpers.go calls os.Create() but discards the returned *os.File without closing it, leaking a file descriptor on every invocation. Fix: capture the *os.File and call f.Close() after creation. Affected:...
Fixes #19927 Description: `TestInitConfigUseCases` had 4 test cases that each called `initConfig()` but contained zero assertions tests passed even if `initConfig()` did nothing or failed silently. Also discovered and fixed:...
Current Behavior: TestInitConfigUseCases in mesheryctl/internal/cli/root/root_initconfig_test.go has 4 test cases that each call initConfig() but contain zero assertions afterward. The only implicit check is that initConfig() does not panic. Test cases...
Description: `http.Client{}` without a timeout in `runServerChecks` and `runAdapterHealthChecks` (system/check.go) could hang indefinitely when the Meshery server is unresponsive, blocking `mesheryctl system check` with no feedback to the user. Added...
### Current Behavior TestSetContext in mesheryctl/internal/cli/root/config/config_test.go calls UpdateContextInConfig(nil, test) with nil as the first argument (expects *Context), which always returns an error. That error is silently swallowed using fmt.Print("Fail") instead...
**Current Behavior** `mesheryctl/internal/cli/root/system/check.go` creates `http.Client{}` without a timeout at two locations (lines ~503 and ~695). Health check requests can hang indefinitely if the Meshery server is unresponsive, blocking the CLI...