Skip to content

chore: split audit-syslog-bridge, tunnel and capture-sidecar into submodules; remove svcutil - #995

Merged
ValgulNecron merged 10 commits into
masterfrom
chore/split-component-repos
Nov 17, 2026
Merged

ValgulNecron merged 10 commits into
masterfrom
chore/split-component-repos

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • audit-syslog-bridge/, tunnel/ and capture-sidecar/ move to GameplanePanel/audit-syslog-bridge, GameplanePanel/tunnel and GameplanePanel/capture-sidecar with their full history (35, 109 and 58 commits, trees identical to this repo's folders). They come back as submodules at the same paths, pointing at each repo's main. Dockerfiles, bake file, chart and image names don't change, and the images are still built and published here.
  • svcutil/ is removed. It had no importers.

One list of split components

.gitmodules is the list: each component entry carries component = true (mcp-server included). Everything reads it, so the next split is one .gitmodules entry:

  • hack/submodules.sh: init checks out every component, used by build-e2e-images, workflow-lint, capture-sidecar-setcap-proof, publish-edge and release (this replaces the per-image if mcp-server steps from chore: move mcp-server to the GameplanePanel/mcp submodule #993). ensure <path> is used by the Makefile image rules and deploy/kind/e2e.sh. check fails CI when a component is missing from a static workflow path filter (e2etree, submodules, github, publish-edge, devcontainers), because GitHub can't read .gitmodules there. It runs in submodule freshness.
  • hack/ci_scope.py derives its component ids and known dirs from .gitmodules, so a pointer bump selects the same e2e suites as before (the ids are unchanged).
  • hack/check-submodule-freshness.sh checks every gitlink plus every .gitmodules path, using each entry's own url and branch. Its hardcoded pairs are gone, and env overrides become SUBMODULE_URL_<PATH>. The existing self-test is unchanged and still covers it.

Shared CI for the component repos

.github/workflows/go-component.yaml is a reusable workflow. Each component repo calls it from a ~20-line ci.yaml, pinned by SHA: audit-syslog-bridge#1, tunnel#1, capture-sidecar#1, mcp#2. It runs gofmt, go vet, golangci-lint with this repo's root .golangci.yml, hadolint with .hadolint.yaml, race tests on amd64 and arm64 with each repo's .testcoverage.yml gate, govulncheck (also weekly) and the image build. No component carries a copied lint config (mcp#2 deletes its copy), so R-010 needs no change. The pinned hadolint download is repeated once in that workflow (same release and checksum as workflow-lint), because a reusable workflow cannot run a local action from this repo. The tunnel relay profile step moves to the tunnel repo.

Other changes here

  • go.work, GO_MODULES, the lint/go matrices and dependabot.yml drop the four modules (Dependabot runs in each repo now). go.work.sum gains one line.
  • Dev container profiles list the component submodules (regenerated with hack/gen-devcontainers.py).
  • check-links/check-doc-versions drop audit-syslog-bridge/README.md. Links to it in audited docs point at GitHub.
  • Docs, AGENTS.md, ci-triager, the submodule-bump skill and the CodeRabbit path rules describe the new layout.
  • operator/go.mod requires controller-tools v0.22.0, the version the committed CRDs were generated with. tunnel's tailscale dependency used to raise it through go.work; without tunnel there, controller-gen fell back to v0.20.1 and the codegen drift check failed.
  • The tunnel pointer includes ci: add shared CI and Dependabot tunnel#1, which carries over chore(deps)(deps): Bump tailscale.com from 1.104.5 to 1.104.7 in /tunnel in the tunnel-minor-patch group #982 (tailscale.com v1.104.7, Go 1.27.4). chore(deps)(deps): Bump tailscale.com from 1.104.5 to 1.104.7 in /tunnel in the tunnel-minor-patch group #982 merged into the old tunnel/ folder after the split. The audit-syslog-bridge and mcp-server pointers also move to their merged CI PRs.
  • Test-setup edit, signed off by valgul in the thread: test/e2e/suite-components.json drops the svcutil unexercised entry. No other test files changed.

Local checks: go build ./... in every go.work module, GOWORK=off go build ./... in each new submodule, hack/submodules.sh check, hack/check-submodule-freshness.sh, hack/check-publish-edge-paths.sh, hack/gen-devcontainers.py, YAML parse of every edited workflow.

…ules; remove svcutil

audit-syslog-bridge, tunnel and capture-sidecar now live in their own
GameplanePanel repositories (full history) and are checked out here as
submodules at the same paths, like mcp-server. svcutil had no importers
and is removed.

.gitmodules is the one list of split components (component = true).
hack/submodules.sh reads it for CI init steps, Makefile image rules and
deploy/kind/e2e.sh, and checks the static workflow path filters name
every component. ci_scope.py derives its component ids from it, and the
freshness check covers every gitlink with its .gitmodules url and branch.

.github/workflows/go-component.yaml is the shared CI the component repos
call (lint with this repo's .golangci.yml and .hadolint.yaml, race tests
on amd64 and arm64 with the coverage gate, govulncheck, image build).
The hadolint download moves to .github/actions/install-hadolint so both
use one pin.

test/e2e/suite-components.json drops the svcutil unexercised entry
(signed off by the maintainer).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
AGENTS.md, README, contributing, dependencies, layout, agent and
architecture docs, the ci-triager agent, the submodule-bump skill and
CodeRabbit path rules now describe audit-syslog-bridge, tunnel and
capture-sidecar as submodules like mcp-server, with hack/submodules.sh
and the shared go-component workflow. Links into the moved folders that
the doc gates audit point at the component repos on GitHub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron ValgulNecron added type: chore Maintenance, deps, or housekeeping area: shared netguard, gameaction, gameproto, svcutil and other shared packages area: optional-components sentinel, capture-sidecar, mcp-server, tunnel, audit-syslog-bridge, telemetry-receiver labels Nov 17, 2026 — with Claude
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 119 files, which is 19 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 668c247 and e6762ed.

Files ignored due to path filters: 6

  • capture-sidecar/go.sum is excluded by !**/*.sum
  • go.work is excluded by !**/*.work
  • go.work.sum is excluded by !**/*.sum
  • operator/go.sum is excluded by !**/*.sum
  • tunnel/frpc/go.sum is excluded by !**/*.sum
  • tunnel/go.sum is excluded by !**/*.sum
Files selected for processing: 119

  • .claude/agents/ci-triager.md
  • .claude/skills/submodule-bump/SKILL.md
  • .coderabbit.yaml
  • .devcontainer/api/ready.txt
  • .devcontainer/api/setup.env
  • .devcontainer/control-plane/ready.txt
  • .devcontainer/control-plane/setup.env
  • .devcontainer/dashboard-api/ready.txt
  • .devcontainer/dashboard-api/setup.env
  • .devcontainer/full/ready.txt
  • .devcontainer/full/setup.env
  • .devcontainer/go-services/ready.txt
  • .devcontainer/go-services/setup.env
  • .devcontainer/profiles.toml
  • .github/actions/build-e2e-images/action.yml
  • .github/dependabot.yml
  • .github/workflows/ci.yaml
  • .github/workflows/devcontainers.yaml
  • .github/workflows/go-component.yaml
  • .github/workflows/publish-edge.yaml
  • .github/workflows/release.yaml
  • .gitmodules
  • AGENTS.md
  • FEATURES.md
  • Makefile
  • README.md
  • audit-syslog-bridge
  • audit-syslog-bridge/.gitignore
  • audit-syslog-bridge/.testcoverage.yml
  • audit-syslog-bridge/Dockerfile
  • audit-syslog-bridge/README.md
  • audit-syslog-bridge/bridge_test.go
  • audit-syslog-bridge/go.mod
  • audit-syslog-bridge/main.go
  • audit-syslog-bridge/peek_linux.go
  • audit-syslog-bridge/peek_other.go
  • audit-syslog-bridge/specs.md
  • audit-syslog-bridge/system-deps.toml
  • capture-sidecar
  • capture-sidecar/.testcoverage.yml
  • capture-sidecar/Dockerfile
  • capture-sidecar/cmd/main.go
  • capture-sidecar/cmd/main_test.go
  • capture-sidecar/go.mod
  • capture-sidecar/internal/auth/tls.go
  • capture-sidecar/internal/auth/tls_rotation_test.go
  • capture-sidecar/internal/auth/tls_test.go
  • capture-sidecar/internal/capture/afpacket.go
  • capture-sidecar/internal/capture/afpacket_filter_test.go
  • capture-sidecar/internal/capture/afpacket_test.go
  • capture-sidecar/internal/capture/filter.go
  • capture-sidecar/internal/capture/filter_test.go
  • capture-sidecar/internal/capture/writer.go
  • capture-sidecar/internal/capture/writer_test.go
  • capture-sidecar/internal/httpserver/artifacts.go
  • capture-sidecar/internal/httpserver/artifacts_test.go
  • capture-sidecar/internal/httpserver/handlers.go
  • capture-sidecar/internal/httpserver/handlers_test.go
  • capture-sidecar/internal/httpserver/identity.go
  • capture-sidecar/internal/httpserver/identity_test.go
  • capture-sidecar/internal/nodecapture/worker.go
  • capture-sidecar/internal/nodecapture/worker_test.go
  • capture-sidecar/specs.md
  • capture-sidecar/system-deps.toml
  • changelog/unreleased/995-split-component-submodules.md
  • deploy/kind/e2e.sh
  • docs/agent-architecture.md
  • docs/architecture.md
  • docs/contributing.md
  • docs/dependencies.md
  • docs/install.md
  • docs/layout.md
  • docs/relay-health.md
  • hack/check-doc-versions.sh
  • hack/check-links.sh
  • hack/check-submodule-freshness.sh
  • hack/ci_scope.py
  • hack/submodules.sh
  • mcp-server
  • operator/go.mod
  • svcutil/.testcoverage.yml
  • svcutil/env.go
  • svcutil/env_test.go
  • svcutil/go.mod
  • svcutil/server.go
  • svcutil/server_test.go
  • svcutil/specs.md
  • svcutil/system-deps.toml
  • test/e2e/suite-components.json
  • tunnel
  • tunnel/.gitignore
  • tunnel/.testcoverage.yml
  • tunnel/Dockerfile.frp
  • tunnel/Dockerfile.playit
  • tunnel/Dockerfile.tailscale
  • tunnel/bench/frp_udp.py
  • tunnel/bench/results/frp-loopback-series-1.jsonl
  • tunnel/bench/results/frp-loopback-series-2.jsonl
  • tunnel/cmd/relay-load/main.go
  • tunnel/cmd/relay-load/main_test.go
  • tunnel/forward_metrics.go
  • tunnel/frpc/go.mod
  • tunnel/go.mod
  • tunnel/internal/relayload/load.go
  • tunnel/main.go
  • tunnel/main_test.go
  • tunnel/playit_reporter.go
  • tunnel/playit_reporter_test.go
  • tunnel/relay_health.go
  • tunnel/relay_health_test.go
  • tunnel/relay_metrics.go
  • tunnel/relay_metrics_test.go
  • tunnel/specs.md
  • tunnel/system-deps.toml
  • tunnel/tailscale.go
  • tunnel/tailscale_forward.go
  • tunnel/tailscale_forward_test.go
  • tunnel/tailscale_retry_test.go
  • tunnel/tailscale_test.go

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 17, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

CI Report - e6762ed

run 44150046886 - attempt 1

0 failed - 33 passed - 0 skipped - 52m40s elapsed

Test selection: full (selection-rule change) - per-suite table

Coverage

Module Measured Gate Margin
web L94.24 S92.39 B86.73 F90.62 L92 S92 B82 F76 +0.39

Changed

Area Files +/-
capture-sidecar/ 26 +0/-6893
tunnel/ 31 +0/-6448
audit-syslog-bridge/ 11 +0/-1745
svcutil/ 8 +0/-627
.github/ 7 +218/-152
hack/ 5 +174/-40
docs/ 7 +41/-53
(root) 12 +49/-33
.devcontainer/ 11 +22/-23
operator/ 2 +7/-10
.claude/ 2 +8/-7
deploy/ 1 +2/-10
changelog/ 1 +11/-0
test/ 1 +0/-1

Slowest jobs

Job Duration
e2e telemetry / amd64 (kind) 22m33s
e2e telemetry / arm64 (kind) 22m31s
e2e postgres / amd64 (kind) 18m51s
e2e restricted-workloads / arm64 (kind) 15m12s
e2e restricted-workloads / amd64 (kind) 14m17s

e2e buckets run

api-agent, api-auth, api-mods, api-rbac, api-roles, backup-preparation, bot-fast, management-placement, monitoring, multicluster, network-isolation, operator, optional-components, postgres-availability, postgres-ha, postgres-pitr, ratelimit, recovery, restricted-workloads, telemetry, upgrade, wake-hostport

A reusable workflow can't run a composite action from its own repo by
path in the caller's checkout, and master doesn't have the action yet,
so the component lint jobs failed. Keep the pinned download inline in
go-component.yaml and leave ci.yaml's workflow-lint step as it was.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Dropping tunnel from go.work removed the tailscale requirement that
raised the workspace's controller-tools to v0.22.0, so controller-gen
fell back to operator's own v0.20.1 and regenerated the CRDs
differently. Require v0.22.0 in operator/go.mod, the version the
committed CRDs were generated with.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron
ValgulNecron changed the base branch from chore/mcp-submodule to master November 17, 2026 01:16
…nt-repos

Signed-off-by: Claude <noreply@anthropic.com>

# Conflicts:
#	tunnel/Dockerfile.frp
#	tunnel/Dockerfile.playit
#	tunnel/Dockerfile.tailscale
#	tunnel/go.mod
#	tunnel/go.sum
#	tunnel/specs.md
#	tunnel~HEAD
tunnel picks up tunnel#1 (shared CI, tailscale.com v1.104.7 and Go
1.27.4 carried over from #982). audit-syslog-bridge#1 and mcp#1 add
each repo's CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
capture-sidecar#1 adds that repo's shared CI; mcp#2 moves mcp onto the
shared go-component workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
…nt-repos

Signed-off-by: Claude <noreply@anthropic.com>

# Conflicts:
#	audit-syslog-bridge/specs.md
#	audit-syslog-bridge~HEAD
#	capture-sidecar/specs.md
#	capture-sidecar~HEAD
#	docs/agent-architecture.md
#	docs/dependencies.md
#	docs/layout.md
#	tunnel/specs.md
#	tunnel~HEAD
@ValgulNecron
ValgulNecron merged commit 366b50f into master Nov 17, 2026
124 checks passed
@ValgulNecron
ValgulNecron deleted the chore/split-component-repos branch November 22, 2026 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: optional-components sentinel, capture-sidecar, mcp-server, tunnel, audit-syslog-bridge, telemetry-receiver area: shared netguard, gameaction, gameproto, svcutil and other shared packages type: chore Maintenance, deps, or housekeeping

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants