Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/quality-gate/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ Each stage passes, fails or is skipped; a skipped blocking stage makes the run i

Requires `dotnet`, `jq`, `git`, the .NET 8 and .NET 10 runtimes, and a local Supabase (`supabase start`) for E2E tests.

The gate always builds the `.sln` at the repository root. A package is a directory holding a test project the solution lists (`*Tests*.csproj`) and the project it tests. The directory you pass only picks which packages get tests, coverage and report rows, so one package and every package build and pack the same way.

## Stages

| id | Stage | Blocks | Fails when |
Expand Down Expand Up @@ -80,4 +82,4 @@ An intended API break is accepted with the `CompatibilitySuppressions.xml` from
./scripts/quality-gate/fixtures-mark-api/run.sh
```

Each fixture is a small package with one defect and the verdict the gate must give. Fixtures run in parallel; `runsAfter` in `expect.json` orders one after another, `target` gates a subdirectory of the fixture instead of its root, and a stage's `package` picks one of several rows with the same id. A behavior change needs a fixture.
Each fixture is a small repository with one defect and the verdict the gate must give. `_base` holds a package and the `Sample.sln` that lists it; a fixture with other projects brings its own `Sample.sln`. Fixtures run in parallel; `runsAfter` in `expect.json` orders one after another, `target` gates a subdirectory of the fixture instead of its root, and a stage's `package` picks one of several rows with the same id. A behavior change needs a fixture.
48 changes: 48 additions & 0 deletions scripts/quality-gate/fixtures/_base/Sample.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "Sample\Sample.csproj", "{A09C3EF9-FC59-43E7-8538-0FB02539B63E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Tests", "Sample.Tests\Sample.Tests.csproj", "{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Debug|x64.ActiveCfg = Debug|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Debug|x64.Build.0 = Debug|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Debug|x86.ActiveCfg = Debug|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Debug|x86.Build.0 = Debug|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Release|Any CPU.Build.0 = Release|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Release|x64.ActiveCfg = Release|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Release|x64.Build.0 = Release|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Release|x86.ActiveCfg = Release|Any CPU
{A09C3EF9-FC59-43E7-8538-0FB02539B63E}.Release|x86.Build.0 = Release|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Debug|x64.ActiveCfg = Debug|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Debug|x64.Build.0 = Debug|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Debug|x86.ActiveCfg = Debug|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Debug|x86.Build.0 = Debug|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Release|Any CPU.Build.0 = Release|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Release|x64.ActiveCfg = Release|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Release|x64.Build.0 = Release|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Release|x86.ActiveCfg = Release|Any CPU
{5D41AD16-ACAE-4B09-91BF-1D3F1BAD84FD}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "packages", "packages", "{809F86A1-1C4C-B159-0CD4-DF9D33D876CE}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "App", "App", "{F951D921-41BC-27A4-BAFA-4338339C6C2E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App", "packages\App\App\App.csproj", "{18A43F05-4B28-4D8C-B80D-6EBADC746093}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "App.Tests", "packages\App\App.Tests\App.Tests.csproj", "{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Debug|Any CPU.Build.0 = Debug|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Debug|x64.ActiveCfg = Debug|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Debug|x64.Build.0 = Debug|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Debug|x86.ActiveCfg = Debug|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Debug|x86.Build.0 = Debug|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Release|Any CPU.ActiveCfg = Release|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Release|Any CPU.Build.0 = Release|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Release|x64.ActiveCfg = Release|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Release|x64.Build.0 = Release|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Release|x86.ActiveCfg = Release|Any CPU
{18A43F05-4B28-4D8C-B80D-6EBADC746093}.Release|x86.Build.0 = Release|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Debug|x64.ActiveCfg = Debug|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Debug|x64.Build.0 = Debug|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Debug|x86.ActiveCfg = Debug|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Debug|x86.Build.0 = Debug|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Release|Any CPU.Build.0 = Release|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Release|x64.ActiveCfg = Release|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Release|x64.Build.0 = Release|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Release|x86.ActiveCfg = Release|Any CPU
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{F951D921-41BC-27A4-BAFA-4338339C6C2E} = {809F86A1-1C4C-B159-0CD4-DF9D33D876CE}
{18A43F05-4B28-4D8C-B80D-6EBADC746093} = {F951D921-41BC-27A4-BAFA-4338339C6C2E}
{EDBC603C-2E6D-4D03-94AC-F4B5363EAC96} = {F951D921-41BC-27A4-BAFA-4338339C6C2E}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"schema": 1,
"package": "format-outside-scope-ignored",
"project": "App/App/App.csproj",
"testProject": "App/App.Tests/App.Tests.csproj",
"project": "App/App.csproj",
"testProject": "App.Tests/App.Tests.csproj",
"warnings": {
"total": 0,
"byCode": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "Sample\Sample.csproj", "{E971DD0D-D9E7-48B8-B851-AFADA7091647}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Tests", "Sample.Tests\Sample.Tests.csproj", "{274C569A-E46F-4F49-B268-BAE6D1B4FA49}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared", "Shared\Shared.csproj", "{5C989497-FBA7-44C0-ABC9-3634343165EC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Debug|x64.ActiveCfg = Debug|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Debug|x64.Build.0 = Debug|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Debug|x86.ActiveCfg = Debug|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Debug|x86.Build.0 = Debug|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Release|Any CPU.Build.0 = Release|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Release|x64.ActiveCfg = Release|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Release|x64.Build.0 = Release|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Release|x86.ActiveCfg = Release|Any CPU
{E971DD0D-D9E7-48B8-B851-AFADA7091647}.Release|x86.Build.0 = Release|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Debug|Any CPU.Build.0 = Debug|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Debug|x64.ActiveCfg = Debug|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Debug|x64.Build.0 = Debug|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Debug|x86.ActiveCfg = Debug|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Debug|x86.Build.0 = Debug|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Release|Any CPU.ActiveCfg = Release|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Release|Any CPU.Build.0 = Release|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Release|x64.ActiveCfg = Release|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Release|x64.Build.0 = Release|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Release|x86.ActiveCfg = Release|Any CPU
{274C569A-E46F-4F49-B268-BAE6D1B4FA49}.Release|x86.Build.0 = Release|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Debug|x64.ActiveCfg = Debug|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Debug|x64.Build.0 = Debug|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Debug|x86.ActiveCfg = Debug|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Debug|x86.Build.0 = Debug|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Release|Any CPU.Build.0 = Release|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Release|x64.ActiveCfg = Release|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Release|x64.Build.0 = Release|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Release|x86.ActiveCfg = Release|Any CPU
{5C989497-FBA7-44C0-ABC9-3634343165EC}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample", "Sample\Sample.csproj", "{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sample.Tests", "Sample.Tests\Sample.Tests.csproj", "{32B394DB-9C31-439C-A676-624C31A4731A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Shared", "Shared\Shared.csproj", "{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Debug|x64.ActiveCfg = Debug|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Debug|x64.Build.0 = Debug|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Debug|x86.ActiveCfg = Debug|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Debug|x86.Build.0 = Debug|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Release|Any CPU.Build.0 = Release|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Release|x64.ActiveCfg = Release|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Release|x64.Build.0 = Release|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Release|x86.ActiveCfg = Release|Any CPU
{3D813FB8-4721-4AC9-9D79-B819EAA77FBF}.Release|x86.Build.0 = Release|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Debug|x64.ActiveCfg = Debug|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Debug|x64.Build.0 = Debug|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Debug|x86.ActiveCfg = Debug|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Debug|x86.Build.0 = Debug|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Release|Any CPU.Build.0 = Release|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Release|x64.ActiveCfg = Release|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Release|x64.Build.0 = Release|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Release|x86.ActiveCfg = Release|Any CPU
{32B394DB-9C31-439C-A676-624C31A4731A}.Release|x86.Build.0 = Release|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Debug|x64.ActiveCfg = Debug|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Debug|x64.Build.0 = Debug|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Debug|x86.ActiveCfg = Debug|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Debug|x86.Build.0 = Debug|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Release|Any CPU.Build.0 = Release|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Release|x64.ActiveCfg = Release|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Release|x64.Build.0 = Release|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Release|x86.ActiveCfg = Release|Any CPU
{7A37A2DD-D376-4EF5-B76F-9FD392CE5FC4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Loading
Loading