Vamsi-klu opened a new pull request, #66683: URL: https://github.com/apache/airflow/pull/66683
Replace the deferrable GKE extra-link tests that build loose `MagicMock(metadata=...)` objects with the existing Kubernetes model helpers already used elsewhere in the file. This keeps the regression coverage intact while making the trigger tests fail on invalid metadata access instead of silently accepting any attribute shape. related: #46658 Validation: - `uv run ruff format providers/google/tests/unit/google/cloud/operators/test_kubernetes_engine.py` - `uv run ruff check --fix providers/google/tests/unit/google/cloud/operators/test_kubernetes_engine.py` - `breeze run pytest providers/google/tests/unit/google/cloud/operators/test_kubernetes_engine.py -xvs` - `prek run --from-ref main --stage pre-commit` - `prek run --from-ref main --stage manual` (`mypy-providers` still reports unrelated failures in `providers/pinecone/src/airflow/providers/pinecone/hooks/pinecone.py:190` and `providers/pinecone/src/airflow/providers/pinecone/operators/pinecone.py:88`) - `breeze ci selective-check --commit-ref HEAD` --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Codex (GPT-5) Generated-by: Codex (GPT-5) 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]
