zozo123 commented on PR #76157: URL: https://github.com/apache/airflow/pull/76157#issuecomment-7102136981
The Genie hook copy in this PR now follows the review on #74517, as of 927c689c3e: * The token goes through `_TokenAuth`, so a `~/.netrc` entry cannot replace it. This was already in cc56a4e and has a test. * `DatabricksGenieError` now lives in `exceptions.py` as a `DatabricksApiError` subclass with `http_status_code`, so the hook, operator and trigger catch one type and the type ignore is gone. * New tests cover `consult` ending FAILED, CANCELLED, expired or with an unknown status, the consult deadline, and the `vendor_options` refusal in `invoke_agent`. * Hook tests use fixtures built on `mock.patch.object(..., autospec=True)` instead of bare mocks. * The `common.ai` extra already requires `>=1.0.0` on this branch, and provider.yaml has no dependency list to match. `_request` stays separate from `_do_api_call` for now. `_do_api_call` serves about 49 call sites, retries every method through one policy, reads and debug logs the whole body, puts the raw body in its errors, uses a fixed timeout and has no HTTPS guard. Genie needs a POST sent once with an outcome unknown error, a streamed size cap, a per call deadline and a step that resolves credentials before the durable marker is written. Adding all of that to the shared client felt safer as its own follow up on the base hook. One open question for the common.ai maintainers: `agent_platform = "databricks.genie"` becomes a stored label in common.ai metrics and `ManagedAgentRef`, so renaming it later would break dashboards. It would be good to confirm the name before release. I left it unchanged. -- 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]
