Skip to content

Conversation

gimlichael
Copy link
Member

@gimlichael gimlichael commented May 23, 2025

This pull request includes updates to dependencies, Docker configurations, and test environments to ensure compatibility with newer versions and improve stability. The most important changes include upgrading Docker base images, updating NuGet package versions, and modifying the Docker test runner image.

Dependency Updates:

  • Updated NuGet package versions in Directory.Packages.props to the latest patch versions for Cuemon, Microsoft.Bcl.AsyncInterfaces, Microsoft.Extensions.*, and xunit.runner.visualstudio. These updates improve compatibility and address potential bug fixes. [1] [2]

Docker Configuration Updates:

  • Updated the base image in .docfx/Dockerfile.docfx to nginx:1.27.5-alpine and the build image to codebeltnet/docfx:2.78.3. These changes ensure compatibility with the latest platform features and security patches.

Test Environment Updates:

  • Updated the Docker test runner image in testenvironments.json to gimlichael/ubuntu-testrunner:mono-net8.0.409-9.0.300, ensuring compatibility with updated frameworks and runtime versions.

Summary by CodeRabbit

  • Chores
    • Updated Dockerfile to use newer versions of base images for improved stability and multi-platform support.
    • Upgraded several dependency package versions for enhanced compatibility and security.
    • Updated test environment Docker image tag to a newer version.

@gimlichael gimlichael self-assigned this May 23, 2025
@Copilot Copilot AI review requested due to automatic review settings May 23, 2025 18:56
Copy link

coderabbitai bot commented May 23, 2025

Walkthrough

This update refreshes dependencies and infrastructure components. It upgrades the nginx and docfx Docker base images, adds explicit multi-platform support in the Dockerfile, bumps several NuGet package versions in the project configuration, and updates the Docker image tag for the Ubuntu test environment.

Changes

File(s) Change Summary
.docfx/Dockerfile.docfx Upgraded nginx from 1.27.3-alpine to 1.27.5-alpine, docfx build image from 2.77.0 to 2.78.3, added multi-platform support, adjusted final stage image reference.
Directory.Packages.props Increased versions for Cuemon, Microsoft.Bcl.AsyncInterfaces, xunit.runner.visualstudio, and several Microsoft.Extensions.* packages for net9/net8/netstandard2 targets.
testenvironments.json Updated "Docker-Ubuntu" test environment image tag from "mono-net8.0.408-9.0.203" to "mono-net8.0.409-9.0.300".

Possibly related PRs

  • codebeltnet/xunit#8: Also updates .docfx/Dockerfile.docfx with a newer nginx base image, but to 1.27.1-alpine and without multi-platform changes.
  • codebeltnet/xunit#25: Upgrades the same Dockerfile's nginx base image from 1.27.1-alpine to 1.27.3-alpine, closely related to the current nginx version bump.
  • codebeltnet/xunit#21: Updates package versions and test environment Docker images, similar in scope to this PR but with different version increments.

Poem

A Dockerfile hops to the latest base,
With packages following in a lively race.
Test environments polished, shiny, and new—
Upgrades all around, what a splendid view!
🐇 With each version leap, we’re quick and spry,
Building our code as the carrots fly!

Note

⚡️ AI Code Reviews for VS Code, Cursor, Windsurf

CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
Learn more here.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ 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>, please review it.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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

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

Pull Request Overview

This PR bumps key dependencies, updates Docker configurations, and revises the test runner image to ensure compatibility with newer libraries and platforms.

  • Updates NuGet package versions in Directory.Packages.props to patch versions.
  • Upgrades Docker base and build images in .docfx/Dockerfile.docfx.
  • Revises the Docker test runner image in testenvironments.json.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
testenvironments.json Updated test runner image to mono-net8.0.409-9.0.300
Directory.Packages.props Bumped several NuGet package versions including Cuemon and xunit packages
.docfx/Dockerfile.docfx Updated Docker base image and build image versions with platform support

docfx build

FROM base AS final
FROM nginx:1.27.5-alpine AS final
Copy link

Copilot AI May 23, 2025

Choose a reason for hiding this comment

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

Consider adding '--platform=$BUILDPLATFORM' to the final stage to maintain consistency with the base stage and support multi-platform builds.

Suggested change
FROM nginx:1.27.5-alpine AS final
FROM --platform=$BUILDPLATFORM nginx:1.27.5-alpine AS final

Copilot uses AI. Check for mistakes.

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: 0

🧹 Nitpick comments (1)
.docfx/Dockerfile.docfx (1)

6-6: Use COPY instead of ADD for directories
According to Docker best practices, COPY is preferred over ADD when you don’t need its extra features (tar auto-extraction, remote URLs).

Apply this diff:

- ADD [".", "docfx"]
+ COPY . docfx
🧰 Tools
🪛 Hadolint (2.12.0)

[error] 6-6: Use COPY instead of ADD for files and folders

(DL3020)

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 5d8bc00 and fc6796f.

📒 Files selected for processing (3)
  • .docfx/Dockerfile.docfx (1 hunks)
  • Directory.Packages.props (2 hunks)
  • testenvironments.json (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
Directory.Packages.props (1)
Learnt from: gimlichael
PR: codebeltnet/xunit#17
File: src/Codebelt.Extensions.Xunit.Hosting/Codebelt.Extensions.Xunit.Hosting.csproj:22-26
Timestamp: 2024-10-09T14:10:40.721Z
Learning: In the `src/Codebelt.Extensions.Xunit.Hosting/Codebelt.Extensions.Xunit.Hosting.csproj` file, only certain .NET 8 packages are available in version 8.0.1, while others remain at 8.0.0, so package versions may differ due to availability.
🪛 Hadolint (2.12.0)
.docfx/Dockerfile.docfx

[error] 6-6: Use COPY instead of ADD for files and folders

(DL3020)

⏰ Context from checks skipped due to timeout of 90000ms (6)
  • GitHub Check: call-test (windows-2022, Release) / 🧪 Test
  • GitHub Check: call-test (ubuntu-24.04, Debug) / 🧪 Test
  • GitHub Check: call-test (windows-2022, Debug) / 🧪 Test
  • GitHub Check: call-test (ubuntu-24.04, Release) / 🧪 Test
  • GitHub Check: call-pack (Release) / 📦 Pack
  • GitHub Check: call-pack (Debug) / 📦 Pack
🔇 Additional comments (8)
.docfx/Dockerfile.docfx (3)

1-1: Approve multi-platform base image update
The addition of --platform=$BUILDPLATFORM with the nginx image ensures multi-architecture builds are supported.


4-4: Approve DocFX build image bump
Updating the build image to codebeltnet/docfx:2.78.3 aligns with the upstream DocFX release.


11-11: Approve final stage image consistency
Switching the final stage to the same nginx:1.27.5-alpine ensures consistency with the base stage and benefits from the security patch.

Directory.Packages.props (4)

7-10: Approve Cuemon and AsyncInterfaces patch bumps
Bumping Cuemon.* and Microsoft.Bcl.AsyncInterfaces from 9.0.4 to 9.0.5 is a straightforward patch update. Ensure downstream projects are compatible, but no breaking changes are expected.


27-32: Approve .NET 9 Microsoft.Extensions and TestHost bumps
Updating all Microsoft.Extensions.* and Microsoft.AspNetCore.TestHost to 9.0.5 ensures consistency across the net9 target framework.


40-40: Approve .NET 8 TestHost patch bump
The bump from 8.0.15 to 8.0.16 for Microsoft.AspNetCore.TestHost is a safe patch-level update.


23-23:

✅ Verification successful

Verify xunit.runner.visualstudio 3.1.0 availability
The upgrade from 3.0.2 to 3.1.0 may include new features or fixes—let’s confirm the package exists and is compatible.


🏁 Script executed:

#!/bin/bash
# Check that xunit.runner.visualstudio 3.1.0 is available on NuGet.org
dotnet nuget list package xunit.runner.visualstudio --source nuget.org --include-prerelease --verbosity quiet | grep "3.1.0"

Length of output: 221


🏁 Script executed:

#!/bin/bash
# Verify xunit.runner.visualstudio 3.1.0 availability via NuGet V3 API
curl -s https://api.nuget.org/v3-flatcontainer/xunit.runner.visualstudio/index.json | grep '"3.1.0"'

Length of output: 114


xunit.runner.visualstudio 3.1.0 is available on NuGet.org
The NuGet V3 API confirms that version 3.1.0 exists and can be consumed—go ahead with the update.

testenvironments.json (1)

12-12:

❓ Verification inconclusive

Verify updated Docker test runner image
Ensure that gimlichael/ubuntu-testrunner:mono-net8.0.409-9.0.300 is published and contains the expected SDK/runtime.


🏁 Script executed:

#!/bin/bash
# Check that the Docker image tag exists on Docker Hub
curl -s https://registry.hub.docker.com/v2/repositories/gimlichael/ubuntu-testrunner/tags/mono-net8.0.409-9.0.300/ | jq .

Length of output: 1536


Docker image tag verified
The tag gimlichael/ubuntu-testrunner:mono-net8.0.409-9.0.300 is published on Docker Hub.

To confirm it contains the expected .NET 8.0.409 SDK and Mono 9.0.300 runtime, please run:

docker run --rm gimlichael/ubuntu-testrunner:mono-net8.0.409-9.0.300 dotnet --list-sdks
docker run --rm gimlichael/ubuntu-testrunner:mono-net8.0.409-9.0.300 mono --version

Ensure the output lists SDK 8.0.409 and Mono 9.0.300.

Copy link

codecov bot commented May 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.26%. Comparing base (fe1b4b9) to head (fc6796f).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #37   +/-   ##
=======================================
  Coverage   92.26%   92.26%           
=======================================
  Files          48       48           
  Lines         931      931           
  Branches      120      120           
=======================================
  Hits          859      859           
  Misses         62       62           
  Partials       10       10           

☔ 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 2d1abfb into main May 23, 2025
17 checks passed
@gimlichael gimlichael deleted the v10.y.z/bump-dependencies branch May 23, 2025 20:15
@coderabbitai coderabbitai bot mentioned this pull request May 24, 2025
@coderabbitai coderabbitai bot mentioned this pull request Jul 10, 2025
@coderabbitai coderabbitai bot mentioned this pull request Aug 16, 2025
@coderabbitai coderabbitai bot mentioned this pull request Sep 14, 2025
@coderabbitai coderabbitai bot mentioned this pull request Oct 17, 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