daesung9511 opened a new pull request, #70454:
URL: https://github.com/apache/airflow/pull/70454

   Move Compute Engine input validation and template-dependent transformations 
out of operator constructors.
   
   The affected operators previously performed validation and derived values 
such as resource_id during __init__. Because template fields are rendered after 
operator initialization, this caused validation and transformation logic to run 
against unrendered values.
   
   @shahar1 
   
   This change:
   
   * Move Compute Engine input validation from operator constructors to 
execution time
   * Defer template-dependent transformations, including resolving resource_id 
from rendered body fields
   * Create body validators after template rendering
   * Preserve runtime validation for existing Compute Engine start and stop 
operators
   * Update unit tests to verify validation during execution
   * Remove the corresponding operators from the constructor logic exemption 
list
   
   Tests:
   
   ```bash
   breeze testing providers-tests 
providers/google/tests/unit/google/cloud/operators/test_compute.py
   ```
   
   related: #70296
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   * [ ] Yes (please specify the tool below)
   
   ---


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