Skip to content

[v3-3-test] Guard the backfill dag-runs list query count and tidy test params (#70126) - #70691

Draft
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-e3d060b-v3-3-test
Draft

[v3-3-test] Guard the backfill dag-runs list query count and tidy test params (#70126)#70691
github-actions[bot] wants to merge 1 commit into
v3-3-testfrom
backport-e3d060b-v3-3-test

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

The GET /backfills/{backfill_id}/dag_runs endpoint added in #67381 relies on
joinedload to keep its query count constant, but its tests did not assert that,
so a change that drops the eager-load could silently reintroduce an N+1. Add an
assert_queries_count guard on the happy path (the count stays constant
regardless of the number of dag runs). Also let the test client encode the query
parameters from a dict instead of hand-building query strings.
(cherry picked from commit e3d060b)

Co-authored-by: Pierre Jeambrun pierrejbrun@gmail.com

…t params (#70126)

The GET /backfills/{backfill_id}/dag_runs endpoint added in #67381 relies on
joinedload to keep its query count constant, but its tests did not assert that,
so a change that drops the eager-load could silently reintroduce an N+1. Add an
assert_queries_count guard on the happy path (the count stays constant
regardless of the number of dag runs). Also let the test client encode the query
parameters from a dict instead of hand-building query strings.
(cherry picked from commit e3d060b)

Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Jul 29, 2026
@vatsrahul1001 vatsrahul1001 added this to the Airflow 3.4.0 milestone Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants