• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agentjido / req_llm / cf6e1b8f7b1881dcd99c730caa00091cd5d8a995-PR-218

17 Nov 2025 08:31AM UTC coverage: 49.958% (-0.05%) from 50.007%
cf6e1b8f7b1881dcd99c730caa00091cd5d8a995-PR-218

Pull #218

github

neilberkman
feat: Add credential fallback for fixture recording

Implements automatic fallback to existing fixtures when credentials are
missing during RECORD mode for providers requiring cloud credentials.

- Add optional `credential_missing?/1` callback to Provider behavior
- Implement credential detection in AWS Bedrock, Google, and Google Vertex AI providers
- Add fixture fallback handler in test fixture system
- Enables comprehensive test coverage without requiring all developers to configure cloud credentials

When recording fixtures (`REQ_LLM_FIXTURES_MODE=record`):
1. Provider attempts API call
2. If credentials missing, provider raises specific error
3. Credential fallback handler catches error via `credential_missing?/1`
4. If fixture exists, loads existing fixture instead of failing
5. Logs warning about credential fallback
6. Test continues successfully

This allows contributors without AWS/GCP credentials to run full test suite
while maintainers with credentials can refresh fixtures.
Pull Request #218: Add credential fallback for fixture recording

0 of 7 new or added lines in 3 files covered. (0.0%)

3575 of 7156 relevant lines covered (49.96%)

58.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/req_llm/providers/google_vertex.ex


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc