feat: Add testing agent to help with testing#793
Conversation
Signed-off-by: Jonathan Stacks <[email protected]>
There was a problem hiding this comment.
Pull request overview
Adds a new custom GitHub Copilot agent focused on improving test stability and authoring patterns for the ngrok Kubernetes Operator, and documents its usage for maintainers.
Changes:
- Added
test-agentagent instructions covering Ginkgo/Gomega + envtest patterns and flake-reduction guidance. - Updated the agents README to list and document how to invoke the new test agent.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.github/agents/test-agent.agent.md |
Introduces a testing-focused agent playbook (framework, repo test structure, flake causes, workflows). |
.github/agents/README.md |
Documents the new agent alongside existing agents and provides usage examples. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Jonathan Stacks <[email protected]>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@copilot apply changes based on the comments in this thread |
- Fix "flakey" -> "flaky" spelling in README.md and test-agent.agent.md
- Update Eventually/Consistently guidance to reflect actual repo patterns:
pass ctx to k8s client calls inside the body, use explicit timeout/interval
args instead of Eventually(ctx, ...) form
- Use GinkgoT().Context() in test templates instead of context.Background()
- Soften DeferCleanup/Label("slow") recommendations to reflect they are not
the predominant pattern in existing tests
- Update code template to use AfterEach for namespace cleanup and DeferCleanup
for per-resource cleanup, consistent with surrounding test patterns
Agent-Logs-Url: https://github.com/ngrok/ngrok-operator/sessions/b9bc6551-834c-4de8-bc1d-e31dc243b407
Co-authored-by: jonstacks <[email protected]>
Applied all changes from the review thread in commit
|
GinkgoT().Context()+timeout, intervalargs pattern🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.