-
Notifications
You must be signed in to change notification settings - Fork 9
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
Implement Preprocess DAG following recent architecture updates #216
Implement Preprocess DAG following recent architecture updates #216
Conversation
Codecov Report
@@ Coverage Diff @@
## tskir-3140-better-dag-import-fix #216 +/- ##
====================================================================
+ Coverage 85.53% 85.64% +0.10%
====================================================================
Files 80 81 +1
Lines 1839 1853 +14
====================================================================
+ Hits 1573 1587 +14
Misses 266 266
|
@ireneisdoomed and I failed to make the (commented) test It feels like this is a critical test to have from a CI/CD point of view. |
Thank you for the comment @d0choa! I wasn't aware of this commented out test. I'll look into it now. |
I know this is not part of this PR, but I felt you might know better what the issue might be. I reproduced the issue in a python console: In [1]: import airflow
In [3]: from airflow.models import DagBag
In [4]: DagBag(dag_folder='src/airflow/dags', include_examples=False)
[2023-11-02T11:08:01.788+0000] {dagbag.py:536} INFO - Filling up the DagBag from src/airflow/dags
/Users/ochoa/Library/Caches/pypoetry/virtualenvs/otgenetics-_BWSZ0mB-py3.10/lib/python3.10/site-packages/airflow/providers/google/cloud/links/dataproc.py:79 AirflowProviderDeprecationWarning: This DataprocLink is deprecated.
/Users/ochoa/Library/Caches/pypoetry/virtualenvs/otgenetics-_BWSZ0mB-py3.10/lib/python3.10/site-packages/airflow/providers/google/cloud/links/dataproc.py:128 AirflowProviderDeprecationWarning: This DataprocListLink is deprecated.
[2023-11-02T11:08:04.379+0000] {dagbag.py:346} ERROR - Failed to import: src/airflow/dags/dag_preprocess.py
Traceback (most recent call last):
File "/Users/ochoa/Library/Caches/pypoetry/virtualenvs/otgenetics-_BWSZ0mB-py3.10/lib/python3.10/site-packages/airflow/models/dagbag.py", line 342, in parse
loader.exec_module(new_module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "src/airflow/dags/dag_preprocess.py", line 8, in <module>
from . import common_airflow as common
ImportError: attempted relative import with no known parent package
[2023-11-02T11:08:04.384+0000] {dagbag.py:346} ERROR - Failed to import: src/airflow/dags/dag_genetics_etl.py
Traceback (most recent call last):
File "/Users/ochoa/Library/Caches/pypoetry/virtualenvs/otgenetics-_BWSZ0mB-py3.10/lib/python3.10/site-packages/airflow/models/dagbag.py", line 342, in parse
loader.exec_module(new_module)
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "src/airflow/dags/dag_genetics_etl.py", line 8, in <module>
from . import common_airflow as common
ImportError: attempted relative import with no known parent package
Out[4]: <airflow.models.dagbag.DagBag at 0x108dbccd0> |
@d0choa Thank you for the commands! I've created an issue to address this: opentargets/issues#3140 |
afb0f92
to
1427f5f
Compare
@d0choa I've now rebased this branch on top of the recently merged PR, so that we can take advantage of the re-enabled test to check these new changes (it passes here as well) |
1427f5f
to
4490d5a
Compare
96b1051
to
029fd5d
Compare
@ireneisdoomed Thank you for the fix! I've applied it and rebased this PR on top of it. Autoscaling PR is coming up separately as it's out of scope for this one 🙃 |
9faafc3
to
104f020
Compare
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! Looks good.
Just a comment outside the scope of this PR: I hadn't realised that Finngen's study table generation is coupled to SS processing. Right now Finngen's table is static, and we wouldn't need to produce one unless there's a new version out. However we haven't dealt with trait mappings yet, and this process could break the static nature of this step.
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.
+1 to @ireneisdoomed comments.
Let's try to merge this and we keep moving
Thank you @d0choa @ireneisdoomed for constructive and thought-provoking comments, as usual! |
Closes opentargets/issues#3106.
common_airflow
module:submit_step
,read_yaml_config
, andgenerate_dag
.