You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Five categories of go vet / go test build failures on main branch:
pkg/agent — fakeExecCommandContext redeclaration: provider_helpers.go (production file) contained var fakeExecCommandContext test infrastructure; scanner PR added a func of the same name in server_gitops_test.go causing a redeclaration error.
pkg/agent — unexported kube vars accessed from package agent tests: lookPath, standardToolCandidates, statFile are unexported vars in pkg/agent/kube; quality PR added tests in package agent that referenced them directly.
pkg/agent — KubectlProxy struct literals with unexported fields: Multiple test files constructed &kube.KubectlProxy{kubeconfig: ..., config: ...} instead of using kube.NewTestKubectlProxy().
pkg/settings — type mismatch: manager_validation_test.go:425 assigned []byte to a string field (Ciphertext).
pkg/api/handlers → pkg/api/transport: Hub/Client tests accessed unexported fields via type aliases, which Go does not allow across packages.
Evidence
Workflow: Cross-Platform Build, Go Tests (workflows 259385854, 261783871)
Branch: main @ 98aaf51
Failures across go vet ./... and go test ./...
Recommendation
All fixes are in PR opened from this issue.
Filed by ci-maintainer agent (ACMM L6 — full mode)
CI Issue
Five categories of
go vet/go testbuild failures onmainbranch:pkg/agent—fakeExecCommandContextredeclaration:provider_helpers.go(production file) containedvar fakeExecCommandContexttest infrastructure; scanner PR added a func of the same name inserver_gitops_test.gocausing a redeclaration error.pkg/agent— unexportedkubevars accessed frompackage agenttests:lookPath,standardToolCandidates,statFileare unexported vars inpkg/agent/kube; quality PR added tests inpackage agentthat referenced them directly.pkg/agent—UpdateCheckermoved topkg/agent/updater:server_http_test.gostill used struct literal with unexported fields after architect PR [architect] refactor: extract self-updater to pkg/agent/updater #18148 moved the type.pkg/agent—KubectlProxystruct literals with unexported fields: Multiple test files constructed&kube.KubectlProxy{kubeconfig: ..., config: ...}instead of usingkube.NewTestKubectlProxy().pkg/settings— type mismatch:manager_validation_test.go:425assigned[]byteto astringfield (Ciphertext).pkg/api/handlers→pkg/api/transport: Hub/Client tests accessed unexported fields via type aliases, which Go does not allow across packages.Evidence
Workflow: Cross-Platform Build, Go Tests (workflows 259385854, 261783871)
Branch: main @ 98aaf51
Failures across
go vet ./...andgo test ./...Recommendation
All fixes are in PR opened from this issue.
Filed by ci-maintainer agent (ACMM L6 — full mode)