bramhanandlingala opened a new pull request, #70574: URL: https://github.com/apache/airflow/pull/70574
Fixes the microsoft/azure provider's GCSToAzureBlobStorageOperator entry from the #70296 exemption-list burn-down. `match_glob` is a template field, but `__init__` validated it against the installed `apache-airflow-providers-google` version and raised immediately if unsupported — so this check ran on the un-rendered Jinja expression instead of the actual rendered value. Moved the compatibility check from `__init__` into `execute()`, right before `match_glob` is used to build the GCS list call. `__init__` now only does a plain assignment. `_is_match_glob_supported` itself stays computed in `__init__`, since it depends on the installed provider version, not on any template field. - Removed the raise from `__init__`; `self.match_glob = match_glob` is now a plain assignment. - Added the same check in `execute()`, guarded by `_is_match_glob_supported`. - Updated the existing test to construct the operator successfully and assert the error on `.execute()` instead of construction. - Removed the operator's entry from `validate_operators_init_exemptions.txt`. Verified locally that `scripts/ci/prek/validate_operators_init.py` reports zero findings for this class after the change, and that the existing unit tests in `test_gcs_to_wasb.py` pass with the updated test. This mirrors the same fix already applied to `GCSToS3Operator` (#70484) for the identical `match_glob`-version-check pattern. Related to #70296 --- Gen-AI disclosure: I used a generative AI tool to help identify the root cause, write tests, and draft the PR description. I reviewed, tested, and verified all changes locally before submitting. ##### Was generative AI tooling used to co-author this PR? - [X] Yes - Claude Generated-by: Claude following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- 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]
