AmoghAtreya opened a new pull request, #70359:
URL: https://github.com/apache/airflow/pull/70359
### Description
Resolves #70296 for `S3DeleteObjectsOperator` and
`ComputeEngineDeleteInstanceOperator`.
#### Changes Made:
1. **`S3DeleteObjectsOperator` (`amazon`)**:
- Deferred parameter validation on template fields (`keys`, `prefix`,
`from_datetime`, `to_datetime`) from `__init__` into `execute()`.
- Updated unit tests in `tests/providers/amazon/aws/operators/test_s3.py`
to assert parameter checks occur during execution rather than constructor time.
2. **`ComputeEngineDeleteInstanceOperator` (`google`)**:
- Deferred `GcpBodyFieldValidator` instantiation out of `__init__` and
into `execute()` so `api_version` is evaluated after Jinja rendering.
- Added unit tests in
`tests/providers/google/cloud/operators/test_compute.py` verifying validator
instantiation occurs inside `execute()`.
3. **CI Exemptions**:
- Removed both `path::ClassName` entries from
`scripts/ci/prek/validate_operators_init_exemptions.txt`.
works on: #70296
---
##### Was generative AI tooling used to co-author this PR?
- [X] Yes (Claude Sonnet)
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]