Add google_api_to_s3_transfer example dags and system tests#8581
Add google_api_to_s3_transfer example dags and system tests#8581feluelle merged 1 commit intoapache:masterfrom
Conversation
|
❤️ |
|
There are some problems with test collection though :( see the GA errors.. |
|
Awesome! Thanks for creating the |
..due to my changes? I committed my code suggestion to check if the errors are persistent. |
That's because I need @potiuk When I run backport packages script in breeze with airflow version 2.0dev it does not add How do I get it to work for both 2.0 and 1.10.* ? |
|
Do we currently miss to generate backport packages for core operators which are not included in |
|
@feluelle - We don't have (and did not plan to) have backported packages for the core operators. They are far too much "core", we think and tied to the airflow core. We could reconsider that - but for now, - those operators are so "core" that we left them in the place they are (almost - we have some deprecation notices) because we think if we change it, it will mean far, far far too many changes across 100% of DAGs out there and we wanted to avoid that. The way we handle it now - we have the bowler automated refactoring when the packages are being prepared and we do some small refactorings like that. Those are very small changes: You can see some examples here: I think @turbaszek can help with it as he wrote most of the bowler rules. |
|
And @feluelle -> actually, it should be very easy. You do not need to have provide_context in those operators. We already have the rule to add "provide_context" to Python operator automatically via the bowler rule I linked when the packages are prepared so the only change will be to add it to BranchPythonOperator as well. |
|
And maybe there are other *Python operators as well :)? |
|
@turbaszek -> I just looked at the code - should not that be removed? I think we should add provide_context to all *Python operators out there :). No matter where they are used. |
|
Thanks @potiuk for the information. So would I, for now, just add the file to the |
5526d2c to
fc47514
Compare
There was a problem hiding this comment.
For now I added this specific case here. If we want to remove the .is_filename filter this should be a separate PR. WDYT @potiuk ?
There was a problem hiding this comment.
I think it's worth limiting changes and not changing all files automatically. If we need to change another example, it will be easy to add here., ..so LGTM
|
I see that you have much bigger problems, I would like to suggest a small change, about naming "aws_system_helpers.py" as "amazon_system_helpers.py" since it contains |
- add amazon system helper for easier testing amazon aws systems / services - fix TESTING docs
fc47514 to
14fa416
Compare
Fixed. 👍 |
|
@mik-laj or @turbaszek want to have a last look? I would like to merge it (Jarek approved it already) but I also would like to have an opinion on the change in |
|
The docs build failed on master due to missing :doc: I am wondering why the build docs task succeeded on this branch but fails on master. |
|
You didn't do rebase before merging it. This check has been added 3 days ago. 923f423 |
|
Thank you Kamil 👍 :) |
This PR / change adds google_api_to_s3_transfer systems tests by running the newly added example dags. It also adds a aws system helper which can be used for providing aws context like connection or a s3 bucket for example to the system tests so you do not need to care about how to create or delete resources.
Make sure to mark the boxes below before creating PR: [x]
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.
cc @xinbinhuang @mustafagok - PTAL :)