[AIRFLOW-865] - Configure FTP connection mode#4535
[AIRFLOW-865] - Configure FTP connection mode#4535Fokko merged 8 commits intoapache:masterfrom OmerJog:Airflow-865
Conversation
[AIRFLOW-865] - Configure FTP connection mode
[AIRFLOW-865] - Configure FTP connection mode
#4526) [AIRFLOW-XXX] Include Los Angeles Times as a contributor in the Readme [AIRFLOW-3681] All GCP operators have now optional GCP Project ID (#4500)
|
Test failures doesn't seem related to the PR. |
zhongjiajie
left a comment
There was a problem hiding this comment.
CI test failed due to AttributeError
tests/contrib/hooks/test_ftp_hook.py
Outdated
|
|
||
| configuration.load_test_config() | ||
| db.merge_conn( | ||
| models.Connection( |
There was a problem hiding this comment.
The CI test show error like this
41) ERROR: test_ftp_active_mode (tests.contrib.hooks.test_ftp_hook.TestIntegrationFTPHook)
----------------------------------------------------------------------
Traceback (most recent call last):
tests/contrib/hooks/test_ftp_hook.py line 140 in setUp
models.Connection(
AttributeError: module 'airflow.models' has no attribute 'Connection'
======================================================================
I think I failed due to models.Connection
There was a problem hiding this comment.
@zhongjiajie You are correct. This happened since Connection was moved out of models.py in Master branch.
submitted a fix for this.
|
Can someone restart the error test? It wasn't finished. |
zhongjiajie
left a comment
There was a problem hiding this comment.
@OmerJog you just commit some unnecessary change
Co-Authored-By: OmerJog <44576851+OmerJog@users.noreply.github.com>
Codecov Report
@@ Coverage Diff @@
## master #4535 +/- ##
==========================================
+ Coverage 73.81% 74.14% +0.32%
==========================================
Files 421 421
Lines 27662 27666 +4
==========================================
+ Hits 20418 20512 +94
+ Misses 7244 7154 -90
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #4535 +/- ##
==========================================
+ Coverage 73.81% 74.14% +0.32%
==========================================
Files 421 421
Lines 27662 27666 +4
==========================================
+ Hits 20418 20512 +94
+ Misses 7244 7154 -90
Continue to review full report at Codecov.
|
|
@Fokko PTAL |
|
Any further comments? |
Fokko
left a comment
There was a problem hiding this comment.
Looking good @OmerJog
Just checking if we don't change the default behaviour, but passive is on by default: https://docs.python.org/2/library/ftplib.html#ftplib.FTP.set_pasv
Merging to master.
Dear Airflow Maintainers,
This is a duplicate of stale PR #2069
Please accept this PR that addresses the following issues:
https://issues.apache.org/jira/browse/AIRFLOW-865
Testing Done:
Unit test