Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 13, 2026

  • Create RuntimeInfoContributor class to report .NET runtime information
  • Add RuntimeInfoContributor to default contributors in EndpointServiceCollectionExtensions
  • Create tests for RuntimeInfoContributor
  • Update InfoActuatorTest to include runtime info in expected JSON validation
  • All tests passing across net8.0, net9.0, and net10.0
  • Fixed code style issues (ran cleanupcode.ps1 and addressed findings)
  • Removed null check test per team policy

✅ All feedback addressed

Original prompt

This section details on the original issue you should resolve

<issue_title>Include .NET Runtime version information in /info</issue_title>
<issue_description>Steeltoe should either enhance BuildInfoContributor or add a new runtime info contributor to report details on what runtime is in use while the app is running. </issue_description>

<agent_instructions>include tests</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Enhance BuildInfoContributor to include .NET Runtime version Add .NET runtime information to /info actuator endpoint Jan 13, 2026
Copilot AI requested a review from TimHess January 13, 2026 23:12
@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

Summary - All Code Coverage (ubuntu-latest)

Line coverage Branch coverage

Assembly Line coverage Branch coverage
Steeltoe.Bootstrap.AutoConfiguration 97.4% 100%
Steeltoe.Common 84.3% 78.6%
Steeltoe.Common.Certificates 96.2% 85.5%
Steeltoe.Common.Hosting 84% 70%
Steeltoe.Common.Http 100% 85.2%
Steeltoe.Common.Logging 81.1% 56.2%
Steeltoe.Common.Net 64.5% 66.6%
Steeltoe.Configuration.Abstractions 98.5% 91.1%
Steeltoe.Configuration.CloudFoundry 99.1% 91.8%
Steeltoe.Configuration.ConfigServer 97.2% 91.6%
Steeltoe.Configuration.Encryption 97.6% 92.4%
Steeltoe.Configuration.Kubernetes.ServiceBindings 95.1% 89.3%
Steeltoe.Configuration.Placeholder 93.8% 84.7%
Steeltoe.Configuration.RandomValue 93.2% 90%
Steeltoe.Configuration.SpringBoot 98.3% 95%
Steeltoe.Connectors 93.9% 89.8%
Steeltoe.Connectors.EntityFrameworkCore 81.5% 75%
Steeltoe.Discovery.Configuration 92.3% 100%
Steeltoe.Discovery.Consul 97.6% 96.1%
Steeltoe.Discovery.Eureka 91.8% 85.2%
Steeltoe.Discovery.HttpClients 94.2% 95.4%
Steeltoe.Logging.Abstractions 99.4% 96.9%
Steeltoe.Logging.DynamicConsole 100% 95.4%
Steeltoe.Logging.DynamicSerilog 99.1% 95.4%
Steeltoe.Management.Abstractions 100% 100%
Steeltoe.Management.Endpoint 95.6% 89.1%
Steeltoe.Management.Prometheus 95.9% 91.6%
Steeltoe.Management.Tasks 100% ****
Steeltoe.Management.Tracing 100% 75%
Steeltoe.Security.Authentication.JwtBearer 100% 100%
Steeltoe.Security.Authentication.OpenIdConnect 73.8% 59%
Steeltoe.Security.Authorization.Certificate 96.3% 75%
Steeltoe.Security.DataProtection.Redis 100% ****

Copilot AI and others added 3 commits January 16, 2026 15:43
…fo endpoint

Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
…ble JSON parsing

Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
…fo included

Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Jan 16, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/SteeltoeOSS/Steeltoe/actions/runs/21081799139/jobs/60636948503
    • Triggering command: /usr/bin/curl curl -s REDACTED (http block)

If you need me to access, download, or install something from one of these locations, you can either:

@TimHess TimHess marked this pull request as ready for review January 20, 2026 19:10
Copy link
Contributor

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 adds .NET runtime information to the /info actuator endpoint by introducing a new RuntimeInfoContributor class that reports the runtime name, version, and runtime identifier.

Changes:

  • Added RuntimeInfoContributor class to collect and report .NET runtime information
  • Registered RuntimeInfoContributor as a default contributor in the DI container
  • Added comprehensive unit tests for the new contributor

Reviewed changes

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

File Description
RuntimeInfoContributor.cs New contributor class that collects runtime information using RuntimeInformation and Environment APIs
EndpointServiceCollectionExtensions.cs Registers RuntimeInfoContributor as a default info contributor
RuntimeInfoContributorTest.cs Unit tests validating runtime information contribution and null parameter handling
InfoActuatorTest.cs Updated integration test to validate runtime information in the actuator endpoint response

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: TimHess <3947063+TimHess@users.noreply.github.com>
Copilot AI requested a review from TimHess January 21, 2026 19:08
@sonarqubecloud
Copy link

@TimHess TimHess added this to the 4.1.0 milestone Jan 23, 2026
@TimHess TimHess added Type/enhancement New feature or request Component/Management Issues related to Steeltoe Management (actuators) ReleaseLine/4.x Identified as a feature/fix for the 4.x release line labels Jan 23, 2026
@TimHess TimHess merged commit c3aec3d into main Jan 23, 2026
19 of 20 checks passed
@TimHess TimHess deleted the copilot/add-dotnet-runtime-info branch January 23, 2026 21:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component/Management Issues related to Steeltoe Management (actuators) ReleaseLine/4.x Identified as a feature/fix for the 4.x release line Type/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include .NET Runtime version information in /info

3 participants