namanjain24-sudo opened a new pull request, #72791: URL: https://github.com/apache/airflow/pull/72791
Adds unit tests for `OperationHelper`, which had no direct coverage despite being used by more than ten Google hooks and operators, including `cloud_build`, `dataplex`, `translate` and the `vertex_ai` family. Covers the success path and argument forwarding, the `GoogleAPICallError` wrapping (including that the original error is preserved as the cause), the fallthrough to `operation.exception()` for other failures, and the float-to-int timeout normalisation in the legacy wrapper. Verified by mutation: removing the timeout normalisation, disabling the `GoogleAPICallError` branch, and dropping the `operation.exception()` call each fail a distinct test. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — generative AI tooling assisted with this PR. All code was reviewed before submission. -- 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]
