Skip to content

V9.0.2/package maintenance #10

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

Merged
merged 8 commits into from
Apr 16, 2025
Merged

V9.0.2/package maintenance #10

merged 8 commits into from
Apr 16, 2025

Conversation

gimlichael
Copy link
Member

@gimlichael gimlichael commented Apr 3, 2025

This pull request includes updates to package references, test setups, and environment configurations to ensure compatibility and improve functionality.

Package Reference Updates:

  • Updated xunit.runner.visualstudio to include PrivateAssets and IncludeAssets attributes in Directory.Build.props.
  • Upgraded various package versions in Directory.Packages.props, including Codebelt.Extensions.Xunit, Cuemon.AspNetCore.Mvc, and Microsoft.NET.Test.Sdk.

Test Setup Adjustments:

  • Modified test setup calls to include hostFixture: null in multiple test files to ensure proper initialization:
    • JsonConverterCollectionExtensionsTest.cs
    • JsonSerializationInputFormatterTest.cs
    • JsonSerializationOutputFormatterTest.cs
    • MvcBuilderExtensionsTests.cs [1] [2]
    • ServiceCollectionExtensionsTest.cs [1] [2] [3]

Environment Configuration Updates:

  • Updated wslDistribution to Ubuntu-24.04 and dockerImage to gimlichael/ubuntu-testrunner:net8.0.407-9.0.202 in testenvironments.json.

Summary by CodeRabbit

  • Chores
    • Updated multiple dependency packages to their latest versions for improved compatibility and performance.
    • Refined build configuration settings to better control package asset inclusion.
    • Refreshed environment configurations with updated Linux distribution and Docker image versions.
    • Enhanced CI workflows by adopting reusable workflow calls and improved permission management.
    • Suppressed specific build warnings for a smoother build process.
  • Tests
    • Improved test environment setups by explicitly specifying parameters to enhance consistency and reliability.

@gimlichael gimlichael self-assigned this Apr 3, 2025
Copy link

coderabbitai bot commented Apr 3, 2025

Walkthrough

This pull request updates several project configuration and test files. In the build property file, the xUnit package reference is expanded to include asset control elements. In the packages property file, multiple package versions are updated. Several test files have been modified to explicitly pass a hostFixture: null argument when creating test hosts, ensuring consistent configuration. The test environment configuration is revised with new WSL distribution and Docker image values. Additionally, package release notes and the changelog are updated with a new version entry. The GitHub workflow is refactored to use reusable workflow calls with updated permissions. A project file is modified to suppress a specific build warning.

Changes

File(s) Change Summary
Directory.Build.props Expanded the <PackageReference> for xunit.runner.visualstudio by adding <PrivateAssets>all</PrivateAssets> and <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>.
Directory.Packages.props Updated package versions for multiple dependencies including Codebelt, Cuemon libraries, Microsoft.NET.Test.Sdk, xunit.runner.visualstudio, and Microsoft.AspNetCore.Mvc.NewtonsoftJson (for net8 and net9).
test/.../*.cs Modified test methods (in files such as JsonConverterCollectionExtensionsTest.cs, JsonSerializationInputFormatterTest.cs, JsonSerializationOutputFormatterTest.cs, MvcBuilderExtensionsTests.cs, and ServiceCollectionExtensionsTest.cs) to include an explicit hostFixture: null parameter in factory and lambda method calls.
testenvironments.json Changed the WSL distribution from "Ubuntu-22.04" to "Ubuntu-24.04" and updated the Docker image from gimlichael/ubuntu-testrunner:net8.0.405-9.0.102 to gimlichael/ubuntu-testrunner:net8.0.408-9.0.203.
.github/workflows/pipelines.yml Refactored jobs sonarcloud, codecov, codeql, and deploy to use reusable workflow calls with updated permissions and inherited secrets; added top-level permissions with contents: read.
.nuget/*/PackageReleaseNotes.txt Added new version 9.0.2 entries specifying updated dependencies for .NET 9 and .NET 8 (and .NET Standard 2.0 in one case) above existing 9.0.1 entries.
CHANGELOG.md Added new changelog entry for version 9.0.2 dated 2025-04-16 describing a service update focused on package dependencies.
src/Codebelt.Extensions.Newtonsoft.Json.App/Codebelt.Extensions.Newtonsoft.Json.App.csproj Added <NoWarn>NU5128</NoWarn> to suppress NU5128 warning during build.

Poem

I'm a little rabbit,
Hopping through code with glee,
Package updates and test tweaks,
Made my ears twitch merrily!
With null fixtures in the mix,
I celebrate change—hop, hop, hop!
🐇✨


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Free

📥 Commits

Reviewing files that changed from the base of the PR and between a8cc116 and 5e6e9f9.

📒 Files selected for processing (2)
  • .github/workflows/pipelines.yml (2 hunks)
  • src/Codebelt.Extensions.Newtonsoft.Json.App/Codebelt.Extensions.Newtonsoft.Json.App.csproj (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • src/Codebelt.Extensions.Newtonsoft.Json.App/Codebelt.Extensions.Newtonsoft.Json.App.csproj

Note

🎁 Summarized by CodeRabbit Free

Your organization has reached its limit of developer seats under the Pro Plan. For new users, CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please add seats to your subscription by visiting https://app.coderabbit.ai/login.If you believe this is a mistake and have available seats, please assign one to the pull request author through the subscription management page using the link above.

🪧 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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

Copy link

codecov bot commented Apr 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.01%. Comparing base (fadaad2) to head (a8cc116).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #10   +/-   ##
=======================================
  Coverage   78.01%   78.01%           
=======================================
  Files          24       24           
  Lines         905      905           
  Branches      111      111           
=======================================
  Hits          706      706           
  Misses        197      197           
  Partials        2        2           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gimlichael gimlichael requested a review from Copilot April 16, 2025 12:36
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@gimlichael gimlichael requested a review from Copilot April 16, 2025 12:38
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 11 out of 15 changed files in this pull request and generated no comments.

Files not reviewed (4)
  • Directory.Build.props: Language not supported
  • Directory.Packages.props: Language not supported
  • src/Codebelt.Extensions.Newtonsoft.Json.App/Codebelt.Extensions.Newtonsoft.Json.App.csproj: Language not supported
  • testenvironments.json: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/pipelines.yml:130

  • [nitpick] The updated job name 'call-sonarcloud' is less descriptive than before. Consider using a name that more clearly reflects the purpose of the SonarCloud analysis.
name: call-sonarcloud

.github/workflows/pipelines.yml:144

  • [nitpick] The repository name changed from 'codebeltnet/newtonsoft-json' to 'codebeltnet/newtonsoft'; please verify that this change is consistent with your overall project naming conventions.
repository: codebeltnet/newtonsoft

@gimlichael gimlichael merged commit be801cc into main Apr 16, 2025
19 checks passed
@gimlichael gimlichael deleted the v9.0.2/package-maintenance branch April 16, 2025 12:44
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.

1 participant