-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #589 from serilog-mssql/dev
* Fixed issue #580: Removed deprecated transitive dependency on Microsoft.NETCore.Targets by removing runtime identifier (thanks to @david-brink-talogy) * Fixed issues #540 and #541 in README * Added performance tests including a GitHub actions workflow * Minor cleanups and fixes
- Loading branch information
Showing
21 changed files
with
538 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Performance Tests | ||
|
||
on: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-and-perftest: | ||
runs-on: windows-latest # Build on Windows to ensure .NET Framework targets | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Run build | ||
run: ./Build.ps1 -SkipTests | ||
shell: pwsh | ||
|
||
- name: Run performance tests | ||
run: ./RunPerfTests.ps1 -Filter ${{ secrets.PERF_TESTS_FILTER }} | ||
shell: pwsh | ||
|
||
- name: Upload perf test results artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: perftestresults | ||
path: artifacts\perftests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="6.0.1" /> | ||
<PackageVersion Include="System.Formats.Asn1" Version="8.0.1" /> | ||
<PackageVersion Include="System.Private.Uri" Version="4.3.2" /> | ||
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.1.6" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="6.0.1" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="6.0.1" /> | ||
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" /> | ||
<PackageVersion Include="coverlet.collector" Version="3.2.0" /> | ||
<PackageVersion Include="FluentAssertions" Version="6.7.0" /> | ||
<PackageVersion Include="Dapper.StrongName" Version="2.0.123" /> | ||
<PackageVersion Include="Moq" Version="4.18.2" /> | ||
<PackageVersion Include="xunit" Version="2.9.0" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" /> | ||
<PackageVersion Include="Serilog" Version="4.0.0" /> | ||
<PackageVersion Include="Serilog.Extensions.Hosting" Version="5.0.1" /> | ||
<PackageVersion Include="Serilog.Settings.Configuration" Version="3.4.0" /> | ||
</ItemGroup> | ||
</Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="BenchmarkDotNet" Version="0.14.0" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" /> | ||
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="6.0.1" /> | ||
<PackageVersion Include="System.Formats.Asn1" Version="8.0.1" /> | ||
<PackageVersion Include="System.Private.Uri" Version="4.3.2" /> | ||
<PackageVersion Include="Microsoft.Data.SqlClient" Version="5.1.6" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration" Version="6.0.1" /> | ||
<PackageVersion Include="Microsoft.Extensions.Configuration.Json" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.Extensions.Hosting" Version="6.0.1" /> | ||
<PackageVersion Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" /> | ||
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" /> | ||
<PackageVersion Include="coverlet.collector" Version="3.2.0" /> | ||
<PackageVersion Include="FluentAssertions" Version="6.7.0" /> | ||
<PackageVersion Include="Dapper.StrongName" Version="2.0.123" /> | ||
<PackageVersion Include="Moq" Version="4.18.2" /> | ||
<PackageVersion Include="xunit" Version="2.9.0" /> | ||
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" /> | ||
<PackageVersion Include="Serilog" Version="4.0.0" /> | ||
<PackageVersion Include="Serilog.Extensions.Hosting" Version="5.0.1" /> | ||
<PackageVersion Include="Serilog.Settings.Configuration" Version="3.4.0" /> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Mandatory = $false)] | ||
[string] | ||
$Filter = "*" | ||
) | ||
|
||
echo "perf: Performance tests started with Filter = $Filter" | ||
|
||
Push-Location $PSScriptRoot | ||
|
||
$artifactsPath = "$PSScriptRoot\artifacts\perftests" | ||
|
||
if (Test-Path "$artifactsPath") { | ||
echo "perf: Cleaning $artifactsPath" | ||
Remove-Item "$artifactsPath" -Force -Recurse | ||
} | ||
|
||
New-Item -Path "$artifactsPath" -ItemType Directory | ||
|
||
$perfTestProjectPath = "$PSScriptRoot/test/Serilog.Sinks.MSSqlServer.PerformanceTests" | ||
Push-Location "$perfTestProjectPath" | ||
|
||
echo "perf: Running performance test project in $perfTestProjectPath" | ||
& dotnet run -c Release -- -f $Filter | ||
|
||
cp ".\BenchmarkDotNet.Artifacts\results\*.*" "$artifactsPath\" | ||
Pop-Location | ||
|
||
Pop-Location |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.