Repository navigation
Clarify template-field validator guidance - #71210
Conversation
The existing diagnostic obscures the documented provision-check exception and has led contributors toward incorrect fixes. Surface the distinction at the point of failure.
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
|
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
Backport failed to create: v3-3-test. View the failure log Run detailsNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
You can attempt to backport this manually by running: cherry_picker 805a37c v3-3-testThis should apply the commit to the v3-3-test branch and leave the commit in conflict state marking After you have resolved the conflicts, you can continue the backport process by running: cherry_picker --continueIf you don't have cherry-picker installed, see the installation guide. |
Clarify the
validate-operators-initdiagnostic at the point where contributors encounter template-field constructor logic.The burn-down distinguishes value-dependent validation or transformation, which must run after template rendering, from argument-provision checks, which belong in
__init__. The current message only recommends moving logic toexecute(), making the documented exception easy to miss. This change names both cases, links the issue's false-positive guidance, and adds regression coverage for the emitted diagnostic without changing validator semantics or the exemption list.related: #70296
Testing:
uv run --frozen pytest scripts/tests/ci/prek/test_validate_operators_init.py -q(49 passed)uv run --frozen pytest scripts/tests/ci/prek -q(845 passed)mypy-scripts(245 files) andmypy-devel-common(100 files)breeze ci selective-check --commit-ref HEADWas generative AI tooling used to co-author this PR?
Generated-by: Codex (GPT-5) following the guidelines
Drafted-by: Codex (GPT-5) (no human review before posting)