Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SNOW-1296059: Exclude cloud providers from driver, only required for compile #929

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sfc-gh-jmartinezramirez
Copy link
Collaborator

@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez commented Apr 23, 2024

Description

Exclude cloud providers from driver, only required for compile
Move logic to Snowflake.Data.Core to only have compile dependencies to cloud providers.
Add projects for dependencies nuget generation for each cloud provider.

Checklist

  • Code compiles correctly
  • Code is formatted according to Coding Conventions
  • Created tests which fail without the change (if possible)
  • All tests passing (dotnet test)
  • Extended the README / documentation, if necessary
  • Provide JIRA issue id (if possible) or GitHub issue id in PR name

@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch from b0470f6 to c4c7671 Compare April 25, 2024 20:21
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez changed the title Exclude cloud providers from driver, only required for compile SNOW-1296059: Exclude cloud providers from driver, only required for compile Apr 25, 2024
Copy link
Collaborator

@sfc-gh-mhofman sfc-gh-mhofman left a comment

Choose a reason for hiding this comment

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

This looks promising @sfc-gh-sthyagaraj
We end up with

  1. current thick library: Snowflake.Data (with GCP,AZURE and AWS out-of-the-box)
  2. thin library: Snowflake.Data.Common (yet my suggestion would be to think and maybe change to e.g. Snowflake.Data.Core)
  3. cloud specific extensions up to customer needs:
  • Snowflake.Data.AWS
  • Snowflake.Data.Azure
  • Snowflake.Data.GCP

@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch 2 times, most recently from e42b6da to d69439e Compare April 26, 2024 20:57
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch from d69439e to e982a9c Compare May 3, 2024 20:35
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez marked this pull request as ready for review May 8, 2024 21:53
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez requested a review from a team as a code owner May 8, 2024 21:53
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch from 4c65337 to faa7b08 Compare May 16, 2024 16:45
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch from faa7b08 to c3fd530 Compare July 8, 2024 18:13
Copy link

gitguardian bot commented Jul 8, 2024

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch from c3fd530 to 4c38ae9 Compare July 8, 2024 18:20
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.0" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

what about Azure.Storage.Common?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added explicit dependency.

<ExcludeAssets>Runtime,Build,Native,Analyzers,BuildTransitive</ExcludeAssets>
<IncludeAssets>compile</IncludeAssets>
</PackageReference>
<PackageReference Include="Azure.Storage.Blobs" Version="12.13.0" >
Copy link
Collaborator

Choose a reason for hiding this comment

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

what about Azure.Storage.Common?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added explicit dependency.

Move logic to Snowflake.Data.Core to only have compile dependencies to cloud providers.
Add projects for dependencies nuget generation for each cloud provider.
Update deploy bat to include new packages
Set alpha version to projects 4.0.1-alpha01.
Removed not required set of version, it is calculated base on the Version property.
@sfc-gh-jmartinezramirez sfc-gh-jmartinezramirez force-pushed the SNOW-1296059-split-dependencies-projects branch from 4a640f0 to 929507d Compare July 15, 2024 13:58
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.

3 participants