Skip to content

remove PublicAPI.* files - #1313

Merged
bruno-garcia merged 2 commits into
mainfrom
RemovePublicAPI
Nov 8, 2021
Merged

bruno-garcia merged 2 commits into
mainfrom
RemovePublicAPI

Conversation

@SimonCropp

Copy link
Copy Markdown
Contributor

since we went with #1287

#skip-changelog

since we went with #1287
@codecov-commenter

codecov-commenter commented Nov 8, 2021 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.60%. Comparing base (78aa050) to head (752aa0c).
⚠️ Report is 2387 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1313   +/-   ##
=======================================
  Coverage   82.60%   82.60%           
=======================================
  Files         213      213           
  Lines        7116     7116           
  Branches     1401     1401           
=======================================
  Hits         5878     5878           
  Misses        803      803           
  Partials      435      435           

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

@bruno-garcia

Copy link
Copy Markdown
Member
Error: Ben.Demystifier.Test.NonThrownException.Current: Assert.Equal() Failure
  Failed Ben.Demystifier.Test.NonThrownException.Current [10 ms]
  Error Message:
   Assert.Equal() Failure
Expected: String[] ["   at bool System.Threading.ThreadPoolWorkQueue.Di"..., "   at void System.Threading.PortableThreadPool+Wor"..., "   at void System.Threading.Thread.StartCallback()"]
Actual:   WhereArrayIterator<String> ["   at bool System.Threading.ThreadPoolWorkQueue.Di"..., "   at void System.Threading.PortableThreadPool+Wor"...]
  Stack Trace:
     at Ben.Demystifier.Test.NonThrownException.Current() in /home/runner/work/sentry-dotnet/sentry-dotnet/modules/Ben.Demystifier/test/Ben.Demystifier.Test/NonThrownException.cs:line 110
--- End of stack trace from previous location ---

Failed!  - Failed:     1, Passed:  1029, Skipped:     1, Total:  1031, Duration: 15 s - /home/runner/work/sentry-dotnet/sentry-dotnet/test/Sentry.Tests/bin/Release/net6.0/Sentry.Tests.dll (net6.0)

Seems like we have a flaky test now with Ben.Demystifier's test after the .NET 6 change

@bruno-garcia
bruno-garcia merged commit b624635 into main Nov 8, 2021
@bruno-garcia
bruno-garcia deleted the RemovePublicAPI branch November 8, 2021 22:05
jamescrosswell added a commit that referenced this pull request Jul 8, 2026
Extend the TargetFramework -> TargetFrameworkIdentifier/Version conversion to the
remaining conditions raised in review, and make the approach reliable everywhere.

Pre-compute TargetFrameworkIdentifier/TargetFrameworkVersion in Directory.Build.props
(exactly as the SDK does, including the 'v' version prefix). The SDK only sets these
late in its own targets, so they were empty during early <PropertyGroup> evaluation -
computing them early lets us use the property-based syntax consistently in both
<PropertyGroup> and <ItemGroup> conditions instead of $(TargetFramework) string checks.

Also:
- Convert the remaining net4/netstandard/net48 conditions across src, test and samples.
- Drop incidental .NET Framework version pins; the specific version was never required.
- Simplify the native-AOT upload gate to the existing $(_SentryIsNet8OrGreater) helper,
  which also correctly excludes net5/6/7 (the previous list missed net5).
- Remove the dead RS0017 NoWarn (the analyzer that emitted it was removed in #1313).
- Use a clearer negated form for the Serilog netstandard2.0 package condition.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
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.

4 participants