Vamsi-klu commented on PR #68527:
URL: https://github.com/apache/airflow/pull/68527#issuecomment-4762584640

   ## Databricks proxy support validation for PR #68527
   
   Validated against exact PR head `124d736716ec26bc58bdcd71d57335b6b5998893` 
on June 21, 2026.
   
   ### Test suite
   
   Focused Databricks provider tests passed:
   
   ```text
   284 passed, 1 warning in 7.85s
   ```
   
   Command:
   
   ```bash
   
PYTHONPATH=/Users/nalam/Downloads/airflow-68527-vr/airflow-core/src:/Users/nalam/Downloads/airflow-68527-vr/providers/databricks/src
 \
     /Users/nalam/airflow-1/.venv/bin/python -m pytest \
     providers/databricks/tests/unit/databricks/hooks/test_databricks_base.py \
     providers/databricks/tests/unit/databricks/hooks/test_databricks.py \
     providers/databricks/tests/unit/databricks/hooks/test_databricks_sql.py -q
   ```
   
   ### Live Databricks validation
   
   Created a one-day personal access token scoped to `clusters`, used it only 
for this validation, and revoked it after the run. The access token page 
returned to `No tokens exist.` after cleanup.
   
   The live validation used Airflow's `DatabricksHook` from the PR worktree 
with connection extra:
   
   ```json
   {
     "proxies": {
       "http": "http://127.0.0.1:<port>",
       "https": "http://127.0.0.1:<port>"
     }
   }
   ```
   
   The validation called `GET /api/2.0/clusters/list` against the Databricks 
workspace through a local HTTP CONNECT proxy.
   
   Sync path result:
   
   ```text
   sync_api_result.ok=true
   sync_api_result.cluster_count=0
   sync_proxy_tunnel_to_workspace_observed=true
   CONNECT dbc-c1a3fd5e-8c66.cloud.databricks.com:443 HTTP/1.1
   ```
   
   Async path result:
   
   ```text
   async_api_result.ok=true
   async_api_result.cluster_count=0
   async_proxy_tunnel_to_workspace_observed=true
   CONNECT dbc-c1a3fd5e-8c66.cloud.databricks.com:443 HTTP/1.1
   ```
   
   This covers the PR's sync `requests` forwarding path and async `aiohttp` 
forwarding path with an authenticated Databricks API call.
   
   ### Evidence
   
   Evidence bundle: 
https://gist.github.com/Vamsi-klu/fd442d24aec03cd0bae7c6bfc0997e22
   
   Validation JSON: 
https://gist.githubusercontent.com/Vamsi-klu/fd442d24aec03cd0bae7c6bfc0997e22/raw/70dc93e752813464937281658b7edc34d2c942b1/databricks_proxy_live_validation.json
   
   Repro script: 
https://gist.githubusercontent.com/Vamsi-klu/fd442d24aec03cd0bae7c6bfc0997e22/raw/70dc93e752813464937281658b7edc34d2c942b1/databricks_proxy_live_validation.py
   
   Workspace availability:
   
   ![Workspace 
availability](https://gist.githubusercontent.com/Vamsi-klu/fd442d24aec03cd0bae7c6bfc0997e22/raw/70dc93e752813464937281658b7edc34d2c942b1/databricks-one-workspace-cropped.jpg)
   
   Workspace page:
   
   ![Workspace 
page](https://gist.githubusercontent.com/Vamsi-klu/fd442d24aec03cd0bae7c6bfc0997e22/raw/70dc93e752813464937281658b7edc34d2c942b1/databricks-workspace-genie-page.jpg)
   
   Post-cleanup token state:
   
   ![Post-cleanup token 
state](https://gist.githubusercontent.com/Vamsi-klu/fd442d24aec03cd0bae7c6bfc0997e22/raw/70dc93e752813464937281658b7edc34d2c942b1/databricks-access-tokens-cropped.jpg)
   


-- 
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