Skip to content

fix: make Gemini Interactions drift tests resilient to API unavailability#151

Merged
jpr5 merged 1 commit intomainfrom
fix/gemini-interactions-drift-resilience
May 3, 2026
Merged

fix: make Gemini Interactions drift tests resilient to API unavailability#151
jpr5 merged 1 commit intomainfrom
fix/gemini-interactions-drift-resilience

Conversation

@jpr5
Copy link
Copy Markdown
Contributor

@jpr5 jpr5 commented May 3, 2026

Summary

  • Drift tests: All 4 Gemini Interactions drift tests now wrap real API calls in try/catch. When the API returns HTTP errors (404, 5xx), the test warns and passes instead of crashing with an unparseable failure message.
  • Drift collector: The collectDriftEntries guard now distinguishes infrastructure failures (HTTP errors, connection refused) from broken report formats. API unavailability warns instead of crashing; actual format mismatches still crash.

Fixes the drift job failure introduced by PR #139 (Gemini Interactions API).

Test plan

  • 2718 tests pass
  • tsc clean

…lity

Wrap real API calls in try/catch so tests pass (skip drift comparison)
when the Gemini Interactions API returns HTTP errors. Also harden the
drift-report-collector to distinguish infrastructure errors (HTTP 4xx/5xx,
DNS failures, etc.) from broken drift report formats — warn instead of
crash for the former.
@jpr5 jpr5 merged commit faf2c67 into main May 3, 2026
@jpr5 jpr5 deleted the fix/gemini-interactions-drift-resilience branch May 3, 2026 20:30
@jpr5 jpr5 restored the fix/gemini-interactions-drift-resilience branch May 3, 2026 20:36
@jpr5 jpr5 deleted the fix/gemini-interactions-drift-resilience branch May 4, 2026 17:30
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.

1 participant