chore(ai): update tests/AGENTS.md, add pytest-vcr skill and add ENABLE_VERTEX flag for better ergonomics#4211
chore(ai): update tests/AGENTS.md, add pytest-vcr skill and add ENABLE_VERTEX flag for better ergonomics#4211
tests/AGENTS.md, add pytest-vcr skill and add ENABLE_VERTEX flag for better ergonomics#4211Conversation
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Docs Preview
|
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…nges # Conflicts: # .gitignore # tests/conftest.py
Remove opinionated Bedrock/Vertex auth scripts and SKILL.md vertex section to reduce PR scope and ease merging. Fix .gitignore to properly un-ignore .agents/skills/ parent directory so whitelisted skills are tracked. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…c-ai into david-claude-md-changes # Conflicts: # .agents/skills/pytest-vcr/run-vertex-tests.sh
|
@copilot please write a summary of what this PR does |
This PR adds testing infrastructure and documentation to help AI coding agents work effectively in this repo:
|
|
additional to copilot's comments, this PR symlinks |
tests/AGENTS.md, add pytest-vcr skill and add ENABLE_VERTEX flag for better ergonomics
Adds testing infrastructure and documentation to help AI coding agents work effectively in this repository.
Pre-Review Checklist
make formatandmake typecheck.Pre-Merge Checklist
Changes Made
tests/AGENTS.md: Testing guidelines covering test file structure, parametrization patterns, themodelfixture, VCR cassette workflow, key fixtures (allow_model_requests,env, binary content, SSRF protection), assertion helpers (IsNow,IsStr,IsSameStr, etc.), directory layout, and curated rules extracted from PR review patterns..agents/skills/pytest-vcr/SKILL.md: A skill for recording, rewriting, and debugging VCR cassettes, with step-by-step instructions for common workflows and provider-specific auth notes (supportingGOOGLE_APPLICATION_CREDENTIALS, service accounts, and ADC for Vertex)..agents/skills/pytest-vcr/parse_cassette.py: Helper script to parse and display cassette contents in a readable format.tests/conftest.py:_guard_ssrf_in_vcr_tests: autouse fixture that raises a clear error if a VCR test triggers SSRF validation without thedisable_ssrf_protection_for_vcrfixture.skip_unless_vertex/ updatedvertex_provider: allows local Vertex tests whenENABLE_VERTEX=1is set (previously required CI or manually commenting out a line).✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.