Skip to content

[airflow-ctl/v0-1-test] Fix airflowctl backfill create-dry-run printing one all-null row (#76224) - #76478

Merged
shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-d07cb5f-airflow-ctl/v0-1-test
Nov 4, 2026
Merged

shahar1 merged 1 commit into
apache:airflow-ctl/v0-1-testfrom
shahar1:backport-d07cb5f-airflow-ctl/v0-1-test

Conversation

@shahar1

@shahar1 shahar1 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Backport of #76224 to airflow-ctl/v0-1-test. The backport-to-airflow-ctl/v0-1-test label 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_run parses that response as a BackfillResponse. This branch has no missing-field fallback on that path, so the symptom is worse than on main: every airflowctl backfill create-dry-run exits 1 with Response did not match the airflowctl model BackfillResponse instead of printing the runs.

Differences from the commit on main:

  • create_dry_run uses model_validate_json, like its neighbours, because validate_response is main-only.
  • test_create and test_create_dry_run stay separate, because main's parametrized test_create depends on main-only exclude_defaults behaviour.
  • The end-to-end test drops the comment about a pre-3.2 warning, because this branch does not emit one on this path.

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?
  • Yes — Claude Code (Opus 5.5, Sonnet 5.5)

Generated-by: Claude Code (Opus 5.5, Sonnet 5.5) following the guidelines

🤖 Generated with Claude Code

https://claude.ai/code/session_01BVx6g9nLEf9mMXrtSEjLR7

…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
shahar1 enabled auto-merge (squash) November 4, 2026 18:18
@shahar1
shahar1 merged commit 3a7d6a4 into apache:airflow-ctl/v0-1-test Nov 4, 2026
14 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants