Skip to content
49 changes: 38 additions & 11 deletions gc-azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Project: src\benchmarks\gc\GC.Infrastructure\GC.Infrastructure.NotebookTests\GC.Infrastructure.NotebookTests.csproj.
# Output: artifacts\bin\GC.Infrastructure.NotebookTests\Debug\net8.0\GC.Infrastructure.NotebookTests.dll
# Project: src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.Core.UnitTests/GC.Infrastructure.Core.UnitTests.csproj.
# Output: artifacts\bin\GC.Infrastructure.Core.UnitTests\Debug\net8.0\GC.Infrastructure.Core.UnitTests.dll

resources:
containers:
Expand All @@ -26,15 +26,15 @@ pr:
jobs:

# TODO: Add back once we have validated windows.
# - job: GCNotebookValidation_Ubuntu
# - job: GCInfrastructureValidation_Ubuntu
# pool:
# vmImage: ubuntu-latest
# container: ubuntu_x64_build_container

# TODO: Add.
- job: GCNotebookValidation_Windows
- job: GCInfrastructureValidation_Windows
pool:
vmImage: windows-2019
vmImage: windows-2025

steps:
# Install dotnet. We temporarily need both .NET 8 (for building and running the projects) and .NET 9 (for installing deps).
Expand All @@ -52,27 +52,54 @@ jobs:
inputs:
version: 10.0.x
includePreviewVersions: true
- task: UseDotNet@2
displayName: Install .NET 11.0
inputs:
version: 11.0.x
includePreviewVersions: true
Comment thread
janvorli marked this conversation as resolved.
Comment thread
janvorli marked this conversation as resolved.
- script: dotnet tool restore
- script: dotnet tool install --global dotnet-repl
Comment thread
janvorli marked this conversation as resolved.
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.NotebookTests/GC.Infrastructure.NotebookTests.csproj --configuration Debug --framework net8.0
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Analysis.API/GC.Analysis.API.csproj --configuration Release --framework net8.0
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.Core/GC.Infrastructure.Core.csproj --configuration Debug --framework net8.0
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Infrastructure.Core.UnitTests/GC.Infrastructure.Core.UnitTests.csproj --configuration Debug --framework net8.0
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Analysis.API/GC.Analysis.API.csproj --configuration Debug --framework net8.0
- script: dotnet build src/benchmarks/gc/GC.Infrastructure/GC.Analysis.API.UnitTests/GC.Analysis.API.UnitTests.csproj --configuration Debug --framework net8.0

# Run tests. Template installed from: https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/vstest-v3?view=azure-pipelines
- task: VSTest@3
inputs:
# -------------- #
# Test selection #
# -------------- #
testAssemblyVer2: GC.Infrastructure.NotebookTests.dll
searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/bin/GC.Infrastructure.NotebookTests/Debug/net8.0'
testAssemblyVer2: GC.Infrastructure.Core.UnitTests.dll
searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/bin/GC.Infrastructure.Core.UnitTests/Debug/net8.0'
otherConsoleOptions: '--Framework:net8.0'
# Uncomment to save results in the future.
Comment thread
janvorli marked this conversation as resolved.
# resultsFolder: '$(Agent.TempDirectory)\TestResults' # string. Test results folder. Default: $(Agent.TempDirectory)\TestResults.

# ----------------- #
# Reporting options #
# ----------------- #
testRunTitle: 'GC Notebook Test'
testRunTitle: 'GC Infrastructure Core Unit Test'
# TODO: Double Check.
platform: 'Windows' ## string. Build platform.
# TODO: Double Check.
configuration: 'Test Notebooks' # string. Build configuration.
configuration: 'Test GC Infrastructure Core' # string. Build configuration.
Comment thread
janvorli marked this conversation as resolved.
- task: VSTest@3
inputs:
# -------------- #
# Test selection #
# -------------- #
testAssemblyVer2: GC.Analysis.API.UnitTests.dll
searchFolder: '$(System.DefaultWorkingDirectory)/artifacts/bin/GC.Analysis.API.UnitTests/Debug/net8.0'
Comment thread
janvorli marked this conversation as resolved.
otherConsoleOptions: '--Framework:net8.0'
# Uncomment to save results in the future.
Comment thread
janvorli marked this conversation as resolved.
# resultsFolder: '$(Agent.TempDirectory)\TestResults' # string. Test results folder. Default: $(Agent.TempDirectory)\TestResults.

# ----------------- #
# Reporting options #
# ----------------- #
testRunTitle: 'GC Analysis API Unit Test'
# TODO: Double Check.
platform: 'Windows' ## string. Build platform.
# TODO: Double Check.
configuration: 'Test GC Analysis API' # string. Build configuration.
Comment thread
janvorli marked this conversation as resolved.