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

Cert rotator #4617

Merged
merged 24 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 14 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
310 changes: 155 additions & 155 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,135 +459,135 @@ jobs:
# Scheduled runs will run all of the jobs on the PerfTigers, as well as the Arm64 job
- ${{ if or(and(and(ne(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'Schedule')), not(contains(variables['Build.QueuedBy'], 'Weekly'))), parameters.runScheduledPrivateJobs) }}:

# SDK scenario benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/scenarios.yml
buildMachines:
- win-x64
- win-x86
#- ubuntu-x64-1804 reenable under new machine on new ubuntu once lttng/events are available
isPublic: false
jobParameters:
kind: sdk_scenarios
projectFile: sdk_scenarios.proj
channels:
- main
- 8.0
# # SDK scenario benchmarks
DrewScoggins marked this conversation as resolved.
Show resolved Hide resolved
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/scenarios.yml
# buildMachines:
# - win-x64
# - win-x86
# #- ubuntu-x64-1804 reenable under new machine on new ubuntu once lttng/events are available
# isPublic: false
# jobParameters:
# kind: sdk_scenarios
# projectFile: sdk_scenarios.proj
# channels:
# - main
# - 8.0

# Blazor 3.2 scenario benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/scenarios.yml
buildMachines:
- win-x64
isPublic: false
jobParameters:
kind: blazor_scenarios
projectFile: blazor_scenarios.proj
channels:
- main
- 8.0
# # Blazor 3.2 scenario benchmarks
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/scenarios.yml
# buildMachines:
# - win-x64
# isPublic: false
# jobParameters:
# kind: blazor_scenarios
# projectFile: blazor_scenarios.proj
# channels:
# - main
# - 8.0

# F# benchmarks
- ${{ if false }}: # skipping, no useful benchmarks there currently
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: fsharp
csproj: src\benchmarks\real-world\FSharp\FSharp.fsproj
runCategories: 'fsharp'
channels:
- main
- 8.0
# # F# benchmarks
# - ${{ if false }}: # skipping, no useful benchmarks there currently
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# - win-x64
# - ubuntu-x64
# - win-arm64
# - ubuntu-arm64-ampere
# isPublic: false
# jobParameters:
# kind: fsharp
# csproj: src\benchmarks\real-world\FSharp\FSharp.fsproj
# runCategories: 'fsharp'
# channels:
# - main
# - 8.0

- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: fsharpmicro
csproj: src\benchmarks\micro-fsharp\MicrobenchmarksFSharp.fsproj
runCategories: 'FSharpMicro'
channels:
- main
- 8.0
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# - win-x64
# - ubuntu-x64
# - win-arm64
# - ubuntu-arm64-ampere
# isPublic: false
# jobParameters:
# kind: fsharpmicro
# csproj: src\benchmarks\micro-fsharp\MicrobenchmarksFSharp.fsproj
# runCategories: 'FSharpMicro'
# channels:
# - main
# - 8.0

# bepuphysics benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: bepuphysics
csproj: src\benchmarks\real-world\bepuphysics2\DemoBenchmarks.csproj
runCategories: 'BepuPhysics'
channels:
- main
- 8.0
# # bepuphysics benchmarks
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# - win-x64
# - ubuntu-x64
# - win-arm64
# - ubuntu-arm64-ampere
# isPublic: false
# jobParameters:
# kind: bepuphysics
# csproj: src\benchmarks\real-world\bepuphysics2\DemoBenchmarks.csproj
# runCategories: 'BepuPhysics'
# channels:
# - main
# - 8.0

# ImageSharp benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: imagesharp
csproj: src\benchmarks\real-world\ImageSharp\ImageSharp.Benchmarks.csproj
runCategories: 'ImageSharp'
channels:
- main
- 8.0
# # ImageSharp benchmarks
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# - win-x64
# - ubuntu-x64
# - win-arm64
# - ubuntu-arm64-ampere
# isPublic: false
# jobParameters:
# kind: imagesharp
# csproj: src\benchmarks\real-world\ImageSharp\ImageSharp.Benchmarks.csproj
# runCategories: 'ImageSharp'
# channels:
# - main
# - 8.0

# Akade.IndexedSet benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: akadeindexedset
csproj: src\benchmarks\real-world\Akade.IndexedSet.Benchmarks\Akade.IndexedSet.Benchmarks.csproj
runCategories: 'AkadeIndexedSet'
channels:
- main
# # Akade.IndexedSet benchmarks
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# - win-x64
# - ubuntu-x64
# - win-arm64
# - ubuntu-arm64-ampere
# isPublic: false
# jobParameters:
# kind: akadeindexedset
# csproj: src\benchmarks\real-world\Akade.IndexedSet.Benchmarks\Akade.IndexedSet.Benchmarks.csproj
# runCategories: 'AkadeIndexedSet'
# channels:
# - main

# ML.NET benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
# - win-x64
# - ubuntu-x64
- win-arm64
- win-arm64-ampere
- ubuntu-arm64-ampere
# - ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: mlnet
Expand All @@ -602,29 +602,29 @@ jobs:
- DOTNET_GCHeapCount=4
- DOTNET_GCTotalPhysicalMemory=400000000 # 16GB

# Roslyn benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- win-arm64-ampere
- ubuntu-arm64-ampere
isPublic: false
jobParameters:
kind: roslyn
csproj: src\benchmarks\real-world\Roslyn\CompilerBenchmarks.csproj
runCategories: 'roslyn'
channels: # for Roslyn jobs we want to check .NET Core 3.1 and 5.0 only
- main
- 8.0
affinity: '85' # (01010101) Enables alternating process threads to take hyperthreading into account
runEnvVars:
- DOTNET_GCgen0size=410000 # ~4MB
- DOTNET_GCHeapCount=4
- DOTNET_GCTotalPhysicalMemory=400000000 # 16GB
# # Roslyn benchmarks
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# - win-x64
# - ubuntu-x64
# - win-arm64
# - win-arm64-ampere
# - ubuntu-arm64-ampere
# isPublic: false
# jobParameters:
# kind: roslyn
# csproj: src\benchmarks\real-world\Roslyn\CompilerBenchmarks.csproj
# runCategories: 'roslyn'
# channels: # for Roslyn jobs we want to check .NET Core 3.1 and 5.0 only
# - main
# - 8.0
# affinity: '85' # (01010101) Enables alternating process threads to take hyperthreading into account
# runEnvVars:
# - DOTNET_GCgen0size=410000 # ~4MB
# - DOTNET_GCHeapCount=4
# - DOTNET_GCTotalPhysicalMemory=400000000 # 16GB

# ILLink benchmarks
# disabled because of: https://github.com/dotnet/performance/issues/3569
Expand All @@ -644,23 +644,23 @@ jobs:
# - main
# - 8.0

# Powershell benchmarks
- template: /eng/performance/build_machine_matrix.yml
parameters:
jobTemplate: /eng/performance/benchmark_jobs.yml
buildMachines:
- win-x64
- ubuntu-x64
- win-arm64
- ubuntu-arm64
isPublic: false
jobParameters:
kind: powershell
csproj: src\benchmarks\real-world\PowerShell.Benchmarks\PowerShell.Benchmarks.csproj
runCategories: 'Public Internal'
channels:
- main
- 8.0
# # Powershell benchmarks
# - template: /eng/performance/build_machine_matrix.yml
# parameters:
# jobTemplate: /eng/performance/benchmark_jobs.yml
# buildMachines:
# # - win-x64
# # - ubuntu-x64
# - win-arm64
# # - ubuntu-arm64
# isPublic: false
# jobParameters:
# kind: powershell
# csproj: src\benchmarks\real-world\PowerShell.Benchmarks\PowerShell.Benchmarks.csproj
# runCategories: 'Public Internal'
# channels:
# - main
# - 8.0

# Secret Sync
- job: Synchronize
Expand Down
5 changes: 5 additions & 0 deletions scripts/performance/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import os
import sys
import time
import base64
from typing import Callable, List, Optional, Tuple, Type, TypeVar


Expand Down Expand Up @@ -139,6 +140,10 @@ def get_packages_directory() -> str:
'''
return os.path.join(get_artifacts_directory(), 'packages')

def base64_to_bytes(base64_string: str) -> bytes:
byte_data = base64.b64decode(base64_string)
return byte_data

@contextmanager
def push_dir(path: Optional[str] = None):
'''
Expand Down
3 changes: 2 additions & 1 deletion scripts/performance/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
UPLOAD_STORAGE_URI = 'https://pvscmdupload.{}.core.windows.net'
UPLOAD_QUEUE = 'resultsqueue'
TENANT_ID = '72f988bf-86f1-41af-91ab-2d7cd011db47'
CLIENT_ID = 'a231f733-103b-46e9-b58a-9416edde0eb4'
ARC_CLIENT_ID = 'a231f733-103b-46e9-b58a-9416edde0eb4'
CERT_CLIENT_ID = '8c4b65ef-5a73-4d5a-a298-962d4a4ef7bc'
Loading
Loading