Skip to content

Run listener tests in Airflow 3#1743

Merged
tatiana merged 12 commits into
mainfrom
fix_af3_test
May 6, 2025
Merged

Run listener tests in Airflow 3#1743
tatiana merged 12 commits into
mainfrom
fix_af3_test

Conversation

@pankajastro
Copy link
Copy Markdown
Contributor

@pankajastro pankajastro commented May 5, 2025

closes: #1703

Previously, we sent the dag_hash to Scarf,
but with the removal of DagRun.dag_hash in Airflow 3,
this PR modifies the implementation to send a portion
of the dag_id hash instead. This change is a reasonable
compromise, as we only need a unique identifier for the DAG.
Additionally, the PR updates the relevant test cases to reflect this change.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.70%. Comparing base (e3b0b5e) to head (650935f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1743   +/-   ##
=======================================
  Coverage   97.69%   97.70%           
=======================================
  Files          84       84           
  Lines        5209     5220   +11     
=======================================
+ Hits         5089     5100   +11     
  Misses        120      120           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2025

Deploy Preview for sunny-pastelito-5ecb04 canceled.

Name Link
🔨 Latest commit 650935f
🔍 Latest deploy log https://app.netlify.com/sites/sunny-pastelito-5ecb04/deploys/6819e642459a80000848eeff

Comment thread .github/workflows/test.yml Outdated
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 5, 2025

Deploying astronomer-cosmos with  Cloudflare Pages  Cloudflare Pages

Latest commit: 650935f
Status: ✅  Deploy successful!
Preview URL: https://2efac587.astronomer-cosmos.pages.dev
Branch Preview URL: https://fix-af3-test.astronomer-cosmos.pages.dev

View logs

Comment thread tests/listeners/test_dag_run_listener.py Outdated
Comment thread tests/listeners/test_dag_run_listener.py Outdated
Comment thread tests/listeners/test_dag_run_listener.py Outdated
@pankajastro pankajastro changed the title Fix af3 test Run listener tests AF3 May 5, 2025
@pankajastro pankajastro marked this pull request as ready for review May 5, 2025 15:39
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. area:testing Related to testing, like unit tests, integration tests, etc labels May 5, 2025
@pankajastro pankajastro marked this pull request as draft May 6, 2025 05:48
@pankajastro pankajastro marked this pull request as ready for review May 6, 2025 06:44
Comment thread cosmos/listeners/dag_run_listener.py Outdated
@tatiana tatiana added this to the Cosmos 1.10.1 milestone May 6, 2025
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 6, 2025
@tatiana tatiana changed the title Run listener tests AF3 Run listener tests in Airflow 3 May 6, 2025
@tatiana tatiana merged commit a532a20 into main May 6, 2025
90 checks passed
@tatiana tatiana deleted the fix_af3_test branch May 6, 2025 10:37
pankajkoti pushed a commit that referenced this pull request May 21, 2025
closes: #1703

Previously, we sent the dag_hash to Scarf,
but with the removal of DagRun.dag_hash in Airflow 3,
this PR modifies the implementation to send a portion
of the dag_id hash instead. This change is a reasonable
compromise, as we only need a unique identifier for the DAG.
Additionally, the PR updates the relevant test cases to reflect this
change.

---------

Co-authored-by: Tatiana Al-Chueyr <tatiana.alchueyr@gmail.com>
(cherry picked from commit a532a20)
pankajkoti added a commit that referenced this pull request May 21, 2025
Bug Fixes

* Fix ``full_refresh`` parameter in ``AIRFLOW_ASYNC``
``ExecutionConfig`` mode by @tuantran0910 in #1738
* Fix dbt ls invocation method log message by @tatiana and @dstandish in
#1749
* Ensure remote target directory is created when copying files when
using local directory by @tuantran0910 and @corsettigyg in #1740
* Support custom ``packages-install-path`` by @tatiana in #1768
* Disable dbt static parser during Airflow task execution using dbt
runner by @pankajkoti and @tatiana in #1760
* Fix ``ExecutionMode.LOCAL`` to leverage
``ProjectConfig.manifest_path`` by @tatiana in #1772
* Refactor ``AIRFLOW_ASYNC`` so that the path in the remote object store
is specific per DAG run by @tuantran0910 in #1741
* Optimise memory usage with optional explicit imports by @pankajkoti
and @tatiana in #1769

Documentation

* Fix documentation rendering for ``use_dataset_airflow3_uri_standard``
by @pankajastro in #1742
* Correct custom callback example by @walter9388 in #1747

Others

* Re-enable integration tests durations to troubleshoot performance
degradation by @tatiana in #1735
* Run listener tests for Airflow 3 by @pankajastro in #1743
* Add Airflow 3 db files to ignore from git tracking by @pankajkoti in
#1755
* Log contents of ``packages.yml`` when
``AIRFLOW__LOGGING__LOGGING_LEVEL=DEBUG`` by @tatiana in #1764
* Fix Airflow dependencies in the CI by @tatiana in #1773
* Pre-commit updates: #1744, #1765, #1770
pankajkoti added a commit that referenced this pull request May 21, 2025
Bug Fixes

* Fix ``full_refresh`` parameter in ``AIRFLOW_ASYNC``
``ExecutionConfig`` mode by @tuantran0910 in #1738
* Fix dbt ls invocation method log message by @tatiana and @dstandish in
#1749
* Ensure remote target directory is created when copying files when
using local directory by @tuantran0910 and @corsettigyg in #1740
* Support custom ``packages-install-path`` by @tatiana in #1768
* Disable dbt static parser during Airflow task execution using dbt
runner by @pankajkoti and @tatiana in #1760
* Fix ``ExecutionMode.LOCAL`` to leverage
``ProjectConfig.manifest_path`` by @tatiana in #1772
* Refactor ``AIRFLOW_ASYNC`` so that the path in the remote object store
is specific per DAG run by @tuantran0910 in #1741
* Optimise memory usage with optional explicit imports by @pankajkoti
and @tatiana in #1769

Documentation

* Fix documentation rendering for ``use_dataset_airflow3_uri_standard``
by @pankajastro in #1742
* Correct custom callback example by @walter9388 in #1747

Others

* Re-enable integration tests durations to troubleshoot performance
degradation by @tatiana in #1735
* Run listener tests for Airflow 3 by @pankajastro in #1743
* Add Airflow 3 db files to ignore from git tracking by @pankajkoti in
#1755
* Log contents of ``packages.yml`` when
``AIRFLOW__LOGGING__LOGGING_LEVEL=DEBUG`` by @tatiana in #1764
* Fix Airflow dependencies in the CI by @tatiana in #1773
* Pre-commit updates: #1744, #1765, #1770


---------

(cherry picked from commit 430be00)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:testing Related to testing, like unit tests, integration tests, etc lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Listener tests failing Integration tests AF3 CI

2 participants