Skip to content

[v3-2-test] Backport 65628#67013

Open
bbovenzi wants to merge 2 commits into
apache:v3-2-testfrom
astronomer:backport-65628
Open

[v3-2-test] Backport 65628#67013
bbovenzi wants to merge 2 commits into
apache:v3-2-testfrom
astronomer:backport-65628

Conversation

@bbovenzi
Copy link
Copy Markdown
Contributor

Manually backport #65628


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

bbovenzi added 2 commits May 15, 2026 16:36
Remove the two mocked only_new dry-run tests that patched SerializedDAG.clear
and asserted it was called — the dry-run path no longer calls dag.clear() for
only_new=True (it queries the DB directly for TI existence instead).

Replace with a real DB-backed test: since DAG1_RUN1_ID already has TIs for all
tasks in the latest DAG version, the endpoint correctly returns 0 new tasks.

Also fix test_only_new_skips_task_that_already_has_ti to create the task_b TI
via the non-dry-run API endpoint instead of constructing a bare TaskInstance
object, which requires a task Operator and dag_version_id and would fail.
@boring-cyborg boring-cyborg Bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. labels May 15, 2026
@bbovenzi bbovenzi changed the title Backport 65628 [v3-2-test] Backport 65628 May 15, 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 area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant