apupier opened a new pull request, #30507: URL: https://github.com/apache/camel/pull/30507
## Summary Fixes the flaky `OpenFeatureLanguageTest` (36% failure rate on CI). ### Root cause `FlagdProvider.initialize()` calls `syncResources.waitForInitialization(deadline * 2)`. The `deadline` field on `FlagdOptions` defaulted to **500 ms**, making the effective initialization wait **1000 ms** — the exact value shown in the error: > _Initialization timeout exceeded; did not complete within the 1000 ms deadline._ For file/in-process resolvers the `deadline` option controls only the initialization wait (not a network timeout). Under a loaded CI agent, the `InProcessResolver` file-watcher thread and JSON parsing can easily exceed 1 second. ### Fix - Raise the `deadline` default from **500 ms to 5000 ms** (giving a 10 s init window for file/in-process providers). - Wire `configuration.getDeadline()` into both file-based `FlagdOptions` builders (`createFileProviderFromPath` and `createFileProviderFromContent`) so the value is configurable per endpoint URI or component property. - Update the `deadline` `@UriParam` description to cover both the remote gRPC and file/in-process cases. - Regenerate `openfeature.json` in the component and catalog with the new default and description. ### Testing All 48 tests in `camel-openfeature` pass. --- _AI-generated on behalf of apupier — IBM Bob 2.2.1_ -- 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]
