Repository navigation
[airflow-ctl/v0-1-test] Fix airflowctl backfill create-dry-run printing one all-null row (#76224) - #76478
Merged
shahar1 merged 1 commit intoNov 4, 2026
Conversation
…ng one all-null row (apache#76224) The dry-run endpoint returns the runs a backfill would create, not a backfill. Parsing that payload as a backfill dropped every row, and the missing-field fallback for older servers turned the mismatch into a single all-null row plus a misleading "older Airflow line" warning. (cherry picked from commit d07cb5f) Conflict resolution: this branch has no validate_response helper (main-only), so create_dry_run uses model_validate_json like its neighbours. The test split is kept because main's parametrized test_create depends on main-only exclude_defaults behaviour; only test_create_dry_run changes. Dropped the e2e comment about a pre-3.2 warning, which this branch does not emit on this path. On this branch the symptom differs: with no missing-field fallback, the command exited 1 with a "Response did not match the airflowctl model BackfillResponse" error instead of printing a null row. Claude-Session: https://claude.ai/code/session_01BVx6g9nLEf9mMXrtSEjLR7
shahar1
requested review from
amoghrajesh,
ashb,
bugraoz93,
dheerajturaga,
gopidesupavan,
jason810496,
jscheffl and
potiuk
as code owners
November 4, 2026 18:16
shahar1
enabled auto-merge (squash)
November 4, 2026 18:18
shahar1
added a commit
to shahar1/airflow
that referenced
this pull request
Nov 4, 2026
…ng one all-null row (apache#76224) (apache#76478) The dry-run endpoint returns the runs a backfill would create, not a backfill. Parsing that payload as a backfill dropped every row, and the missing-field fallback for older servers turned the mismatch into a single all-null row plus a misleading "older Airflow line" warning. (cherry picked from commit d07cb5f) Conflict resolution: this branch has no validate_response helper (main-only), so create_dry_run uses model_validate_json like its neighbours. The test split is kept because main's parametrized test_create depends on main-only exclude_defaults behaviour; only test_create_dry_run changes. Dropped the e2e comment about a pre-3.2 warning, which this branch does not emit on this path. On this branch the symptom differs: with no missing-field fallback, the command exited 1 with a "Response did not match the airflowctl model BackfillResponse" error instead of printing a null row. Claude-Session: https://claude.ai/code/session_01BVx6g9nLEf9mMXrtSEjLR7 Co-authored-by: Y-C <[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.
Backport of #76224 to
airflow-ctl/v0-1-test. Thebackport-to-airflow-ctl/v0-1-testlabel did not produce a PR because the cherry-pick conflicts with this branch.The dry-run endpoint returns the runs a backfill would create, but
create_dry_runparses that response as aBackfillResponse. This branch has no missing-field fallback on that path, so the symptom is worse than on main: everyairflowctl backfill create-dry-runexits 1 withResponse did not match the airflowctl model BackfillResponseinstead of printing the runs.Differences from the commit on main:
create_dry_runusesmodel_validate_json, like its neighbours, becausevalidate_responseis main-only.test_createandtest_create_dry_runstay separate, because main's parametrizedtest_createdepends on main-onlyexclude_defaultsbehaviour.The new end-to-end test has not been run: it does not run locally here, and this PR's CI may not include it. It should be run against real servers before the next airflowctl release.
(cherry picked from commit d07cb5f)
related: #76224
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5.5, Sonnet 5.5) following the guidelines
🤖 Generated with Claude Code
https://claude.ai/code/session_01BVx6g9nLEf9mMXrtSEjLR7