Skip to content

[ci-maintainer] fix: resolve persistent go vet and test build failures#18233

Merged
kubestellar-hive[bot] merged 1 commit into
mainfrom
ci/fix-agent-test-builds
Jun 13, 2026
Merged

[ci-maintainer] fix: resolve persistent go vet and test build failures#18233
kubestellar-hive[bot] merged 1 commit into
mainfrom
ci/fix-agent-test-builds

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

CI Fix

Fixes six categories of go vet / go test build failures on main:

  1. Remove var fakeExecCommandContext from production code (provider_helpers.go) — was test infrastructure accidentally left in a non-test file, causing a redeclaration error with server_gitops_test.go.

  2. Add exported test setters to pkg/agent/kube/testing.go (SetLookPathForTest, SetStatFileForTest, SetStandardToolCandidatesForTest) — tests in package agent were accessing unexported vars directly from pkg/agent/kube.

  3. Fix UpdateChecker usage in server_http_test.go — use updater.NewUpdateChecker() and checker.Status().Channel instead of struct literals with unexported fields.

  4. Replace KubectlProxy struct literals with kube.NewTestKubectlProxy() in server_test.go, server_sse_test.go, server_http_resources_stream_test.go.

  5. Fix Ciphertext type mismatch in pkg/settings/manager_validation_test.go ([]bytestring).

  6. Move hub/websocket tests to pkg/api/transport — type aliases don't permit cross-package unexported-field access; tests were moved from pkg/api/handlers to pkg/api/transport where they can access the fields directly.

Fixes #18232


Filed by ci-maintainer agent (ACMM L6 — full mode)

…s across pkg/agent, pkg/settings, and pkg/api/transport

- Remove var fakeExecCommandContext from provider_helpers.go (production file
  had test infrastructure causing redeclaration with server_gitops_test.go)
- Fix Ciphertext field type: []byte -> string in manager_validation_test.go
- Replace KubectlProxy struct literals (unexported fields) with
  kube.NewTestKubectlProxy() in server_test.go, server_sse_test.go,
  server_http_resources_stream_test.go
- Add updater import to server_http_test.go; use updater.NewUpdateChecker()
  and checker.Status().Channel instead of accessing unexported fields
- Add SetLookPathForTest/SetStatFileForTest/SetStandardToolCandidatesForTest
  to pkg/agent/kube/testing.go; update server_ops_clusters_test.go and
  server_ops_insights_test.go to use kube.* prefixes
- Fix server_test.go: NewLocalClusterManager -> kube.NewLocalClusterManager
- Move hub_close_test.go and websocket_test.go from pkg/api/handlers to
  pkg/api/transport (type aliases don't allow unexported field access)

Signed-off-by: Copilot <copilot@example.com>
Copilot AI review requested due to automatic review settings June 13, 2026 01:07
@kubestellar-hive kubestellar-hive Bot added the ci label Jun 13, 2026
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jun 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@kubestellar-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign mikespreitzer for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Jun 13, 2026

Copy link
Copy Markdown

Deploy Preview for kubestellarconsole canceled.

Name Link
🔨 Latest commit e5ed001
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a2cad368b4b4a0008b35bb2

@github-actions github-actions Bot added the ai-generated Pull request generated by AI label Jun 13, 2026
@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@kubestellar-hive kubestellar-hive Bot merged commit 00bf632 into main Jun 13, 2026
38 of 41 checks passed
@kubestellar-prow kubestellar-prow Bot deleted the ci/fix-agent-test-builds branch June 13, 2026 03:53
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

@github-actions

Copy link
Copy Markdown
Contributor

❌ Post-Merge Verification: failed

Commit: 00bf6327467fd6f94c4d703c34af83b233baf179
Specs run: ``
Report: https://github.com/kubestellar/console/actions/runs/27455768962

@github-actions

Copy link
Copy Markdown
Contributor

Post-merge build verification passed

Both Go and frontend builds compiled successfully against merge commit 00bf6327467fd6f94c4d703c34af83b233baf179.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Pull request generated by AI ci dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tier/2-standard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ci-maintainer] Persistent go vet/test build failures: pkg/agent, pkg/settings, pkg/api/transport

1 participant