Skip to content

Comments

[AIRFLOW-865] - Configure FTP connection mode#4535

Merged
Fokko merged 8 commits intoapache:masterfrom
OmerJog:Airflow-865
Jan 29, 2019
Merged

[AIRFLOW-865] - Configure FTP connection mode#4535
Fokko merged 8 commits intoapache:masterfrom
OmerJog:Airflow-865

Conversation

@OmerJog
Copy link
Contributor

@OmerJog OmerJog commented Jan 15, 2019

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

OmerJog and others added 4 commits January 15, 2019 14:24
#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)
@OmerJog
Copy link
Contributor Author

OmerJog commented Jan 15, 2019

Test failures doesn't seem related to the PR.

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI test failed due to AttributeError


configuration.load_test_config()
db.merge_conn(
models.Connection(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhongjiajie You are correct. This happened since Connection was moved out of models.py in Master branch.
submitted a fix for this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OmerJog hope your PR can be merge

@OmerJog
Copy link
Contributor Author

OmerJog commented Jan 20, 2019

Can someone restart the error test? It wasn't finished.
@bolkedebruin you reviewed the previous PR. mind take a look at this?

Copy link
Member

@zhongjiajie zhongjiajie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OmerJog you just commit some unnecessary change

@codecov-io
Copy link

Codecov Report

Merging #4535 into master will increase coverage by 0.32%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
airflow/contrib/hooks/ftp_hook.py 69.56% <100%> (+9.2%) ⬆️
airflow/hooks/dbapi_hook.py 79.03% <0%> (+0.8%) ⬆️
airflow/models/connection.py 63.29% <0%> (+1.26%) ⬆️
airflow/hooks/hive_hooks.py 75.26% <0%> (+1.84%) ⬆️
airflow/utils/sqlalchemy.py 81.81% <0%> (+4.54%) ⬆️
airflow/operators/mysql_operator.py 100% <0%> (+100%) ⬆️
airflow/operators/mysql_to_hive.py 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0949cb...5e07c00. Read the comment docs.

1 similar comment
@codecov-io
Copy link

Codecov Report

Merging #4535 into master will increase coverage by 0.32%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
airflow/contrib/hooks/ftp_hook.py 69.56% <100%> (+9.2%) ⬆️
airflow/hooks/dbapi_hook.py 79.03% <0%> (+0.8%) ⬆️
airflow/models/connection.py 63.29% <0%> (+1.26%) ⬆️
airflow/hooks/hive_hooks.py 75.26% <0%> (+1.84%) ⬆️
airflow/utils/sqlalchemy.py 81.81% <0%> (+4.54%) ⬆️
airflow/operators/mysql_operator.py 100% <0%> (+100%) ⬆️
airflow/operators/mysql_to_hive.py 100% <0%> (+100%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0949cb...5e07c00. Read the comment docs.

@zhongjiajie
Copy link
Member

@Fokko PTAL

@OmerJog
Copy link
Contributor Author

OmerJog commented Jan 29, 2019

Any further comments?

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Fokko Fokko merged commit 9f6e546 into apache:master Jan 29, 2019
wmorris75 pushed a commit to modmed-external/incubator-airflow that referenced this pull request Jul 29, 2019
dharamsk pushed a commit to postmates/airflow that referenced this pull request Aug 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants