Skip to content

docs(contributing): document controller/envtest/kind dev loop - #193

Merged
shreyanshjain7174 merged 1 commit into
mainfrom
docs/contributing-dev-loop
Jul 22, 2026
Merged

docs(contributing): document controller/envtest/kind dev loop#193
shreyanshjain7174 merged 1 commit into
mainfrom
docs/contributing-dev-loop

Conversation

@shreyanshjain7174

Copy link
Copy Markdown
Collaborator

CONTRIBUTING only told contributors to run go test ./.... That misses the controller tests, the envtest setup, and the kind e2e path, so a first-time contributor cannot reproduce CI locally.

Changes:

  • CONTRIBUTING: add prerequisites and the real dev loop. make test, make test-controller (auto-installs envtest), make manifests generate after API changes, kind e2e targets (test-cluster/test-smoke/test-e2e-cluster), and make validate as the pre-PR gate.
  • PR template: add a make test-controller checklist item and surface the AI Attribution Guard so contributors do not trip it on PR [Auto] Implement Security agent with risk-based scoring (70% baseli #1.

Docs only. No code or behavior change. Every make target referenced was verified to exist in the Makefile.

CONTRIBUTING only said 'go test ./...'. Add the real dev loop: make test, make test-controller (auto-installs envtest), make manifests generate after API changes, kind e2e targets, and make validate as the pre-PR gate. Surface the AI Attribution Guard as a PR checklist item so first-time contributors do not hit it by surprise.

Signed-off-by: Shreyansh Sancheti <43677304+shreyanshjain7174@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 22, 2026 07:01
@shreyanshjain7174
shreyanshjain7174 merged commit 227b87d into main Jul 22, 2026
6 checks passed
@shreyanshjain7174
shreyanshjain7174 deleted the docs/contributing-dev-loop branch July 22, 2026 07:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates contributor docs so new contributors can run the same local loops CI expects. It documents controller envtest, manifest generation, and cluster e2e targets. It also updates the PR checklist to surface the controller test gate and the AI Attribution Guard constraint.

Changes:

  • Expanded CONTRIBUTING dev loop to include make test, make test-controller, make manifests generate, cluster e2e targets, and make validate.
  • Added make test-controller to the PR checklist for API or reconciler changes.
  • Added an AI Attribution Guard reminder to the PR checklist.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
CONTRIBUTING.md Adds prerequisites and a fuller local dev and test loop, including controller envtest and cluster e2e targets.
.github/PULL_REQUEST_TEMPLATE.md Updates the contributor checklist to include controller tests and AI Attribution Guard guidance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CONTRIBUTING.md
Comment on lines +15 to +19
- Go 1.25+ and `make`.
- Controller tests need nothing extra. `make test-controller` downloads the envtest binaries for you on first run.
- End-to-end tests need a local cluster. `kind` is the default.
- Python runtime code under `agents/` needs Python 3. The Makefile builds a venv for you.

Comment thread CONTRIBUTING.md
Comment on lines +25 to 30
# Fast unit tests (Go + ANF snapshot + Python)
make test

# Or just the Go unit tests
go test ./...
```
Comment thread CONTRIBUTING.md
make validate # fmt-check, lint, controller + Go + ANF + Python tests, helm-lint
```

If your change touches Python runtime code under `agents/`, run `make test-python` as well.
- [ ] `make test-controller` passes (if you changed the API or reconciler)
- [ ] No private-repo content leaked into OSS core
- [ ] Commit is signed off (`git commit -s`)
- [ ] Commits are human-authored. No AI names in `Signed-off-by` or `Co-authored-by` trailers (the AI Attribution Guard rejects Claude, Copilot, Cursor, GPT-*, Codex, etc.)
Comment thread CONTRIBUTING.md
Comment on lines +48 to +54
These need a running cluster. `kind` works:

```bash
make test-cluster # apply CRDs and run against the cluster
make test-smoke # smoke checks, including the demo CLI
make test-e2e-cluster
```
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.

2 participants