-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
[AIRFLOW-6206] Move and rename AWS batch operator [AIP-21] #6764
Conversation
1a096fb
to
65f1fcc
Compare
Codecov Report
@@ Coverage Diff @@
## master #6764 +/- ##
==========================================
- Coverage 84.62% 84.48% -0.14%
==========================================
Files 673 677 +4
Lines 38279 39076 +797
==========================================
+ Hits 32392 33015 +623
- Misses 5887 6061 +174
Continue to review full report at Codecov.
|
Hi. Can you add backward compatibility and move the module to new package |
@mik-laj - With respect, adding those requirements onto this PR seems out of place. This PR is really only about renaming the module, the additional requirements for AIP-21 seem to belong elsewhere with a larger migration of many contribution modules? It seems out of place to do that migration just for this one module in this PR. AFAICT, the use of this module might not be changed because the import patterns might not refer directly to the full package path for this module, but get it via higher level packaging (or wrapping) and that is not changed here in this PR. If it is a breaking change, then it should be so because the naming pattern should be consistent across all the AWS providers (contrib modules). Since the batch operator is not already in the https://github.com/apache/airflow/blob/master/tests/test_core_to_contrib.py, it was not found with a git-grep. It might be an oversight that it's not there already, or an intentional omission. Is there a clear answer as to why it is not already there? If it's a simple omission and it's easy to add a two-line mapping, I guess it could be added here in this PR. FYI, compare the outputs from
You will see that the |
This is not just a module change, but your implementation is not backwards compatible, which can cause a problem for users who use this class.
Instead, it should display a deprecation message and work correctly in subsequent versions. In the file https://github.com/apache/airflow/blob/master/tests/test_core_to_contrib.py we have tests that check whether previous import paths still work after moving the class to a new location. Your service has not been adapted to AIP-21, so it has not been added yet, but if you are moving files then you should move the files to a good place. The file cannot be moved to the wrong/temporary place, because migration requires the user's intervention and will be very confused if in each version he will have to change the import path. Can you move also change location of tets? |
Marking this PR as WIP to bring it into line with
At the time of writing this comment, there is ongoing email threads about naming conventions and the location of the new provider packages. Some comments in those emails are proposing some changes that are inconsistent with the current |
65f1fcc
to
3cdefbc
Compare
facb939
to
21f3df8
Compare
The latest commit will be squashed when it's working. The last piece is to get the core-to-contrib tests all passing, but I'm not understanding the failure for:
The deprecation warning is coded for the module, but the class name is also changing from Also, need to update doc links. |
4ddd584
to
8448de9
Compare
Resolved WIP status and review requests to conform with AIP-21 (add the AIP-21 tag to the PR). |
8448de9
to
db7198c
Compare
The CI failed only for one "platform" and it's not related to this PR, i.e. failures were mostly cassandra:
All I can do for that is hit a travis-retry button. Actually, I don't have travis permissions to retry that particular test plaform for |
I'll try to rebase and resolve conflicts after #6765 was merged (thanks). |
db7198c
to
174e90b
Compare
Rebased and pushed the AIP-21 changes.
@mik-laj - it's ready for another round of review and please note that additional features are going to be stacked on this PR. |
174e90b
to
3111b19
Compare
- conform to AIP-21 - see https://issues.apache.org/jira/browse/AIRFLOW-4733 - see https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-21%3A+Changes+in+import+paths - use airflow.providers.amazon.aws.operators.batch.AwsBatchOperator - deprecate airflow.contrib.operators.awsbatch_operator.AWSBatchOperator - fix pylint for airflow/providers/amazon/aws/operators/batch.py
3111b19
to
c9dac4c
Compare
- conform to AIP-21 - see https://issues.apache.org/jira/browse/AIRFLOW-4733 - see https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-21%3A+Changes+in+import+paths - use airflow.providers.amazon.aws.operators.batch.AwsBatchOperator - deprecate airflow.contrib.operators.awsbatch_operator.AWSBatchOperator - fix pylint for airflow/providers/amazon/aws/operators/batch.py
- conform to AIP-21 - see https://issues.apache.org/jira/browse/AIRFLOW-4733 - see https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-21%3A+Changes+in+import+paths - use airflow.providers.amazon.aws.operators.batch.AwsBatchOperator - deprecate airflow.contrib.operators.awsbatch_operator.AWSBatchOperator - fix pylint for airflow/providers/amazon/aws/operators/batch.py
Jira
Description
Modules and classes for AWS batch are adapted to https://cwiki.apache.org/confluence/display/AIRFLOW/AIP-21%3A+Changes+in+import+paths
Tests
Commits
Documentation