Skip to content

build: make local validation real, align coverage, remove template leftovers - #47

Open
mattmattox wants to merge 3 commits into
mainfrom
build/c1-validation-and-cleanup
Open

mattmattox wants to merge 3 commits into
mainfrom
build/c1-validation-and-cleanup

Conversation

@mattmattox

Copy link
Copy Markdown
Contributor

scripts/validate-pipeline-local.sh only had case branches for another project's components, so make validate-pipeline-local, validate-quick, validate-local, and the pre-push hook ran zero checks and printed success. It now runs gofmt, GOOS=linux go vet, golangci-lint (SKIP_LINT=1 to allow missing), gosec when installed, go test -short -race, helm lint, and make helm-verify-generated, and exits non-zero on failure.

Makefile: template header and personal deploy/bump targets removed; validate-component passes --component=; test-e2e adds -tags=e2e; coverage threshold defined once (70) and ci.yml calls make coverage-threshold; docker-push requires an explicit VERSION and never touches :latest, which release.yml owns.

Deleted dead template scripts, the disabled .githooks hook, hooks/, .validation.json, .version-rc. scripts/README.md lists only what remains.

Known pre-existing: test/e2e/scenarios does not compile (SetupOptions.Workers missing); fixed in the e2e CI PR.

Supersedes #5.

🤖 Generated with Claude Code

mattmattox and others added 3 commits October 7, 2026 09:39
Cast statfs Bsize to int64 so pkg/monitors/system builds on macOS, where
the field is uint32. Make the unit tests portable: short unix socket
paths under the 104-byte limit, squat the wildcard address in the
Prometheus bind-failure test, discover the loopback interface name, and
skip tests that need 127.0.0.0/8 aliases or inotify rename semantics
when the host lacks them.

Remove the unused command-call tracking and testKernelPanicLog from the
logpattern mocks, and revive the memory estimation assertions that were
commented out.

Closes #20

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Delete process docs copied from another project's template
(docs/development/*, docs/deployment.md, .githooks/README.md) and
replace docs/README.md with an index of the docs that exist, grouped
for operators and developers. Repoint the links that targeted the
deleted files and add scripts/check-doc-links.sh to catch broken
relative links.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ftovers

scripts/validate-pipeline-local.sh only had case branches for another
project's components, so it ran zero checks and reported success. It now
runs gofmt, GOOS=linux go vet, golangci-lint (SKIP_LINT=1 to allow it
missing), gosec when installed, go test -short -race, helm lint and
helm-verify-generated, and exits non-zero on any failure.

Makefile: validate-component passes --component=; test-e2e uses
-tags=e2e and checks for kind; COVERAGE_THRESHOLD is 70 and ci.yml
calls make coverage-threshold so there is one source; docker-push and
push-*-image require an explicit VERSION and never tag or push :latest.
Removed the template header, helm-publish stub, deploy-*, bump*,
qa-check, devils-advocate, check-kubeconfig-* and their variables.

Deleted dead template files: init-from-template.sh,
substitute-variables.sh, validate-api.sh, the GPG scripts, .githooks
pre-push and setup.sh, hooks/, .validation.json, .version-rc.

validate-repo-cleanliness.sh no longer rejects the repo's own
Dockerfile.overlay-test.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mattmattox mattmattox closed this Oct 7, 2026
@mattmattox mattmattox reopened this Oct 7, 2026
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