Skip to content

Conversation

gimlichael
Copy link
Member

@gimlichael gimlichael commented Apr 3, 2025

This pull request includes several updates to package versions and test configurations. The most important changes include updating package versions in Directory.Packages.props, modifying the Directory.Build.props file to include additional assets for xunit.runner.visualstudio, and updating test cases to reflect the new openapi version.

Package Updates:

  • Directory.Packages.props: Updated versions for multiple packages, including Codebelt.Bootstrapper.Web, Codebelt.Extensions.Xunit.App, Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json, Microsoft.AspNetCore.OpenApi, Microsoft.NET.Test.Sdk, Swashbuckle.AspNetCore, and xunit.runner.visualstudio.

Build Configuration:

  • Directory.Build.props: Modified xunit.runner.visualstudio to include PrivateAssets and IncludeAssets attributes.

Test Case Updates:

Other Configuration:

Summary by CodeRabbit

  • Chores

    • Updated dependency configurations to leverage the latest improvements in build and asset management.
    • Upgraded the Docker test environment image for enhanced testing reliability.
    • Upgraded CI/CD workflows to use the latest Ubuntu runner and reusable workflow templates for streamlined pipeline management.
    • Updated local launch settings to explicitly specify the launch URL path for improved startup behavior.
  • Tests

    • Revised API documentation tests to align with the updated OpenAPI specification.

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

coderabbitai bot commented Apr 3, 2025

Walkthrough

This pull request updates various configuration and test files. In the Directory.Build.props, the xunit.runner.visualstudio package reference is enhanced with additional child elements specifying private assets and included assets. Several package versions in the Directory.Packages.props file are bumped, including major and minor version increments. Test files have been modified to update the expected OpenAPI version from 3.0.1 to 3.0.4, along with explicit hostFixture: null parameters in test host creation calls. The testenvironments.json file updates the WSL distribution and Docker image versions. The GitHub Actions workflow file .github/workflows/pipelines.yml is refactored to use reusable workflow calls and updates runner environments to Ubuntu 24.04. The launch settings in a Web API example are adjusted to separate base URLs and launch URLs. A new changelog entry for version 9.0.2 is added.

Changes

File(s) Change Summary
Directory.Build.props Updated PackageReference for xunit.runner.visualstudio: expanded to include <PrivateAssets>all</PrivateAssets> and <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>.
Directory.Packages.props Updated package versions:
• Codebelt.Bootstrapper.Web: 3.0.0 → 4.0.0
• Codebelt.Extensions.Asp.Versioning: 9.0.1 → 9.0.2
• Codebelt.Extensions.Xunit.App: 9.0.1 → 10.0.0
• Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json: 9.0.1 → 9.0.4
• Microsoft.AspNetCore.OpenApi: 9.0.1 → 9.0.4
• Microsoft.NET.Test.Sdk: 17.12.0 → 17.13.0
• Swashbuckle.AspNetCore: 7.2.0 → 8.1.1
• xunit.runner.visualstudio: 3.0.1 → 3.0.2
test/Codebelt.Extensions.Swashbuckle.AspNetCore.Tests/ServiceCollectionExtensionsTest.cs
test/Codebelt.Extensions.Swashbuckle.AspNetCore.Tests/SwaggerGenOptionsExtensionsTest.cs
Updated test assertions to validate OpenAPI version 3.0.4 and modified WebHostTestFactory.Create calls by explicitly passing hostFixture: null.
testenvironments.json Updated "wslDistribution" from "Ubuntu-22.04" to "Ubuntu-24.04" and "dockerImage" from "gimlichael/ubuntu-testrunner:net8.0.405-9.0.102" to "gimlichael/ubuntu-testrunner:net8.0.408-9.0.203".
.github/workflows/pipelines.yml Upgraded runner OS from ubuntu-22.04 to ubuntu-24.04 for build, pack, and test jobs; refactored sonarcloud, codecov, codeql, and deploy jobs to use reusable workflow calls with inherited secrets and added permissions; added top-level permissions: contents: read.
tooling/WebApiExample/Properties/launchSettings.json Modified launch profiles by removing /swagger from applicationUrl and adding launchUrl: swagger to both "http" and "https" profiles.
CHANGELOG.md Added new changelog entry for version 9.0.2 dated 2025-04-16 describing a service update focused on package dependencies.

Sequence Diagram(s)

sequenceDiagram
    participant Test as Test Method
    participant Host as WebHostTestFactory
    participant App as Application
    participant JSON as Swagger JSON Response

    Test->>Host: Create test host (hostFixture: null)
    Host->>App: Initialize application
    App->>JSON: Generate Swagger JSON (version 3.0.4)
    JSON-->>Test: Return Swagger JSON
    Test->>Test: Assert JSON version is 3.0.4
Loading

Poem

I hopped through XML fields in the night,
Updating packages with all my might.
Swagger versions now gleam so new,
Docker images hopped to a version true.
Pipelines refreshed with workflows bright,
Launch URLs set just right,
With a joyful heart, this rabbit cheers—code blooms in delight! 🐇


📜 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 d943fd7 and 7acbec4.

📒 Files selected for processing (8)
  • .github/workflows/pipelines.yml (4 hunks)
  • CHANGELOG.md (1 hunks)
  • Directory.Build.props (1 hunks)
  • Directory.Packages.props (1 hunks)
  • test/Codebelt.Extensions.Swashbuckle.AspNetCore.Tests/ServiceCollectionExtensionsTest.cs (4 hunks)
  • test/Codebelt.Extensions.Swashbuckle.AspNetCore.Tests/SwaggerGenOptionsExtensionsTest.cs (5 hunks)
  • testenvironments.json (1 hunks)
  • tooling/WebApiExample/Properties/launchSettings.json (2 hunks)

🪧 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 84.81%. Comparing base (d943fd7) to head (7acbec4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   84.81%   84.81%           
=======================================
  Files          11       11           
  Lines         237      237           
  Branches        9        9           
=======================================
  Hits          201      201           
  Misses         36       36           

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

Copy link

@gimlichael gimlichael merged commit 099aa6f into main Apr 16, 2025
19 checks passed
@gimlichael gimlichael deleted the v9.0.2/package-maintenance branch April 16, 2025 13:43
@coderabbitai coderabbitai bot mentioned this pull request Jun 16, 2025
@coderabbitai coderabbitai bot mentioned this pull request Aug 20, 2025
@coderabbitai coderabbitai bot mentioned this pull request Sep 15, 2025
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