Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .claude/agents/ci-triager.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ gh pr view <pr-number>
- `capture-sidecar-setcap-proof` → verifies file capabilities survived the multi-stage Dockerfile (Go modules only, uses sudo/tar/getcap)

**Unit + lint stage**:
- `lint` (matrix: netguard, gameaction, gameproto, operator, api, agent, sentinel, audit-syslog-bridge, telemetry-receiver, capture-sidecar, svcutil, tunnel, test/e2e)
- `lint` (matrix: netguard, gameaction, gameproto, operator, api, agent, sentinel, telemetry-receiver, test/e2e)
- Runs golangci-lint (with `envtest` tag for operator/api, `e2e` tag for test/e2e), checks specs compliance (once per run on netguard matrix entry)
- Coverage thresholds per module (from CLAUDE.md rule 11):
- netguard: 91%, gameaction: 91%, gameproto: 90%, operator: 72%, api: 80%, agent: 90%, audit-syslog-bridge: 70%, telemetry-receiver: 70%, sentinel: 70%, capture-sidecar: 70%, svcutil: 90%, tunnel: 70%
- `go` (matrix: 15 modules × 2 archs [amd64, arm64])
- netguard: 91%, gameaction: 91%, gameproto: 90%, operator: 72%, api: 80%, agent: 90%, telemetry-receiver: 70%, sentinel: 70%
- `go` (matrix: 11 modules × 2 archs [amd64, arm64])
- Unit tests + envtest (operator/api only) + coverage profile merge + threshold gate
- Arm64 runs on `ubuntu-24.04-arm`; amd64 on `ubuntu-latest`
- Split components (mcp-server, audit-syslog-bridge, tunnel, capture-sidecar) are linted/tested in their own repos via `.github/workflows/go-component.yaml`; here `submodule freshness` also runs `hack/submodules.sh check`.
- `web` → eslint, build, vitest + coverage (lines 92%, functions 76%, branches 82%, statements 92%), reports to commit status
- `web-e2e-mock` → Playwright mock tests (msw-mocked API)

Expand Down
8 changes: 4 additions & 4 deletions .claude/skills/submodule-bump/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: submodule-bump
description: "Use after a modules or website submodule PR has merged to its main branch, to bump the submodule pointer in the main Gameplane repo. Takes one argument: modules, website or mcp-server."
description: "Use after a modules, website or component submodule PR has merged to its main branch, to bump the submodule pointer in the main Gameplane repo. Takes one argument: modules, website, mcp-server, audit-syslog-bridge, tunnel or capture-sidecar."
---

Argument: `modules`, `website` or `mcp-server`. From `.gitmodules`: `modules` is GameplanePanel/module (branch `main`), `website` is GameplanePanel/website (branch `main`, has its own CLAUDE.md and AGENTS.md), `mcp-server` is GameplanePanel/mcp (branch `main`).
Argument: `modules`, `website`, or a component submodule from `.gitmodules` (`mcp-server`, `audit-syslog-bridge`, `tunnel`, `capture-sidecar`). From `.gitmodules`: `modules` is GameplanePanel/module (branch `main`), `website` is GameplanePanel/website (branch `main`, has its own CLAUDE.md and AGENTS.md). Repo mapping: `mcp-server` -> GameplanePanel/mcp; every other component -> GameplanePanel/<same name> (branch `main`).

## Preconditions

1. Name the submodule PR and confirm it is merged, live:
```sh
gh pr view <pr-number> --repo GameplanePanel/module --json state,mergeCommit
```
For website, use `--repo GameplanePanel/website`; for mcp-server use `--repo GameplanePanel/mcp`. Stop unless `state` is `MERGED`.
For website, use `--repo GameplanePanel/website`; for mcp-server use `--repo GameplanePanel/mcp`; for other components use `--repo GameplanePanel/<sub>`. Stop unless `state` is `MERGED`.
2. Check for a pending bump owned by another thread:
```sh
gh pr list --repo GameplanePanel/Gameplane --state open --search "bump <sub> submodule"
Expand Down Expand Up @@ -60,7 +60,7 @@ Argument: `modules`, `website` or `mcp-server`. From `.gitmodules`: `modules` is
9. Open the PR with a short Summary (the submodule PRs included) and a Test plan. Labels:
- `modules`: `type: chore` + `area: modules`
- `website`: `type: docs` + `area: shared`
- `mcp-server`: `type: chore` + `area: optional-components`
- `mcp-server`, `audit-syslog-bridge`, `tunnel`, `capture-sidecar`: `type: chore` + `area: optional-components`

Add them via REST, as in `ship-branch` step 7:
```sh
Expand Down
4 changes: 2 additions & 2 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -262,9 +262,9 @@ reviews:
- label: "area: specs"
instructions: Apply when changes touch specs/ or spec.md files (specs/done_008-hardened-github-actions/, design contracts, decision records).
- label: "area: shared"
instructions: Apply when changes touch shared Go packages (netguard/, gameaction/, gameproto/, svcutil/, telemetryschema/) used by operator, api, agent, and telemetry-receiver.
instructions: Apply when changes touch shared Go packages (netguard/, gameaction/, gameproto/, telemetryschema/) used by operator, api, agent, and telemetry-receiver.
- label: "area: optional-components"
instructions: Apply when changes touch optional or sidecar components (sentinel/, capture-sidecar/, mcp-server/ (submodule, pointer bumps only), tunnel/, audit-syslog-bridge/, telemetry-receiver/).
instructions: Apply when changes touch optional or sidecar components (sentinel/, telemetry-receiver/, and the submodules capture-sidecar/, mcp-server/, tunnel/, audit-syslog-bridge/ (pointer bumps only)).
- label: "breaking"
instructions: Apply when the PR introduces a breaking change (CRD schema incompatibility, REST API contract change, Helm chart value renamed/removed, database migration backward-incompatible).

Expand Down
1 change: 0 additions & 1 deletion .devcontainer/api/ready.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Works here:
cd gp-module && go build ./...
cd i18n && go build ./...
cd netguard && go build ./...
cd svcutil && go build ./...
cd telemetryschema && go build ./...
make build-go

Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/api/setup.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENVTEST_K8S_VERSION="1.36.2"
GOLANGCI_LINT_VERSION="v2.14.0"
GO_MODULES="api gameaction gp-module i18n netguard svcutil telemetryschema"
GO_MODULES="api gameaction gp-module i18n netguard telemetryschema"
MODULES_DIR="modules"
OPTIONAL_STEPS="ai_clis"
PROFILE="api"
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/control-plane/ready.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Works here:
cd gp-module && go build ./...
cd i18n && go build ./...
cd netguard && go build ./...
cd svcutil && go build ./...
cd telemetryschema && go build ./...
cd operator && go build ./...
cd agent && go build ./...
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/control-plane/setup.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENVTEST_K8S_VERSION="1.36.2"
GOLANGCI_LINT_VERSION="v2.14.0"
GO_MODULES="agent api gameaction gameproto gp-module i18n netguard operator svcutil telemetryschema test/e2e"
GO_MODULES="agent api gameaction gameproto gp-module i18n netguard operator telemetryschema test/e2e"
KIND_VERSION="v0.32.0"
MODULES_DIR="modules"
OPTIONAL_STEPS="ai_clis"
Expand All @@ -10,5 +10,5 @@ READY=".devcontainer/control-plane/ready.txt"
SETUP_ENVTEST_VERSION="release-0.24"
SPECIFY_VERSION="v1.0.3"
STEPS="submodules python3 pyyaml kind oras golangci_lint envtest go_mod_download uv specify ai_clis"
SUBMODULES="modules mcp-server"
SUBMODULES="modules audit-syslog-bridge capture-sidecar mcp-server tunnel"
WEBSITE_DIR="website"
1 change: 0 additions & 1 deletion .devcontainer/dashboard-api/ready.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Works here:
cd gp-module && go build ./...
cd i18n && go build ./...
cd netguard && go build ./...
cd svcutil && go build ./...
cd telemetryschema && go build ./...
cd operator && go build ./...
cd agent && go build ./...
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/dashboard-api/setup.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENVTEST_K8S_VERSION="1.36.2"
GOLANGCI_LINT_VERSION="v2.14.0"
GO_MODULES="agent api gameaction gp-module i18n netguard operator svcutil telemetryschema"
GO_MODULES="agent api gameaction gp-module i18n netguard operator telemetryschema"
KIND_VERSION="v0.32.0"
MODULES_DIR="modules"
OPTIONAL_STEPS="ai_clis"
Expand All @@ -10,5 +10,5 @@ READY=".devcontainer/dashboard-api/ready.txt"
SETUP_ENVTEST_VERSION="release-0.24"
SPECIFY_VERSION="v1.0.3"
STEPS="submodules python3 pyyaml kind oras golangci_lint envtest go_mod_download npm_ci_web uv specify ai_clis"
SUBMODULES="modules mcp-server"
SUBMODULES="modules audit-syslog-bridge capture-sidecar mcp-server tunnel"
WEBSITE_DIR="website"
7 changes: 3 additions & 4 deletions .devcontainer/full/ready.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@ Works here:
cd gp-module && go build ./...
cd i18n && go build ./...
cd netguard && go build ./...
cd svcutil && go build ./...
cd telemetryschema && go build ./...
cd operator && go build ./...
cd agent && go build ./...
cd audit-syslog-bridge && go build ./...
cd capture-sidecar && go build ./...
cd gameproto && go build ./...
cd sentinel && go build ./...
cd telemetry-receiver && go build ./...
cd tunnel && go build ./...
cd audit-syslog-bridge && GOWORK=off go build ./...
cd capture-sidecar && GOWORK=off go build ./...
cd mcp-server && GOWORK=off go build ./...
cd tunnel && GOWORK=off go build ./...
cd website && npm ci && npm run check
make module-validate MODULE=minecraft-java
cd test/e2e && go vet -tags e2e ./...
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/full/setup.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ENVTEST_K8S_VERSION="1.36.2"
GOLANGCI_LINT_VERSION="v2.14.0"
GO_MODULES="agent api audit-syslog-bridge capture-sidecar gameaction gameproto gp-module i18n netguard operator sentinel svcutil telemetryschema telemetry-receiver test/e2e tunnel"
GO_MODULES="agent api gameaction gameproto gp-module i18n netguard operator sentinel telemetryschema telemetry-receiver test/e2e"
KIND_VERSION="v0.32.0"
MODULES_DIR="modules"
OPTIONAL_STEPS="ai_clis"
Expand All @@ -10,5 +10,5 @@ READY=".devcontainer/full/ready.txt"
SETUP_ENVTEST_VERSION="release-0.24"
SPECIFY_VERSION="v1.0.3"
STEPS="submodules python3 pyyaml kind oras golangci_lint envtest go_mod_download npm_ci_web npm_ci_website uv specify ai_clis"
SUBMODULES="mcp-server website modules"
SUBMODULES="audit-syslog-bridge capture-sidecar mcp-server tunnel website modules"
WEBSITE_DIR="website"
6 changes: 3 additions & 3 deletions .devcontainer/go-services/ready.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[devcontainer] ready: Gameplane · Go services

Works here:
cd audit-syslog-bridge && go build ./...
cd capture-sidecar && go build ./...
cd gameproto && go build ./...
cd gp-module && go build ./...
cd i18n && go build ./...
cd sentinel && go build ./...
cd telemetryschema && go build ./...
cd telemetry-receiver && go build ./...
cd tunnel && go build ./...
cd audit-syslog-bridge && GOWORK=off go build ./...
cd capture-sidecar && GOWORK=off go build ./...
cd mcp-server && GOWORK=off go build ./...
cd tunnel && GOWORK=off go build ./...
make build-go

Ports: none
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/go-services/setup.env
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
GOLANGCI_LINT_VERSION="v2.14.0"
GO_MODULES="audit-syslog-bridge capture-sidecar gameproto gp-module i18n sentinel telemetryschema telemetry-receiver tunnel"
GO_MODULES="gameproto gp-module i18n sentinel telemetryschema telemetry-receiver"
MODULES_DIR="modules"
OPTIONAL_STEPS="ai_clis"
PROFILE="go-services"
READY=".devcontainer/go-services/ready.txt"
SPECIFY_VERSION="v1.0.3"
STEPS="submodules python3 golangci_lint go_mod_download uv specify ai_clis"
SUBMODULES="mcp-server"
SUBMODULES="audit-syslog-bridge capture-sidecar mcp-server tunnel"
WEBSITE_DIR="website"
11 changes: 7 additions & 4 deletions .devcontainer/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ checks = [
[profile.api]
size = "component"
title = "API"
dirs = ["api", "svcutil"]
dirs = ["api"]
extensions = ["golang.go"]
checks = ["{go_build}"]

Expand Down Expand Up @@ -120,11 +120,14 @@ dirs = [
"telemetry-receiver",
"tunnel",
]
submodules = ["mcp-server"]
submodules = ["audit-syslog-bridge", "capture-sidecar", "mcp-server", "tunnel"]
extensions = ["golang.go"]
checks = [
"{go_build}",
"cd audit-syslog-bridge && GOWORK=off go build ./...",
"cd capture-sidecar && GOWORK=off go build ./...",
"cd mcp-server && GOWORK=off go build ./...",
"cd tunnel && GOWORK=off go build ./...",
]

[profile.website]
Expand Down Expand Up @@ -158,7 +161,7 @@ size = "part"
title = "Dashboard and API"
includes = ["web", "api", "operator", "agent"]
dirs = ["deploy/kind", "charts/gameplane"]
submodules = ["modules", "mcp-server"]
submodules = ["modules", "audit-syslog-bridge", "capture-sidecar", "mcp-server", "tunnel"]
extras = [
{ name = "docker", kind = "service", version = "docker", reason = "In-container Docker daemon for the kind dev cluster (OD-2; deploy/kind/up.sh:195-199)." },
]
Expand All @@ -176,7 +179,7 @@ size = "part"
title = "Control plane"
includes = ["operator", "api", "agent"]
dirs = ["charts/gameplane", "deploy/kind", "test/e2e"]
submodules = ["modules", "mcp-server"]
submodules = ["modules", "audit-syslog-bridge", "capture-sidecar", "mcp-server", "tunnel"]
extras = [
{ name = "docker", kind = "service", version = "docker", reason = "In-container Docker daemon for the kind cluster and E2E images (OD-2; test/e2e/gatewayparity_e2e_test.go:156)." },
]
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/build-e2e-images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ inputs:
runs:
using: composite
steps:
- name: init mcp-server submodule
- name: init component submodules
shell: bash
run: git submodule update --init mcp-server
run: ./hack/submodules.sh init
- uses: docker/setup-buildx-action@d7f5e7f509e45cec5c76c4d5afdd7de93d0b3df5 # v4.1.0
- name: bake e2e images (operator/api/agent/sentinel/capture-sidecar/telemetry-receiver/fakeoidc/mcp-server/audit-syslog-bridge/tunnel-frp)
uses: docker/bake-action@d3418bd7d0e9324001bca92fa8ba175ea7e6dc9b # v7.3.0
Expand Down
Loading
Loading