oscerd opened a new pull request, #25393:
URL: https://github.com/apache/camel/pull/25393

   Follow-up to #25362, which turned `main` red: 
`GoogleVertexAIProducerOptionsTest` fails in CI with
   
   ```
   ResolveEndpointFailed ... due to: java.io.IOException: Your default 
credentials were not found.
   ```
   
   The test resolved its endpoint from a **started** `CamelContext`. Camel 
starts endpoints created on a
   started context, and `GoogleVertexAIEndpoint.doStart()` builds the Vertex AI 
client, which falls back
   to Application Default Credentials. My workstation has ADC configured, so 
the test passed locally and
   failed on every machine that has none.
   
   The endpoint is now created through the component and never started — the 
same pattern the existing
   `GoogleVertexAIProducerOperationsTest` uses. `buildConfig` and 
`determineStreamOutputMode` only read
   the configuration, so no client is needed.
   
   Verified by reproducing the CI failure locally with `CLOUDSDK_CONFIG` 
pointed at an empty directory
   and `GOOGLE_APPLICATION_CREDENTIALS` cleared: 4 errors before the change, 
13/13 module tests green
   after it.
   
   Sorry for the breakage — the fix is test-only, no production code is touched.
   
   _Claude Code on behalf of oscerd_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to