Repository navigation
Audit fixes: cleanup, license, CI, required tenant_id, load test - #3
Merged
Merged
Conversation
Drop the comments in the UI stylesheet that pointed at it.
It only polled /healthz and echoed a line; it forwarded nothing.
Missing or blank tenant_id now returns 400 instead of querying every tenant. The UI falls back to the demo tenant when the field is empty.
Creates a per-test database on an existing server and drops it on cleanup, so CI can use a Postgres service instead of testcontainers.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
t3code-orchestration.md,DESIGN.md, and the busyboxlog-forwardersidecar fromdeploy/k8s/base/deployment.yaml.\nin two README spots (migrate code block, metrics table).LICENSE.go vet, golangci-lint v2.14.0,go test -raceagainst apostgres:16-alpineservice, and alinux/amd64,linux/arm64Docker build (no push).internal/pgtest: whenPGTEST_DATABASE_URLis set, tests create and drop their own database on that server instead of starting testcontainers. CI uses this.GET /v1/logsnow returns 400 whentenant_idis missing or blank. The UI falls back to the demo tenant when the field is empty.cmd/loadtestand a README "Load test" section with measured results against a 1M-row seeded DB.Load test (M1 Pro, Postgres 18.6, all on one machine)
Retry-After, the DB kept writing about 133k rows/sec,/healthzstayed 200, RSS 36-45 MB, and accepted == rows_written with lost = 0 after drain.Testing
go vet ./...: passgolangci-lint run ./...: 0 issuesgo test -race -count=1 ./...: pass, with testcontainers and withPGTEST_DATABASE_URLdocker buildx build --platform linux/amd64,linux/arm64 -f deploy/docker/Dockerfile .: passactionlint .github/workflows/ci.yml: no errorskubectl kustomize deploy/k8s/overlays/local: renders