Skip to content

fix(ci): apply gofmt to fix CI format check#150

Open
scion-gteam[bot] wants to merge 6 commits into
mainfrom
fix/ci-gofmt
Open

fix(ci): apply gofmt to fix CI format check#150
scion-gteam[bot] wants to merge 6 commits into
mainfrom
fix/ci-gofmt

Conversation

@scion-gteam
Copy link
Copy Markdown

@scion-gteam scion-gteam Bot commented Jun 6, 2026

Summary

  • CI has been failing on every commit to main due to Go formatting issues detected by the Format Check step
  • Applied gofmt -w . to fix struct field alignment and import ordering across 18 files
  • All changes are whitespace/formatting only — no logic changes

Files fixed

  • pkg/config/settings_v1.go — struct field alignment
  • pkg/hub/command_bus.go — alignment
  • pkg/hub/command_bus_test.go — trailing newline
  • pkg/hub/dispatch_exec_test.go — struct alignment + one-liner function expansion
  • pkg/hub/events_integration_test.go — alignment
  • pkg/hub/handlers.go — struct alignment + missing blank line
  • pkg/hub/httpdispatcher.go — import ordering + struct alignment
  • pkg/hub/messagebroker.go — alignment
  • pkg/hub/notifications.go — alignment
  • pkg/hub/proxyauth.go — alignment
  • pkg/hub/reaper.go — alignment
  • pkg/hub/reconcile_test.go — one-liner function expansion + struct alignment
  • pkg/hub/transport_token.go — struct alignment
  • pkg/observability/dispatchmetrics/dispatchmetrics.go — const alignment
  • pkg/sciontool/hub/client.go — alignment
  • pkg/store/entadapter/composite.go — struct alignment
  • pkg/store/entadapter/message_store.go — struct alignment
  • pkg/store/models.go — alignment

Test plan

  • gofmt -l . returns no files after fix
  • go vet ./... passes clean
  • CI format check should pass on this PR

ptone added 6 commits June 5, 2026 22:07
The CI format check has been failing on main for all recent commits
due to struct field alignment and import ordering issues across 18
files. This applies `gofmt -w .` to fix them all.
command_bus_test.go uses recExec and requirePostgres from
events_postgres_test.go, and broker_affinity_test.go uses newBroker
and newTestProjectStore from project_store_test.go. Both source files
are gated by //go:build !no_sqlite, but the consuming files were not,
causing undefined symbol errors when CI runs `go vet -tags no_sqlite`.
When iamEndpoint is overridden (test mode), pass
option.WithoutAuthentication() so the IAM credentials client doesn't
try to find default GCP credentials, which are unavailable in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant