Skip to content

Conversation

@kaxil
Copy link
Member

@kaxil kaxil commented Feb 5, 2021

Since #12188 was merged I
don't think we need this steps.

This step also caused the docker build step for 2.0.1rc2 to fail.

I can confirm that after removing this steps -- I was able to push the 2.0.1rc2 image to dockerhub

https://hub.docker.com/r/apache/airflow/tags?page=1&ordering=last_updated&name=2.0.1rc2


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
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.

@kaxil kaxil requested a review from potiuk February 5, 2021 14:11
@potiuk
Copy link
Member

potiuk commented Feb 5, 2021

Ah yeah due to the circumstances I failed to rebase and fixed my #13861 :). I will also push it to master of my fork to make sure it will work after merge as this touches sensitive CI scripts.

@potiuk
Copy link
Member

potiuk commented Feb 5, 2021

Running here: https://github.com/potiuk/airflow/actions/runs/540987038

@kaxil
Copy link
Member Author

kaxil commented Feb 5, 2021

@potiuk I haven't removed or updated anything in setup.py like you did in #13861 -- do we need that for 2.0.1 (I hope not as it should be in provider) but want to confirm?

@potiuk
Copy link
Member

potiuk commented Feb 5, 2021

Let's do it step-by step :)

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Feb 5, 2021
@github-actions
Copy link

github-actions bot commented Feb 5, 2021

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest master at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions
Copy link

github-actions bot commented Feb 5, 2021

The Workflow run is cancelling this PR. Building images for the PR has failed. Follow the the workflow link to check the reason.

Since apache#12188 was merged I
don't think we need this steps.

This step also caused the docker build step for 2.0.1rc2 to fail
@kaxil kaxil force-pushed the remove-az-storage branch from 56b2aa6 to 13d534e Compare February 5, 2021 21:05
@kaxil
Copy link
Member Author

kaxil commented Feb 6, 2021

@potiuk Providers and Backports failed, is it because new version have not been released to Pypi yet?

@potiuk
Copy link
Member

potiuk commented Feb 6, 2021

Nope. There are some import errors: https://github.com/apache/airflow/pull/14102/checks?check_run_id=1842014653#step:8:13099 so seems that some code still relies on the old azure storage . I will take a look shortly

@potiuk
Copy link
Member

potiuk commented Feb 7, 2021

This is only problem for 1.10.14 (backport packages) and 2.0.0 (regular packages) build. The master build (where both master airflow and master provider packages work fine).

The problem is coming from both airflow 2.0.0 and 1.10.14 having still the old azure-storage as dependency in case of [snowflake] extra. Unfortunately for the azure packages if the legacy package is mixed with the new ones the azure.storage.blob and azure.storeage.files can be overwritten depending on the installation process sequence. In our case - we have been doing this in the CI image

  1. Installing 'master` image from the CI with [all] extras
  2. re-installing '1.10.14' airflow or '2.0.0' airflow with [all] extras and providers from PyPI)
  3. removing installed providers from PyPI
  4. installing built providers from master without dependencies (assuming the dependencies are already installed in step 1) - installing them with dependencies is not a good idea because they might depend on unreleased yet airflow version or aiflow providers that are missing in PyPI yet.

Unfortunately - in step 2 installing airflow 1.10.14 or 2.0.0 also installs azure-storage legacy library which OVERRIDES the 'azure.storage.blob, azure.storage.filespackage -> this is the root cause of the failure. After installingazure-storage` the other azure libraries fail to import

Luckily this is easy to fix. I just run it in my master fork to be sure but it seems to work well :) :
https://github.com/potiuk/airflow/runs/1849817483?check_suite_focus=true

The fix is to install airflow 1.10.14 / airflow 2.0.0 WITHOUT any extras in step 2). This way we will keep dependencies installed in step 1) and no azure-storage library will be ever installed (because it is only installed by snowflake extra)

I make a PR to your PR shortly @kaxil - I will also move the depdencies to azure extra in my PR (as in this case it will work perfectly fine).

@potiuk
Copy link
Member

potiuk commented Feb 7, 2021

Hey @kaxil - this should fix the problem: astronomer#1247

@kaxil kaxil merged commit 3ffd217 into apache:master Feb 8, 2021
@kaxil kaxil deleted the remove-az-storage branch February 8, 2021 21:56
@potiuk potiuk added this to the Airflow 2.0.2 milestone Feb 22, 2021
potiuk added a commit that referenced this pull request Mar 3, 2021
Since #12188 was merged I
don't think we need this steps.

This step also caused the docker build step for 2.0.1rc2 to fail

Co-authored-by: Jarek Potiuk <[email protected]>
(cherry picked from commit 3ffd217)
potiuk added a commit that referenced this pull request Mar 3, 2021
Since #12188 was merged I
don't think we need this steps.

This step also caused the docker build step for 2.0.1rc2 to fail

Co-authored-by: Jarek Potiuk <[email protected]>
(cherry picked from commit 3ffd217)
potiuk added a commit that referenced this pull request Mar 3, 2021
Since #12188 was merged I
don't think we need this steps.

This step also caused the docker build step for 2.0.1rc2 to fail

Co-authored-by: Jarek Potiuk <[email protected]>
(cherry picked from commit 3ffd217)
kaxil added a commit to astronomer/airflow that referenced this pull request Apr 26, 2021
Since apache#12188 was merged I
don't think we need this steps.

This step also caused the docker build step for 2.0.1rc2 to fail

Co-authored-by: Jarek Potiuk <[email protected]>
(cherry picked from commit 3ffd217)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools full tests needed We need to run full set of tests for this PR to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants