Граф коммитов

55 Коммитов

Автор SHA1 Сообщение Дата
martincostello bafe6e1fdc Update cake tools
- Bump xunit.runner.console to 2.9.2.
- Bump dotnet-stryker to 4.2.0.
- Remove redundant branch because when the key is null it uses the default key, which is what `CurrentValue` does anyway.
- Assert that the correct options instance is retrieved.
- Explicitly pass the configuration to stryker.
2024-10-14 14:49:58 +01:00
Henrik 5b39448083
Set dotnet_diagnostic.CA1852.severity as warning (#2289)
Seal some internal types as if `dotnet_diagnostic.CA1852.severity = warning` was in effect.
2024-09-17 10:21:43 +00:00
martincostello 7a4a9139c3 Issue comment automation
Add GitHub Actions automation to comment on issues and pull requests when a new version is published to NuGet.org.
2024-05-29 14:34:47 +01:00
Dmitrij a31bdc2ec6
Fix more style warnings (#2089)
Fix or suppress CA1000, S4023, S3442, S107, SA1402 and SA1649 warnings.
2024-05-01 12:38:08 +01:00
Dmitrij 31f7cce780
Fix S3253/S6605/SA1625/S103 warnings (#2086) 2024-04-29 14:17:05 +01:00
Martin Costello 6bf7fc109f
Add package tools to manifest (#2084)
- Add dotnet-validate and sign to the tools manifest so that dependabot can update them if there's newer versions released, and then reference that version in the build workflow.
- Bump version to 8.4 for the next release.
2024-04-29 12:47:25 +01:00
Martin Costello 20cf89205b
Release automation (#2062) 2024-04-25 08:07:44 +01:00
Baranyai Máté 19b5e73e23
Fix S6608/IDE1006/SA1414/CA1508 warnings (#1935)
- Fix S6608/IDE1006/SA1414/CA1508 warnings in Polly.Specs project.
- Use PascalCase in named tuples and fix SA1316 warnings from change.
2024-01-27 11:04:00 +00:00
Martin Costello 9eb4824b0c Bump dotnet-stryker to 3.12.0
See https://github.com/stryker-mutator/stryker-net/issues/2741.
2023-11-22 12:45:44 +00:00
martincostello 4ab0b17cd9 Add NuGet package descriptions
- Add NuGet package description for each library.
- Add library-specific NuGet package tags.

Resolves #1812.
2023-11-20 08:42:14 +00:00
Martin Costello 21a0e549c2 Remove SourceLink package
This is redundant now as it's built in to the .NET 8 SDK.
2023-11-17 11:05:12 +00:00
Martin Costello 269791269d
Bump version to 8.3.0 (#1798)
- Bump version to 8.3.0.
- Update Public API baselines.

Resolves #1790.
2023-11-14 18:49:45 +00:00
Martin Costello a2559b1ab7
Add support for .NET 8 (#1144)
- Add `net8.0` targets.
- Use .NET `TimeProvider` implementation.
- Use `FakeTimeProvider` for tests.
- Use new .NET 8 APIs where relevant.

Co-Authored-By: martintmk <103487740+martintmk@users.noreply.github.com>
2023-11-14 16:29:43 +00:00
Martin Costello 74677bc963
Update to .NET 8 SDK (#1738)
- Build with the .NET 8 SDK.
- Use new artifacts output.
- Use C#12 collection initializers where relevant.
- Suppress false positives when using `TheoryData`.
- Remove some redundant code analysis suppressions.
- Resolve CP0001 and CP0002 warnings with the .NET 8 SDK.
- Fix mutation tests by switching to Windows and updating the settings to support .NET 8 and C# 12.
- Fix NETSDK1204 error as cannot publish AoT on macOS.
- Fix NETSDK1201 error on Linux and Windows.
2023-11-14 15:29:49 +00:00
martincostello 98f29c84d4 Update package baselines
Update API/NuGet package baselines for 8.1.0.
2023-10-31 18:53:40 +00:00
martincostello 83b5d57c8c Bump version to 8.2.0
Bump Polly version to 8.2.0.
2023-10-31 18:53:40 +00:00
martincostello 61fdcbda6d Update CHANGELOG
- Update CHANGELOG for 8.1.0 release.
- Fix or suppress Markdownlint warnings.
- Fix `PackageReleaseNotes` URL.
2023-10-30 16:29:39 +00:00
martincostello abd7a4285f Bump version to 8.1.0
Bump Polly version to 8.1.0.
2023-10-30 16:29:39 +00:00
martincostello 968ed412b1 Refactor [InternalsVisibleTo]
- Use MSBuild built-in support for `[InternalsVisibleTo]` public key.
- Rename item so it can be used in projects that aren't tests without an incorrect name.
- Make it easier to build without strong naming.
- Make conditions a bit more readable.
- Sort properties.
2023-10-28 19:11:52 +01:00
martincostello c6460ffd50 Fix Stryker config
Fix Stryker configuration to properly allow for some slack.
2023-10-27 15:03:39 +01:00
martincostello 1ab1478628 Allow for mutation
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.
2023-10-27 15:03:39 +01:00
martintmk 160efa5388
Attempt to fix code-ql issues (#1708) 2023-10-19 14:47:10 +00:00
Martin Costello e21aec3366
Docs tweaks (#1655)
- Fix CS7035 warning from docfx by cloning with the tags to compute the version number correctly.
- Fix two small typos.
- Remove outdated notes from content.
- Add Polly as the name and title for the site.
- Specify the language as English.
2023-09-29 10:02:53 +00:00
martintmk d7758d8ef5
v8 Release - commit and validate public API (#1632)
- Release - commit and validate public API
- Disable package validation for snippets and TestUtils.

Co-authored-by: Martin Costello <martin@martincostello.com>
2023-09-28 12:09:16 +00:00
martincostello c4eaa689c8 Add banned API analyzers
Add  to detect usage of problematic code patterns.
2023-09-28 03:18:18 -04:00
martintmk 2759971f0c
Use SHA256 for ChecksumAlgorithm (#1623) 2023-09-25 08:12:36 +00:00
martincostello 855ce0164d Remove Moq
Remove Moq and replace with NSubstitute.
Resolves #1470.
2023-08-09 13:57:36 +01:00
martintmk 54cff7ba26
Include PublicApiAnalyzers (#1400) 2023-07-14 13:09:12 +00:00
martintmk 9956812a86
Accelerate build in VS (#1369) 2023-06-29 11:56:33 +02:00
martincostello 049bd92161 Prepare for .NET 8
Backport various changes from #1144:
- Simplify NuGet package version management.
- Simplify TimeProviderExtensions.
- Enable .NET analyzers.
- Remove `MockTimeProvider`.
- Minor code formatting clean-ups.
2023-06-27 10:37:11 +01:00
Martin Costello 86b562dab1 Add hedging to package tags
Add a tag for hedging to the NuGet packages.
2023-06-15 15:59:31 +01:00
Martin Costello 934eef34d2
Add v8 alpha.1 changelog and fix-up package README (#1296)
- Update the CHANGELOG for `8.0.0-alpha.1`.
- Add dedicated NuGet package README that is much simpler and delegates most content to the repository. Resolves #1293.
2023-06-14 13:18:46 +00:00
martintmk cd9c59e599
Reorganize the `src` folder (#1289) 2023-06-14 06:46:28 +00:00
martincostello dd935b266a Rename package icon
Rename the file for the NuGet package icon to avoid issue when signing the packages.
2023-06-13 17:30:54 +01:00
martincostello 53e01a87bc Use MinVer for versioning
- Switch to MinVer from GitVersion to make tag-based versioning simpler and reduce the build complexity.
- Fix incorrect condition for publishing to GitHub Packages for tags.
- Refactor the build script to reduce repetition.
- README tidy-up.
2023-06-13 07:53:45 +01:00
martincostello 59fd86bb6b Add package signing
Add package signing and validation before publishing to NuGet.org.
2023-06-10 08:34:03 +01:00
martincostello ae2eb7259c Add NuGet package README
Add a README file to the NuGet packages.
2023-06-09 10:08:24 +01:00
martincostello dbd9d6769f Add NuGet package validation
Add NuGet package validation analysers.
See https://github.com/App-vNext/Polly/issues/1141#issuecomment-1531059423.
2023-05-02 11:17:55 +01:00
martintmk a1ef1bb54c
Implement Advanced Circuit Breaker (#1153) 2023-04-24 16:22:38 +02:00
martintmk cec36cb99b
Introduce TelemetryResilienceStrategy (#1140) 2023-04-18 12:56:15 +02:00
martincostello b30bd0dbf5 +semver: major deterministic build
- Fix deterministic builds.
- Bump version to 8.0.0 as #1121 failed.
2023-04-14 21:17:40 +01:00
Martin Costello ee714944d9 Specify Deterministic=true
Enable deterministic builds to try and resolve #1122.
2023-04-14 21:17:40 +01:00
martintmk 1241a4ad99
Introduce Polly.Extensions project (#1088) 2023-04-03 15:28:30 +02:00
martintmk 94b309d0d2
Introduce Timeout Strategy (#1079) 2023-03-27 09:16:34 +00:00
martintmk 82c34675ef
Move the LegacyFolder outside of Polly.Core (#1083)
* Introduce LegacySupport folder

* Cleanup
2023-03-27 08:56:44 +02:00
martintmk 36ceee0fda
Introduce TimeProvider (#1077) 2023-03-22 15:49:33 +01:00
Martin Costello 9c5c1ec72c
Fix coverage upload (#1076)
- Output a report in Cobertura format for coverlet.
- Write the reports to a stable directory path for coverlet upload.
- Build and test in the order of the dependency tree since #1075.
2023-03-22 14:23:41 +00:00
martintmk d94f85fa0c
Polly now references Polly.Core (#1075) 2023-03-22 07:31:19 +01:00
martincostello 00891645d1 Adopt Central Package Management
Adopt Adopt Central Package Management for NuGet packages.
Resolves #1064.
2023-03-21 12:35:36 +00:00
martintmk 66ca902ebe
Introduce Polly.Core.Benchmark (#1061) 2023-03-18 20:04:10 +01:00