astronomer / astro-sdk

Astro SDK allows rapid and clean development of {Extract, Load, Transform} workflows using Python and SQL, powered by Apache Airflow.
https://astro-sdk-python.rtfd.io/
Apache License 2.0
329 stars 40 forks source link

Fix gdrive_to_snowflake task in example_load_dag #2072

Closed vatsrahul1001 closed 6 months ago

vatsrahul1001 commented 6 months ago

The gdrive_to_snowflake task was failing because we hadn't set the GOOGLE_APPLICATION_CREDENTIALS in deployment. This pull request addresses the issue by creating a credential file using the Google Cloud Platform Service Account credentials from secrets, which is essential for the task.

codecov[bot] commented 6 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (d4fe295) 89.54% compared to head (60339cd) 90.12%. Report is 5 commits behind head on main.

Files Patch % Lines
...on-sdk/src/astro/databases/databricks/api_utils.py 0.00% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2072 +/- ## ========================================== + Coverage 89.54% 90.12% +0.57% ========================================== Files 75 75 Lines 4323 4323 Branches 537 538 +1 ========================================== + Hits 3871 3896 +25 + Misses 355 327 -28 - Partials 97 100 +3 ``` | [Flag](https://app.codecov.io/gh/astronomer/astro-sdk/pull/2072/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astronomer) | Coverage Δ | | |---|---|---| | [PythonSDK](https://app.codecov.io/gh/astronomer/astro-sdk/pull/2072/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astronomer) | `90.12% <50.00%> (+0.57%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=astronomer#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.