Skip to content
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

.NET 8 preparation #1734

Merged
merged 11 commits into from
Oct 27, 2023
Merged

Conversation

martincostello
Copy link
Member

@martincostello martincostello commented Oct 27, 2023

Cherry-pick various changes from #1144 that do not need the .NET 8 SDK to actually be used yet.

  • Add Visual Studio spell checker dictionary.
  • Put the mutation report into the artifacts directory.
  • Tidy up the docfx .gitignore files.
  • Fix typo in docs and code.
  • Remove some redundant code analysis suppressions.
  • Resolve some new code analysis warnings from .NET 8 SDK.
  • Fix-up some whitespace.
  • Fix xunit warning about duplicated test cases by using a Func<TimeSpan> so we can use Timeout.InfiniteTimeSpan and TimeSpan.FromMilliseconds(-1) which are equal.
  • Avoid warnings from enabling trim analysis for unsupported TFMs when using the .NET 8 SDK.
  • Use attributes for native AOT warning suppressions so that the native AOT compiler can see them.

martincostello and others added 7 commits October 27, 2023 09:12
Add Visual Studio spell checker dictionary.
Put the mutation report into the artifacts directory.
Tidy up the docfx .gitignore files.
- Remove some redundant code analysis suppressions.
- Resolve some new code analysis warnings from .NET 8 SDK.
- Fix-up some whitespace.
- Fix a minor typo.
Fix xunit warning about duplicated test cases by using a `Func<TimeSpan>` so we can use `Timeout.InfiniteTimeSpan` and `TimeSpan.FromMilliseconds(-1)` which are equal.
Avoid warnings from enabling trim analysis for unsupported TFMs when using the .NET 8 SDK.
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b2b170) 84.56% compared to head (296d108) 84.56%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1734   +/-   ##
=======================================
  Coverage   84.56%   84.56%           
=======================================
  Files         307      307           
  Lines        6790     6790           
  Branches     1043     1043           
=======================================
  Hits         5742     5742           
  Misses        839      839           
  Partials      209      209           
Flag Coverage Δ
linux 84.56% <100.00%> (ø)
macos 84.56% <100.00%> (ø)
windows 84.56% <100.00%> (ø)

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

Files Coverage Δ
...itBreaker/CircuitBreakerStrategyOptions.TResult.cs 100.00% <ø> (ø)
...Core/Hedging/Controller/HedgingExecutionContext.cs 100.00% <ø> (ø)
src/Polly.Core/ResiliencePipelineBuilderBase.cs 100.00% <ø> (ø)
...c/Polly.Core/Retry/RetryStrategyOptions.TResult.cs 100.00% <ø> (ø)
src/Polly.Core/Simmy/Fault/FaultStrategyOptions.cs 100.00% <100.00%> (ø)
...c/Polly.Core/Simmy/Latency/LatencyChaosStrategy.cs 100.00% <ø> (ø)
src/Polly.Core/Simmy/MonkeyStrategy.cs 100.00% <ø> (ø)
.../Polly.Core/Simmy/MonkeyStrategyOptions.TResult.cs 100.00% <ø> (ø)
.../Polly.Core/Simmy/Outcomes/OutcomeChaosStrategy.cs 100.00% <ø> (ø)
...e/Simmy/Outcomes/OutcomeStrategyOptions.TResult.cs 100.00% <100.00%> (ø)
... and 2 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Attempt to resolve mutant in the ResiliencePipeline constructor.
Use attributes instead of pragmas so the native AOT compiler can see them.
Relates to App-vNext#1732.
@martincostello
Copy link
Member Author

@martintmk Can you help me resolve the mutant? I tried fixing it in 4723fdc but that just seemed to make it worse 😅

Allow for missing mutation to unblock the PR. Can cycle back to raise it back to 100 later when I work out how to appease the tool.
Fix Stryker configuration to properly allow for some slack.
@martincostello martincostello marked this pull request as ready for review October 27, 2023 14:03
@martincostello martincostello merged commit c6460ff into App-vNext:main Oct 27, 2023
@martincostello martincostello deleted the dotnet-8-prep branch October 27, 2023 14:03
This was referenced Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants