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

AzureBlobStorage tasks - update Azure.Identity #89

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

charlotta-frends
Copy link
Contributor

@charlotta-frends charlotta-frends commented Aug 22, 2024

#88

Also removed dependencies Azure.Storage.Common and Azure.Core for DownloadBlob, as has been done in the other BlobStorage tasks. And fixed the old environment variables for ListBlobsInContainer and DeleteBlob.

Summary by CodeRabbit

  • New Features

    • Updated environment variables and secret values to reflect a new naming convention across multiple Azure Blob Storage workflows.
    • Incremented versions for several modules, introducing improvements and enhanced security with updated dependencies.
  • Bug Fixes

    • Corrected outdated environment variable names in tests and workflows to improve reliability.
  • Documentation

    • Updated changelogs for various modules to reflect recent changes and version updates, ensuring accurate historical records.

- Updated Azure.Identity dependency to 1.12.0 in every task.
- Fixed outdated environment variables in tests and workflows for ListBlobsInContainer and DeleteBlob.
- Removed dependencies Azure.Storage.Common and Azure.Core in DownloadBlob, as has been done in the other BlobStorage tasks.
Copy link

coderabbitai bot commented Aug 22, 2024

Walkthrough

The changes involve a comprehensive update to environment variable naming conventions across multiple GitHub Actions workflow files and corresponding project configurations in the Frends.AzureBlobStorage modules. The previous prefix "HiQ" has been replaced with "Frends," ensuring consistency in naming. Additionally, various dependencies, particularly the Azure.Identity library, have been updated to newer versions across the modules.

Changes

Files Change Summary
.github/workflows/DeleteBlob_build_and_test_on_main.yml, .github/workflows/DeleteBlob_build_and_test_on_push.yml, .github/workflows/ListBlobsInContainer_build_and_test_on_main.yml, .github/workflows/ListBlobsInContainer_build_and_test_on_push.yml Renamed environment variables from "HiQ" to "Frends" and updated secret values accordingly.
Frends.AzureBlobStorage.CreateContainer/CHANGELOG.md, Frends.AzureBlobStorage.CreateContainer/Frends.AzureBlobStorage.CreateContainer/Frends.AzureBlobStorage.CreateContainer.csproj Updated version to 1.3.0 and upgraded Azure.Identity library from 1.10.4 to 1.12.0.
Frends.AzureBlobStorage.DeleteBlob/CHANGELOG.md, Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob.Tests/UnitTests.cs, Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob.csproj Updated version to 1.2.0, upgraded Azure.Identity, and corrected environment variable names.
Frends.AzureBlobStorage.DeleteContainer/CHANGELOG.md, Frends.AzureBlobStorage.DeleteContainer/Frends.AzureBlobStorage.DeleteContainer/Frends.AzureBlobStorage.DeleteContainer.csproj Updated version to 1.2.0 and upgraded Azure.Identity library from 1.10.4 to 1.12.0.
Frends.AzureBlobStorage.DownloadBlob/CHANGELOG.md, Frends.AzureBlobStorage.DownloadBlob/Frends.AzureBlobStorage.DownloadBlob/Frends.AzureBlobStorage.DownloadBlob.csproj Updated version to 1.3.0, upgraded Azure.Identity, and removed Azure.Storage.Common and Azure.Core.
Frends.AzureBlobStorage.ListBlobsInContainer/CHANGELOG.md, Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/ConnectionStringUnitTests.cs, Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/OAuthUnitTests.cs, Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/SASUnitTests.cs, Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.csproj Updated version to 1.2.0, upgraded Azure.Identity, and corrected environment variable names in tests.
Frends.AzureBlobStorage.ReadBlob/CHANGELOG.md, Frends.AzureBlobStorage.ReadBlob/Frends.AzureBlobStorage.ReadBlob/Frends.AzureBlobStorage.ReadBlob.csproj Updated version to 1.2.0 and upgraded Azure.Identity library from 1.10.4 to 1.12.0.
Frends.AzureBlobStorage.UploadBlob/CHANGELOG.md, Frends.AzureBlobStorage.UploadBlob/Frends.AzureBlobStorage.UploadBlob/Frends.AzureBlobStorage.UploadBlob.csproj Updated version to 2.1.0 and upgraded Azure.Identity from 1.10.4 to 1.12.0.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Workflow
    participant AzureBlobStorage

    User->>Workflow: Trigger Event
    Workflow->>AzureBlobStorage: Access Blob Storage
    AzureBlobStorage-->>Workflow: Return Results
    Workflow-->>User: Display Results
Loading

🐇 In the meadow, the rabbit prances,
With "Frends" now leading all the glances.
Workflows updated, secrets in line,
Azure's bright future, oh how it shines!
From HiQ to Frends, a joyous leap,
With every change, new hopes we keep! 🌼✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@charlotta-frends charlotta-frends linked an issue Aug 22, 2024 that may be closed by this pull request
@charlotta-frends charlotta-frends changed the title Update Azure.Identity AzureBlobStorage tasks - update Azure.Identity Aug 22, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 6

Outside diff range, codebase verification and nitpick comments (6)
Frends.AzureBlobStorage.ReadBlob/CHANGELOG.md (1)

3-5: Avoid repetition in changelog entries.

The word "Updated" is repeated in the changelog entry. Consider rephrasing to improve clarity.

Apply this diff to refine the entry:

 ### Updated
-- Updated Azure.Identity to version 1.12.0.
+- Azure.Identity updated to version 1.12.0.
Tools
LanguageTool

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.2.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ## [...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.CreateContainer/CHANGELOG.md (1)

3-5: Avoid repetition in changelog entries.

The word "Updated" is repeated in the changelog entry. Consider rephrasing to improve clarity.

Apply this diff to refine the entry:

 ### Updated
-- Updated Azure.Identity to version 1.12.0.
+- Azure.Identity updated to version 1.12.0.
Tools
LanguageTool

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.3.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ## [...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.DeleteContainer/CHANGELOG.md (1)

3-5: Avoid repetition in changelog entries.

The word "Updated" is repeated in the changelog entry. Consider rephrasing to improve clarity.

Apply this diff to refine the entry:

 ### Updated
-- Updated Azure.Identity to version 1.12.0.
+- Azure.Identity updated to version 1.12.0.
Tools
LanguageTool

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.2.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ## [...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.ListBlobsInContainer/CHANGELOG.md (1)

4-5: Avoid repetition in changelog entries.

The word "Updated" is repeated in the changelog entry. Consider rephrasing for clarity.

Apply this diff to improve the entry:

### Updated
- Azure.Identity upgraded to version 1.12.0.
Tools
LanguageTool

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.2.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ### C...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.UploadBlob/CHANGELOG.md (1)

4-4: Check for potential duplication in wording.

There might be a repeated word in the changelog entry. Please review the wording for clarity.

Tools
LanguageTool

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ...angelog

[2.1.0] - 2024-08-21

Updated

  • Updated Azure.Identity to version 1.12.0.

##...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.DeleteBlob/CHANGELOG.md (1)

4-4: Check for potential duplication in wording.

There might be a repeated word in the changelog entry. Please review the wording for clarity.

Tools
LanguageTool

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ...angelog

[1.2.0] - 2024-08-21

Updated

  • Updated Azure.Identity to version 1.12.0.

...

(ENGLISH_WORD_REPEAT_RULE)

Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

Commits

Files that changed from the base of the PR and between e8fbc00 and ba4a5d9.

Files selected for processing (22)
  • .github/workflows/DeleteBlob_build_and_test_on_main.yml (1 hunks)
  • .github/workflows/DeleteBlob_build_and_test_on_push.yml (1 hunks)
  • .github/workflows/ListBlobsInContainer_build_and_test_on_main.yml (1 hunks)
  • .github/workflows/ListBlobsInContainer_build_and_test_on_push.yml (1 hunks)
  • Frends.AzureBlobStorage.CreateContainer/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.CreateContainer/Frends.AzureBlobStorage.CreateContainer/Frends.AzureBlobStorage.CreateContainer.csproj (2 hunks)
  • Frends.AzureBlobStorage.DeleteBlob/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob.Tests/UnitTests.cs (1 hunks)
  • Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob.csproj (2 hunks)
  • Frends.AzureBlobStorage.DeleteContainer/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.DeleteContainer/Frends.AzureBlobStorage.DeleteContainer/Frends.AzureBlobStorage.DeleteContainer.csproj (2 hunks)
  • Frends.AzureBlobStorage.DownloadBlob/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.DownloadBlob/Frends.AzureBlobStorage.DownloadBlob/Frends.AzureBlobStorage.DownloadBlob.csproj (2 hunks)
  • Frends.AzureBlobStorage.ListBlobsInContainer/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/ConnectionStringUnitTests.cs (3 hunks)
  • Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/OAuthUnitTests.cs (3 hunks)
  • Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/SASUnitTests.cs (5 hunks)
  • Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.csproj (2 hunks)
  • Frends.AzureBlobStorage.ReadBlob/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.ReadBlob/Frends.AzureBlobStorage.ReadBlob/Frends.AzureBlobStorage.ReadBlob.csproj (2 hunks)
  • Frends.AzureBlobStorage.UploadBlob/CHANGELOG.md (1 hunks)
  • Frends.AzureBlobStorage.UploadBlob/Frends.AzureBlobStorage.UploadBlob/Frends.AzureBlobStorage.UploadBlob.csproj (2 hunks)
Files skipped from review due to trivial changes (4)
  • .github/workflows/DeleteBlob_build_and_test_on_main.yml
  • .github/workflows/DeleteBlob_build_and_test_on_push.yml
  • .github/workflows/ListBlobsInContainer_build_and_test_on_main.yml
  • Frends.AzureBlobStorage.ReadBlob/Frends.AzureBlobStorage.ReadBlob/Frends.AzureBlobStorage.ReadBlob.csproj
Additional context used
LanguageTool
Frends.AzureBlobStorage.ReadBlob/CHANGELOG.md

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.2.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ## [...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.CreateContainer/CHANGELOG.md

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.3.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ## [...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.DeleteContainer/CHANGELOG.md

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.2.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ## [...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.ListBlobsInContainer/CHANGELOG.md

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ... Changelog ## [1.2.0] - 2024-08-21 ### Updated - Updated Azure.Identity to version 1.12.0. ### C...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.UploadBlob/CHANGELOG.md

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ...angelog

[2.1.0] - 2024-08-21

Updated

  • Updated Azure.Identity to version 1.12.0.

##...

(ENGLISH_WORD_REPEAT_RULE)

Frends.AzureBlobStorage.DeleteBlob/CHANGELOG.md

[duplication] ~4-~4: Possible typo: you repeated a word
Context: ...angelog

[1.2.0] - 2024-08-21

Updated

  • Updated Azure.Identity to version 1.12.0.

...

(ENGLISH_WORD_REPEAT_RULE)

Additional comments not posted (17)
Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob.csproj (1)

5-5: LGTM! Version and dependency updates are appropriate.

The project version and Azure.Identity package have been updated correctly to reflect the latest changes.

Also applies to: 25-25

Frends.AzureBlobStorage.CreateContainer/Frends.AzureBlobStorage.CreateContainer/Frends.AzureBlobStorage.CreateContainer.csproj (1)

4-4: LGTM! Version and dependency updates are appropriate.

The project version and Azure.Identity package have been updated correctly to reflect the latest changes.

Also applies to: 24-24

Frends.AzureBlobStorage.DeleteContainer/Frends.AzureBlobStorage.DeleteContainer/Frends.AzureBlobStorage.DeleteContainer.csproj (2)

5-5: Version update acknowledged.

The project version has been updated from 1.1.1 to 1.2.0, indicating a new release. Ensure that this version aligns with the changes made and any new features or fixes introduced.


25-25: Azure.Identity package update acknowledged.

The Azure.Identity package version has been updated from 1.10.4 to 1.12.0. Verify that this update is compatible with the rest of the codebase and any other dependencies.

Frends.AzureBlobStorage.UploadBlob/Frends.AzureBlobStorage.UploadBlob/Frends.AzureBlobStorage.UploadBlob.csproj (2)

5-5: Version update acknowledged.

The project version has been updated from 2.0.1 to 2.1.0, suggesting a minor release. Ensure that this version aligns with the changes made and any new features or fixes introduced.


25-25: Azure.Identity package update acknowledged.

The Azure.Identity package version has been updated from 1.10.4 to 1.12.0. Verify that this update is compatible with the rest of the codebase and any other dependencies.

Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.csproj (2)

5-5: Version update acknowledged.

The project version has been updated from 1.1.2 to 1.2.0, indicating a new release. Ensure that this version aligns with the changes made and any new features or fixes introduced.


25-25: Azure.Identity package update acknowledged.

The Azure.Identity package version has been updated from 1.10.4 to 1.12.0. Verify that this update is compatible with the rest of the codebase and any other dependencies.

Frends.AzureBlobStorage.DownloadBlob/Frends.AzureBlobStorage.DownloadBlob/Frends.AzureBlobStorage.DownloadBlob.csproj (2)

5-5: Version update acknowledged.

The version number has been updated to 1.3.0, indicating a new release.


25-25: Dependency updates acknowledged.

The Azure.Identity package has been updated to version 1.12.0. The removal of Azure.Storage.Common and Azure.Core dependencies suggests a streamlining of the project's requirements.

.github/workflows/ListBlobsInContainer_build_and_test_on_push.yml (1)

16-21: Environment variable renaming approved.

The renaming of environment variables and secrets aligns with the updated naming convention.

Also applies to: 25-30

Frends.AzureBlobStorage.DownloadBlob/CHANGELOG.md (1)

3-6: Changelog updates approved.

The changelog entries accurately reflect the changes made in the release, including the package update and dependency removal.

Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/ConnectionStringUnitTests.cs (1)

15-15: Connection string update approved.

The update to the connection string environment variable aligns with the new naming convention.

Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/OAuthUnitTests.cs (1)

15-20: Ensure environment variables are set correctly.

The environment variable names have been updated to use the "Frends" prefix. Verify that these variables are correctly set in the test environment to avoid runtime errors.

Frends.AzureBlobStorage.ListBlobsInContainer/Frends.AzureBlobStorage.ListBlobsInContainer.Tests/SASUnitTests.cs (2)

18-21: Ensure environment variables are set correctly.

The environment variable names have been updated to use the "Frends" prefix. Verify that these variables are correctly set in the test environment to avoid runtime errors.


149-149: Ensure correct credentials are used for SAS token generation.

The StorageSharedKeyCredential now uses the _storageaccount variable. Verify that the correct credentials are being used to generate the SAS token.

Frends.AzureBlobStorage.DeleteBlob/Frends.AzureBlobStorage.DeleteBlob.Tests/UnitTests.cs (1)

15-19: Ensure environment variables are set correctly.

The environment variable names have been updated to use the "Frends" prefix. Verify that these variables are correctly set in the test environment to avoid runtime errors.

Copy link
Contributor

@jannejjj jannejjj left a comment

Choose a reason for hiding this comment

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

LGTM, Azure.Identity has been updated across all tasks and changelogs / csproj files have been changed accordingly.

@jannejjj jannejjj merged commit b747ce0 into main Aug 23, 2024
15 checks passed
@jannejjj jannejjj deleted the update-azure-identity branch August 23, 2024 09:07
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.

AzureBlobStorage tasks - Azure.Identity version update
2 participants