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

agentjido / req_llm / 5019e621bd0188a6dffdc37aa39807f86175f998-PR-174
49%
main: 49%

Build:
Build:
LAST BUILD BRANCH: feat/load-dotenv-config
DEFAULT BRANCH: main
Ran 03 Nov 2025 06:02PM UTC
Jobs 4
Files 90
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Nov 2025 06:01PM UTC coverage: 52.543% (+0.08%) from 52.465%
5019e621bd0188a6dffdc37aa39807f86175f998-PR-174

Pull #174

github

neilberkman
Add OAuth2 token caching for Google Vertex AI

OAuth2 token generation on every request adds 60-180ms overhead
(file I/O, JWT signing, HTTP round trip). Tokens are valid for 1 hour,
so this overhead is wasteful for repeated requests.

Implementation:
- GenServer + ETS cache storing tokens per service account
- 55 minute TTL (5 minute safety margin from 1 hour token lifetime)
- GenServer prevents thundering herd on expiry
- Per-node cache (no distributed coordination needed)

Performance impact:
- Before: 1000 requests = 60-180 seconds auth overhead
- After: 1000 requests = 60-180ms auth overhead (first request only)
- Improvement: 99.9% reduction in auth overhead
Pull Request #174: Add OAuth2 token caching for Google Vertex AI

15 of 26 new or added lines in 2 files covered. (57.69%)

6 existing lines in 3 files now uncovered.

3956 of 7529 relevant lines covered (52.54%)

355.69 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
0.0
0.0% lib/req_llm/providers/google_vertex.ex
8
65.22
lib/req_llm/providers/google_vertex/token_cache.ex

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.41
-3.45% lib/req_llm/providers/openai/param_profiles.ex
2
88.24
-5.88% test/support/streaming_case.ex
3
32.35
-8.82% test/support/fixtures.ex
Jobs
ID Job ID Ran Files Coverage
1 5019e621bd0188a6dffdc37aa39807f86175f998-PR-174.1 03 Nov 2025 06:02PM UTC 90
52.52
GitHub Action Run
2 5019e621bd0188a6dffdc37aa39807f86175f998-PR-174.2 03 Nov 2025 06:04PM UTC 90
52.52
GitHub Action Run
3 5019e621bd0188a6dffdc37aa39807f86175f998-PR-174.3 03 Nov 2025 06:06PM UTC 90
52.48
GitHub Action Run
4 5019e621bd0188a6dffdc37aa39807f86175f998-PR-174.4 03 Nov 2025 06:06PM UTC 90
52.52
GitHub Action Run
Source Files on build 5019e621bd0188a6dffdc37aa39807f86175f998-PR-174
  • Tree
  • List 90
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #174
  • PR Base - main (#31856CA5...)
  • Delete
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

© 2026 Coveralls, Inc