Skip to content

fix(ci): apply gofmt to fix format check on main#188

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

fix(ci): apply gofmt to fix format check on main#188
scion-gteam[bot] wants to merge 3 commits into
mainfrom
scion/ci-gofmt-fix

Conversation

@scion-gteam

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

Copy link
Copy Markdown

Summary

  • Runs gofmt -w on 7 files that are failing the CI Format Check step on upstream main
  • Fixes struct field alignment, indentation, and a stray blank line
  • No logic changes — formatting only

Fixes #187

Files changed

  • cmd/sciontool/commands/init_crash_test.go — struct literal alignment
  • pkg/hub/lifecycle_hook_executor_test.go — trailing space in comment alignment
  • pkg/hub/server.go — struct field alignment + missing indentation on if statement
  • pkg/runtime/worktree_eligibility_test.goname field alignment in test cases
  • pkg/store/entadapter/composite.goBrokerDispatchStore field alignment
  • pkg/store/models.go — const block alignment + struct tag comment alignment
  • pkg/store/store.go — remove stray blank line before closing brace

Test plan

  • gofmt -l . returns no output (all files formatted)
  • go vet ./... passes
  • CI Format Check step passes

ptone added 3 commits June 8, 2026 16:58
…ain (GoogleCloudPlatform#371)

* fix: route colocated docker agents to bridge networking via Caddy domain

Colocated docker agents ran with --network=host, making the per-agent
metadata server (127.0.0.1:18380) and telemetry OTLP receiver (:4317)
host-global singletons. Only the first agent could bind them; concurrent
or resumed agents got 'address already in use' -> sciontool doctor 502.
Host networking also leaks GCP SA identity across agents.

Route colocated docker agents at the public Caddy domain so each runs in
its own netns under bridge networking:

- ResolveDockerNetworking: add SCION_FORCE_HOST_NETWORK escape hatch;
  add DockerSupportsHostGateway capability probe (Engine >= 20.10).
- startRuntimeBroker: ContainerHubEndpoint autocompute prefers the public
  domain for colocated docker; falls back to host.docker.internal (host
  networking) when force-host is set, host-gateway is unsupported, or no
  public domain is configured (warns in the latter two cases).
- applyContainerBridgeOverride: use a public-domain ContainerHubEndpoint
  wholesale instead of grafting the localhost port (e.g. :8080) onto it.
- gce-start-hub.sh: export SCION_SERVER_BASE_URL=https://${HUB_DOMAIN}
  so the broker dispatches agents to the domain.

Scope is confined to docker + colocated; kubernetes, cloud run, podman,
and remote-hub agents are unaffected. Reverting is a one-flag rollback
(SCION_FORCE_HOST_NETWORK=1) with no redeploy.

* fix: harden Docker host-gateway version probe per PR review

- DockerSupportsHostGateway: bound the 'docker version' probe with a
  5s timeout so an unresponsive daemon can't hang server startup.
- parseDockerServerVersion: scan line-by-line and tolerate a leading
  v/V prefix so daemon warnings or prefixed versions don't defeat the
  probe.
- add tests for v/V prefix, surrounding whitespace, and warning-prefixed
  multi-line output.
* docs: add release notes for June 6, 2026

* docs: add release notes for June 7, 2026

---------
@ptone ptone closed this Jun 9, 2026
@ptone

ptone commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Merged upstream — PR GoogleCloudPlatform#373

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.

CI: gofmt formatting failures on main

1 participant