Skip to content

Fix Cloud Composer system test external task sensors - #74786

Merged
shahar1 merged 1 commit into
apache:mainfrom
VladaZakharova:fix_composer_system_tests
Nov 19, 2026
Merged

shahar1 merged 1 commit into
apache:mainfrom
VladaZakharova:fix_composer_system_tests

Conversation

@olegkachur-e

Copy link
Copy Markdown
Contributor

Revert the 'execution_range' change from #72194: timedelta(days=1) is relative to the logical date, so the sensors never find the airflow_monitoring runs and wait until timeout. 'execution_range' is not a template field, so datetime.now() does not change the dag version.

More context: #72194 (comment)


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.

@olegkachur-e
olegkachur-e requested a review from shahar1 as a code owner October 15, 2026 09:12
@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Oct 15, 2026
@olegkachur-e
olegkachur-e force-pushed the fix_composer_system_tests branch from 345ec1f to 3698ea7 Compare October 15, 2026 09:13
@olegkachur-e

Copy link
Copy Markdown
Contributor Author

The updated test run well (no stuck on sensors)
Screenshot 2026-10-15 at 11 10 34

@Eason09053360 Eason09053360 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch! Checked this locally
LGTM.

@olegkachur-e

Copy link
Copy Markdown
Contributor Author

@shahar1 May I kindly ask for the review?

@shahar1 shahar1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix is right for runs that parse the Dag file again at task start, and execution_range stays out of the serialized Dag, so the Dag version is stable. In the default system test mode, though, the window still ends before the triggered run exists, so I'd like to know how the current head was run. Details and a suggested change are inline on lines 313 and 326.


This review was drafted by an AI-assisted tool and
confirmed by an Apache Airflow maintainer. The findings
below are observations, not blockers; an Apache Airflow
maintainer — a real person — will take the next look at the
PR. If you think a finding is mis-applied, please reply on
the PR and a maintainer will weigh in.

More on how Apache Airflow handles maintainer review:
Contributing guide.

@olegkachur-e
olegkachur-e force-pushed the fix_composer_system_tests branch from 388a183 to 7ff331f Compare November 10, 2026 14:56
@olegkachur-e

Copy link
Copy Markdown
Contributor Author

@shahar1 thank you for the review, I've changed the window dates range to recommended values.

Re-run updated version, it works well too:

image

@olegkachur-e
olegkachur-e requested a review from shahar1 November 10, 2026 15:03
Revert the execution_range change from apache#72194: timedelta(days=1) is
relative to the logical date, so the sensors never find the
airflow_monitoring runs and wait until timeout. execution_range is not
a template field, so datetime.now() does not change the Dag version.

More context: apache#72194 (comment)
@olegkachur-e
olegkachur-e force-pushed the fix_composer_system_tests branch from 7ff331f to c58a7cc Compare November 18, 2026 14:04
@shahar1
shahar1 merged commit 562d11e into apache:main Nov 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants