Skip to content

Conversation

@ephraimbuddy
Copy link
Contributor

@ephraimbuddy ephraimbuddy commented Nov 9, 2020

This PR attempts to upgrade azure storage blob to version 12
Closes: #11968

Manually tested with this dag:

from airflow.utils.dates import days_ago
from airflow.models import DAG
from airflow.providers.microsoft.azure.transfers.file_to_wasb import FileToWasbOperator
from airflow.providers.microsoft.azure.operators.wasb_delete_blob import WasbDeleteBlobOperator


with DAG(
    "file_to_wasb",
    schedule_interval="@once",
    start_date=days_ago(2)
) as dag:
    move = FileToWasbOperator(
        task_id="upload_file",
        file_path="/files/dags/example_sql_sensor.py",
        container_name="mycontainer",
        blob_name='myblob'
    )
    delete = WasbDeleteBlobOperator(
        task_id="delete_file",
        container_name="mycontainer",
        blob_name="myblob"
    )
    move >> delete


^ 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.

@boring-cyborg boring-cyborg bot added the provider:microsoft-azure Azure-related issues label Nov 9, 2020
@ephraimbuddy ephraimbuddy changed the title Upgrade azure blob and fileshare to v12 Upgrade azure blob to v12 Nov 16, 2020
@ephraimbuddy ephraimbuddy marked this pull request as ready for review November 16, 2020 03:30
@ephraimbuddy
Copy link
Contributor Author

@mik-laj @turbaszek @feluelle, can you please review, thanks

@mik-laj
Copy link
Member

mik-laj commented Nov 21, 2020

Manually tested with this dag:

Can you add an automatic test? It shouldn't be difficult, and it will allow us to test this integration more easily.

@ephraimbuddy
Copy link
Contributor Author

Manually tested with this dag:

Can you add an automatic test? It shouldn't be difficult, and it will allow us to test this integration more easily.

I'll add this test latest this weekend

@potiuk
Copy link
Member

potiuk commented Nov 27, 2020

Hey @ephraimbuddy - This is the last blocker for the #12636 , but for now I am going to add some conditional imports and make the relevant tssts as xfail, but once this on is ready to merge, I will remove those!

@ephraimbuddy
Copy link
Contributor Author

Hey @ephraimbuddy - This is the last blocker for the #12636 , but for now I am going to add some conditional imports and make the relevant tssts as xfail, but once this on is ready to merge, I will remove those!

Ok. I will work on it tonight

@ephraimbuddy
Copy link
Contributor Author

Depends on #12673
When #12673 is merged, I will rebase and run the system tests

@ephraimbuddy
Copy link
Contributor Author

HI @potiuk , I'm not sure why the azure-blob-storage is not getting installed, despite that I added it to setup.py

@potiuk
Copy link
Member

potiuk commented Nov 28, 2020

HI @potiuk , I'm not sure why the azure-blob-storage is not getting installed, despite that I added it to setup.py

In this case you need "upgrade to latest dependencies" label and rebase it . I just added the label. please rebase to the the latest master :)

@potiuk
Copy link
Member

potiuk commented Nov 28, 2020

This is a new feature added last week.

@ephraimbuddy
Copy link
Contributor Author

This is a new feature added last week.

Oh, cool!

@ashb
Copy link
Member

ashb commented Nov 28, 2020

HI @potiuk , I'm not sure why the azure-blob-storage is not getting installed, despite that I added it to setup.py

In this case you need "upgrade to latest dependencies" label and rebase it . I just added the label. please rebase to the the latest master :)

Shouldn't a change to setup.py/setup.cfg be all that is needed @potiuk ?

Let me be clearer: why do we need this label? Setup.py changed. We should respect it automatically. Not doing so is a bug, not a feature.

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)
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 16, 2021
Since apache/airflow#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 3ffd21745d25e6239254fe3f5688b34f5f6f77e8)
GitOrigin-RevId: 1b29db9148df815eec046532efb6c46ead8ddbbe
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2021
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 23, 2021
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 27, 2021
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Mar 10, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jun 4, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jul 9, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Aug 27, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 4, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
aglipska pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 7, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Dec 7, 2022
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
leahecole pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Jan 27, 2023
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
@alexbegg alexbegg mentioned this pull request Aug 28, 2023
2 tasks
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 12, 2024
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to kosteev/composer-airflow-test-copybara that referenced this pull request Sep 12, 2024
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 17, 2024
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Nov 7, 2024
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 1, 2025
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request May 22, 2025
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Sep 16, 2025
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
kosteev pushed a commit to GoogleCloudPlatform/composer-airflow that referenced this pull request Oct 15, 2025
Since apache/airflow#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]>
GitOrigin-RevId: 3ffd21745d25e6239254fe3f5688b34f5f6f77e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

full tests needed We need to run full set of tests for this PR to merge provider:microsoft-azure Azure-related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade azure-storage-blob to >=12

5 participants