Skip to content

[Resources.ProcessRuntime] Allow preview versions #2823

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

martincostello
Copy link
Member

Changes

Update assertion to not fail if a preview or release candidate version of .NET is being used.

See #2822.

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

@Copilot Copilot AI review requested due to automatic review settings June 9, 2025 11:53
@martincostello martincostello requested a review from a team as a code owner June 9, 2025 11:53
@github-actions github-actions bot added the comp:resources.processruntime Things related to OpenTelemetry.Resources.ProcessRuntime label Jun 9, 2025
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 updates the test assertion for ProcessRuntime attributes to support preview and release candidate .NET versions.

  • Updated the regex in ProcessRuntimeDetectorTests.cs to correctly match preview and RC versions.
  • Ensured compatibility with the test for .NET version string formatting.

Copy link

codecov bot commented Jun 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.33%. Comparing base (71655ce) to head (42b226e).
Report is 880 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2823      +/-   ##
==========================================
+ Coverage   73.91%   83.33%   +9.41%     
==========================================
  Files         267        4     -263     
  Lines        9615       60    -9555     
==========================================
- Hits         7107       50    -7057     
+ Misses       2508       10    -2498     
Flag Coverage Δ
unittests-Resources.Process 100.00% <ø> (?)
unittests-Resources.ProcessRuntime 78.26% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 265 files with indirect coverage changes

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot removed the Stale label Jun 18, 2025
Update assertion to not fail if a preview or release candidate version of .NET is being used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:resources.processruntime Things related to OpenTelemetry.Resources.ProcessRuntime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants