-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix manifest testing behavior #955
Fix manifest testing behavior #955
Conversation
✅ Deploy Preview for sunny-pastelito-5ecb04 canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for working on this fix, @chris-okorodudu !
It seems some of the tests are breaking, such as:
+ where {'/home/runner/work/astronomer-cosmos/astronomer-cosmos/dev/dags/example_virtualenv.py': 'Traceback (most recent call ...ate_node_dependency\n for _, node in self.nodes.items():\nRuntimeError: dictionary changed size during iteration\n'} =
Could you fix this, please?
Yes definitely I'll try to take a look later today |
closes: astronomer#952 This PR addresses the following issues: **1. Pre-commit Setup:** - Pre-commit was not running in the CI pipeline because it was neither configured for this repository nor were we using the pre-commit command in CI to run it manually. To fix this: Installed and added pre-commit to this repository. This allows pre-commit to automatically run the pre-commit configuration on every push. **2. Type Check Job:** - Previously, the type-check job was running with mypy directly, and the pre-commit type check command had different configurations. This PR aligns the configurations. **3. Type Check Fixes:** - Ignored the type check for __dataclass_fields__ since mypy seems to not recognize it. - Added a check for None for ti.task
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #955 +/- ##
=======================================
Coverage 95.69% 95.69%
=======================================
Files 59 59
Lines 2879 2880 +1
=======================================
+ Hits 2755 2756 +1
Misses 124 124 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks a lot, @chris-okorodudu !
Updating the update_node_dependency method to ensure all relevant test nodes are included in the airflow graph. This fix stems from the test nodes not being included in the filtered_nodes dict after the select_nodes method is used to do filtering by graph operator. Closes: astronomer#949
Description
Updating the update_node_dependency method to ensure all relevant test nodes are included in the airflow graph. This fix stems from the test nodes not being included in the filtered_nodes dict after the select_nodes method is used to do filtering by graph operator.
Related Issue(s)
#949
Breaking Change?
Checklist