Skip to content

Fix asset events test for Dag runs without start date - #71799

Merged
hussein-awala merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/fix-unstarted-dag-run-asset-event-test
Aug 18, 2026
Merged

Fix asset events test for Dag runs without start date#71799
hussein-awala merged 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/fix-unstarted-dag-run-asset-event-test

Conversation

@vincbeck

Copy link
Copy Markdown
Contributor

The /assets/events endpoint scopes returned events to the Dags the caller may read, resolving against DagModel. The test creates an event whose source Dag is never registered, so the scoping filter excludes it and the asset_events list comes back empty, tripping an IndexError. Register the source Dag as a real deployment would.


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.

The /assets/events endpoint scopes returned events to the Dags the caller
may read, resolving against DagModel. The test creates an event whose
source Dag is never registered, so the scoping filter excludes it and the
asset_events list comes back empty, tripping an IndexError. Register the
source Dag as a real deployment would.
@boring-cyborg boring-cyborg Bot added the area:API Airflow's REST/HTTP API label Aug 18, 2026
@hussein-awala
hussein-awala merged commit ae54b2b into apache:main Aug 18, 2026
78 checks passed
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.

4 participants