Repository navigation
[airflow-ctl/v0-1-test] Report invalid variables in airflowctl variables import as readable errors (#76174) - #76196
Merged
shahar1 merged 2 commits intoNov 1, 2026
Conversation
…les import as readable errors (#76174) A variable with a bad value, such as a non-string description or a blank or over-long key, crashed `airflowctl variables import` with a raw pydantic traceback that did not say which variable was wrong. Report the variable key, the file and the reason instead, as `airflowctl connections import` already does. (cherry picked from commit 122f7b4) Co-authored-by: Rishabh <[email protected]>
1 task done
The blank-key case relies on the pattern constraint that #74896 added to VariableBody.key. That change is not on airflow-ctl/v0-1-test: the branch models follow the 3.2 spec, and Airflow 3.2 and 3.3 servers accept a whitespace-only key.
shahar1
marked this pull request as ready for review
November 1, 2026 09:05
shahar1
requested review from
bugraoz93,
dheerajturaga and
potiuk
as code owners
November 1, 2026 09:05
shahar1
approved these changes
Nov 1, 2026
shahar1
added a commit
that referenced
this pull request
Nov 19, 2026
…les import as readable errors (#76174) (#76196) * [airflow-ctl/v0-1-test] Report invalid variables in airflowctl variables import as readable errors (#76174) A variable with a bad value, such as a non-string description or a blank or over-long key, crashed `airflowctl variables import` with a raw pydantic traceback that did not say which variable was wrong. Report the variable key, the file and the reason instead, as `airflowctl connections import` already does. (cherry picked from commit 122f7b4) Co-authored-by: Rishabh <[email protected]> * Drop the blank-key import test case from the v0-1-test backport The blank-key case relies on the pattern constraint that #74896 added to VariableBody.key. That change is not on airflow-ctl/v0-1-test: the branch models follow the 3.2 spec, and Airflow 3.2 and 3.3 servers accept a whitespace-only key. --------- Co-authored-by: Rishabh <[email protected]> Co-authored-by: Shahar Epstein <[email protected]>
28 of 67 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A variable with a bad value, such as a non-string description or an
over-long key, crashed
airflowctl variables importwith a rawpydantic traceback that did not say which variable was wrong. Report the
variable key, the file and the reason instead, as
airflowctl connections importalready does.(cherry picked from commit 122f7b4)
Co-authored-by: Rishabh [email protected]