Add SqlClient performance test pipeline with baseline comparison, noise reduction, and ADX ingestion - #4473
Add SqlClient performance test pipeline with baseline comparison, noise reduction, and ADX ingestion#4473cheenamalhotra wants to merge 34 commits into
Conversation
Adds a new Azure DevOps pipeline that runs the Microsoft.Data.SqlClient BenchmarkDotNet performance tests on the internal "Perf Test Lab" by consuming the reusable extends template v1/Perf.Test.Job.yml from the InternalDriverTools/PerfTest repository (per wiki page 284). Files: - eng/pipelines/perf/sqlclient-perf-pipeline.yml: extends the perf template. - eng/pipelines/perf/scripts/run-perf-tests.sh: Linux on-VM entry point. - eng/pipelines/perf/scripts/run-perf-tests.ps1: Windows on-VM entry point. The on-VM scripts install the pinned .NET SDK (global.json), create the perf database, inject the VM SQL Server connection string into the benchmark runner config, pin the client to the reserved CPU set, run the benchmarks, and collect BenchmarkDotNet artifacts for the template to publish. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Extend the SqlClient performance pipeline to: - Run benchmarks against a released NuGet baseline (default 7.0.2, overridable at queue time) and against the branch under test built from source, both CPU-pinned, in two passes on the VM. - Compare the two passes and emit a per-benchmark delta (markdown + json) surfaced as the run summary. - Translate BenchmarkDotNet "full" JSON into the perf-results Kusto schema (PerfRun + PerfBenchmarkResult, wiki 270) and optionally ingest via an ADO service connection (AzureCLI@2 + queued ingestion). Enables JsonExporter.Full and adds a CPM VersionOverride switch (MdsPackageVersion) so the baseline pass can pin a released MDS version restored from NuGet.org through a dedicated single-source config. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Pre-fill the Kusto parameters so ingestion runs without queue-time input: - kustoClusterUri: https://sqldrivers.westus2.kusto.windows.net - kustoDatabase: PerfResultsTestDB - kustoServiceConnection: PerfLab Infra Deployments Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
…Python The 'Ingest results into Kusto' step ran a system-wide pip install, which Ubuntu agents (Python 3.12, PEP 668) reject with 'externally-managed-environment', failing the step. Install azure-kusto-data/azure-kusto-ingest into an isolated virtualenv under Agent.TempDirectory and run ingest_kusto.py with the venv interpreter instead. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
The agent lacks python3-venv/ensurepip, so 'python3 -m venv' fails too. pip itself is present, so install azure-kusto-data/azure-kusto-ingest into the per-user site and bypass the PEP 668 externally-managed marker with --break-system-packages, then run ingest_kusto.py with python3. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Each benchmark pass runs from an empty perf-run-<label> working directory. The perf app loads datatypes.json from DATATYPES_CONFIG (falling back to the CWD), but the scripts only exported RUNNER_CONFIG, so datatypes.json was looked up in the empty run dir and threw FileNotFoundException. Export DATATYPES_CONFIG pointing at the checked-in file in the PerformanceTests project (needs no per-run modification), matching the RUNNER_CONFIG pattern, in both the bash and PowerShell VM runners. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
The ingest step used fire-and-forget queued ingestion, which reports success at queue time. When the JSON mappings were missing from the database, every ingestion failed asynchronously (BadRequest_MappingReferenceWasNotFound) yet the pipeline step stayed green and the DB stayed empty, with no error in the log. - Set IngestionProperties.flush_immediately so tiny perf payloads seal at once instead of waiting out the ~5 min batching window. - After queuing, poll PerfRun/PerfBenchmarkResult for the current PipelineRunId until the expected row counts appear (configurable --verify-timeout, default 300s). On timeout, dump '.show ingestion failures' to the build log and fail the step so real errors are visible. Verification is best-effort when the principal lacks query rights (warns, does not fail). Verified end-to-end against the live cluster: rows landed in ~40s and the verifier confirmed success. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Apply the harness-owned noise-reduction controls from InternalDriverTools wiki 339 (Reducing Noise in Performance Tests): - Fail loud (2.10): preflight SELECT 1 before passes, plus a post-pass guard that fails the run when a pass produced zero benchmark results, so an empty comparison can never be reported green. - Warm-up (2.5): touch the target DB in preflight to prime buffer pool/plan cache. - Allocator tuning (2.8, Linux): export MALLOC_MMAP_THRESHOLD_ / MALLOC_TRIM_THRESHOLD_. - Network tuning (2.9, Linux): best-effort sysctl for ephemeral ports + tcp_tw_reuse. - Diagnostics (2.11): capture SQL instance config, CPU topology, and per-pass CPU-clock/thermal telemetry into results/diagnostics/. - Regression gate (3): add failOnRegression pipeline param (default false) that threads --fail-on-regression to compare_perf.py. Mirrored across run-perf-tests.sh and run-perf-tests.ps1; documented in README (including the proposed larger follow-ups: interleaving, small bench binaries, best-of-N confirmation). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
…/§2.6)
Replace the two-full-sequential-pass model with per-unit interleaving plus
best-of-N regression confirmation, the noise-reduction controls from
InternalDriverTools wiki 339 that require a structural change.
- Program.cs: add a BenchmarkUnit registry and env-driven modes
PERF_LIST_BENCHMARKS (enumerate enabled units) and PERF_BENCHMARK=<unit>
(run a single unit). No env still runs all enabled units, so the default
behaviour is unchanged.
- interleave_perf.py: new orchestrator. Builds both variants once into
distinct output dirs, runs each unit baseline-then-candidate back-to-back,
re-runs only flagged units N times, and confirms a regression only on a
strict majority. Emits the same results/{baseline,current,comparison}
+ summary.md layout as the sequential path (Kusto ingest unchanged); the
gate fails only on CONFIRMED regressions.
- run-perf-tests.sh/.ps1: add --run-mode/-RunMode (interleaved default) and
--confirmation-runs/-ConfirmationRuns (3); build each variant to
perf-build-{baseline,current} and dispatch to the orchestrator, keeping the
legacy sequential compare path as a fallback.
- pipeline yml: add benchmarkRunMode + confirmationRuns params, threaded to
the VM script args.
- README: document the interleaving/best-of-N run model and the new params;
move §2.2/§2.3/§2.6 from proposed to implemented.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Inline '${{ if }}' directives are not allowed inside a quoted string value.
Append the --fail-on-regression flag via a key-level if/else conditional
(the same pattern already used for testScript) so the whole value is a
plain string with only simple parameter substitutions.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
…tion-perf-test-pipeline
Drop the kusto/ table-creation KQL scripts (PerfRun.kql, PerfBenchmarkResult.kql) from the perf folder. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Genericize the perf pipeline README ahead of a public repo PR: remove internal wiki page/section citations, the concrete Kusto cluster URI / database / service-connection names, internal lab naming, the ADO pipeline name, and the now-removed kusto/*.kql file references. Kusto (Azure Data Explorer) documentation is kept generic since the ingestion scripts remain. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Remove the hard-coded Kusto cluster URI, database, and ARM service connection from the perf pipeline. These now come from a pipeline library variable group 'ADX Cluster Variables' (KustoClusterUri, KustoDatabase, KustoServiceConnection), so no infrastructure identifiers are committed to the public repo. The compile-time ingestion gate is converted to a runtime condition on KustoClusterUri/KustoServiceConnection, and the README is updated to document the variable group instead of the removed parameters. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
There was a problem hiding this comment.
Pull request overview
Adds an internal Azure DevOps performance-testing pipeline for Microsoft.Data.SqlClient, including on-VM harness scripts to run BenchmarkDotNet in a noise-reduced baseline-vs-candidate model and (optionally) translate/ingest results into ADX (Kusto). This fits the repo’s existing eng/pipelines/ infrastructure and extends the existing perf test project to support single-unit execution needed for interleaving.
Changes:
- Adds a new perf pipeline (
eng/pipelines/perf/sqlclient-perf-pipeline.yml) that provisions a perf-lab VM, runs benchmarks, publishes results, and optionally ingests translated NDJSON into Kusto. - Adds Linux/Windows VM harness scripts plus Python utilities for interleaving (best-of-N confirmation), baseline comparison, and Kusto translation/ingestion.
- Updates the perf test runner to support enumerating/running individual benchmark “units”, and ensures BenchmarkDotNet “full” JSON reports are emitted.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Microsoft.Data.SqlClient/tests/PerformanceTests/Program.cs | Adds PERF_LIST_BENCHMARKS / PERF_BENCHMARK modes to enable interleaved per-unit runs. |
| src/Microsoft.Data.SqlClient/tests/PerformanceTests/Microsoft.Data.SqlClient.PerformanceTests.csproj | Enables baseline pinning in Package mode via MdsPackageVersion + VersionOverride under CPM. |
| src/Microsoft.Data.SqlClient/tests/PerformanceTests/Config/BenchmarkConfig.cs | Enables BenchmarkDotNet JSON “full” exporter needed for comparison/translation. |
| eng/pipelines/perf/sqlclient-perf-pipeline.yml | New ADO perf pipeline extending internal perf-lab template; publishes artifacts and optionally ingests to Kusto. |
| eng/pipelines/perf/scripts/run-perf-tests.sh | Linux on-VM harness: install SDK, create DB, run interleaved/sequential passes, compare results. |
| eng/pipelines/perf/scripts/run-perf-tests.ps1 | Windows on-VM harness counterpart (affinity pinning via ProcessorAffinity). |
| eng/pipelines/perf/scripts/interleave_perf.py | Interleaved + best-of-N orchestrator invoking single-unit runner mode and producing comparison outputs. |
| eng/pipelines/perf/scripts/compare_perf.py | Baseline vs current comparison over *-report-full.json with markdown/JSON outputs. |
| eng/pipelines/perf/scripts/perf_to_kusto.py | Translates BenchmarkDotNet “full” JSON into Kusto PerfRun/PerfBenchmarkResult NDJSON. |
| eng/pipelines/perf/scripts/ingest_kusto.py | Queued ingestion into ADX using az-cli auth + post-ingest verification polling. |
| eng/pipelines/perf/README.md | Documents pipeline architecture, parameters, noise-reduction controls, and ingestion setup. |
Remove Build Configuration, Self checkout folder name, and Driver Name as queue-time parameters. They are invariant for the SqlClient perf pipeline, so inline them as fixed constants (Release, dotnet-sqlclient, Microsoft.Data.SqlClient) instead of exposing them as parameters or variables. README parameter table updated accordingly. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
eng/pipelines/perf/scripts/run-perf-tests.sh:167
- The “reuse pre-installed SDK” check doesn’t actually verify the pinned SDK version from global.json. It only checks for any 10.0.* SDK, which could pick an incompatible feature band/patch and cause builds/restores to fail (global.json pins 10.0.300). Also, DOTNET_ROOT is derived from the dotnet shim path; if dotnet is a symlink in /usr/bin this can point to the wrong root.
# Reuse a pre-installed SDK only if it already satisfies global.json; otherwise install locally.
if command -v dotnet >/dev/null 2>&1 && dotnet --list-sdks 2>/dev/null | grep -q '10\.0\.'; then
echo "Using pre-installed dotnet: $(command -v dotnet)"
export DOTNET_ROOT="$(dirname -- "$(command -v dotnet)")"
else
eng/pipelines/perf/scripts/run-perf-tests.ps1:127
- The pre-installed dotnet detection checks only for any 10.0.* SDK, but global.json pins a specific SDK version (10.0.300). If the VM image has a different 10.0 SDK, builds can fail despite this check passing. Prefer verifying the exact pinned version (or at least the pinned feature band) before skipping Install-DotNet.
$hasNet10Sdk = $false
if (Get-Command dotnet -ErrorAction SilentlyContinue) {
if ((dotnet --list-sdks) -match '^10\.0\.') { $hasNet10Sdk = $true }
}
if ($hasNet10Sdk) {
Write-Host "Using pre-installed dotnet: $((Get-Command dotnet).Source)"
} else {
Install-DotNet
}
…Type
The PerfRun schema added three required columns. Emit them from
perf_to_kusto.py:
* OperatingSystem - Windows/Linux (from the pipeline platform, with a
fallback to the benchmark host OsVersion).
* Architecture - x64/x86 (from the benchmark host Architecture,
overridable via --architecture).
* RunType - Sequential/Interweaved (from the harness run mode).
Adds --operating-system/--architecture/--run-type args with schema-value
normalization, wires platform + benchmarkRunMode into both translation
invocations, and documents the new columns in the README.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (2)
eng/pipelines/perf/scripts/run-perf-tests.sh:167
- The preinstalled-SDK check is too permissive and can skip installing the SDK required by global.json (e.g., a host with 10.0.1xx will satisfy
grep '10\.0\.'butdotnet buildwill later fail because global.json requires 10.0.3xx). Also, settingDOTNET_ROOTto the directory containing thedotnetshim (often/usr/bin) is incorrect and can break host resolution.
Consider checking for a compatible feature band derived from global.json and avoiding DOTNET_ROOT overrides when using the system installation.
# Reuse a pre-installed SDK only if it already satisfies global.json; otherwise install locally.
if command -v dotnet >/dev/null 2>&1 && dotnet --list-sdks 2>/dev/null | grep -q '10\.0\.'; then
echo "Using pre-installed dotnet: $(command -v dotnet)"
export DOTNET_ROOT="$(dirname -- "$(command -v dotnet)")"
else
eng/pipelines/perf/scripts/run-perf-tests.ps1:127
- The script decides whether to install the SDK based on a generic
^10\.0\.check, which can accept a preinstalled SDK that doesn't satisfy global.json (e.g., 10.0.1xx vs required 10.0.3xx). This can cause the subsequent build to fail.
Consider deriving the required SDK feature band from global.json (rollForward=patch ⇒ same feature band) and checking dotnet --list-sdks against that instead.
$hasNet10Sdk = $false
if (Get-Command dotnet -ErrorAction SilentlyContinue) {
if ((dotnet --list-sdks) -match '^10\.0\.') { $hasNet10Sdk = $true }
}
if ($hasNet10Sdk) {
Write-Host "Using pre-installed dotnet: $((Get-Command dotnet).Source)"
} else {
Install-DotNet
}
- Pipeline: omit --baseline-version entirely when no baseline is requested, via nested key-level conditionals, so an empty value can't be consumed as the --regression-threshold argument and corrupt arg parsing. - run-perf-tests.sh: gate SDK reuse on `dotnet --version` from the repo root (honours global.json rollForward) instead of a hard-coded 10.0.* match; and resolve the dotnet symlink so DOTNET_ROOT points at the real install root. - run-perf-tests.sh: export DB_NAME so the inline Python config-rewrite reads the intended database name instead of its own default. - run-perf-tests.ps1: gate SDK reuse on `dotnet --version` from the repo root; correct the DB-create comment to match the sqlcmd-required (throw) behavior. - compare_perf.py: compute allocation delta with `is not None` checks so a valid 0-byte baseline is not skipped; keep the percentage undefined for a 0 baseline but surface the raw 0 -> X byte transition in the report. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Microsoft.Data.SqlClient 7.1.0-preview1.26124.5 declares transitive dependencies on Microsoft.Data.SqlClient.Extensions.Abstractions and Microsoft.Data.SqlClient.Internal.Logging at 1.0.0-preview1.26124.5, which were never published to NuGet.org. Restoring that exact baseline in Package mode fails with NU1603 (the prerelease dependency is not found; NuGet substitutes the released 1.0.0, and warning-as-error turns it into a build failure). Add direct PackageReferences (VersionOverride 1.0.0) to both extension packages, gated to MdsPackageVersion == 7.1.0-preview1.26124.5 only, so the released 1.0.0 packages satisfy the constraint without warnings. All other baselines and the default project-reference build are unaffected. Verified by building the PerformanceTests project against 7.1.0-preview1.26124.5 (now succeeds, extensions resolve to 1.0.0), 7.0.2, and the default source build. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
eng/pipelines/perf/scripts/run-perf-tests.sh:123
SQL_SERVERis defaulted tolocalhostwhen unset, but the script does not export it after assignment. Later, the Python runner-config rewrite readsos.environ["SQL_SERVER"], so ifSQL_SERVERwas not injected by the template, the script will still fail with a KeyError instead of using the intended default.
: "${SQL_SERVER:=localhost}"
if [[ -z "${SQL_PASSWORD:-}" ]]; then
echo "ERROR: SQL_PASSWORD environment variable is not set (expected from the perf template)." >&2
exit 1
fi
…tion-perf-test-pipeline # Conflicts: # src/Microsoft.Data.SqlClient/tests/PerformanceTests/Program.cs
| $psi = New-Object System.Diagnostics.ProcessStartInfo | ||
| $psi.FileName = "dotnet" | ||
| foreach ($a in $runArgs) { $psi.ArgumentList.Add($a) } | ||
| $psi.UseShellExecute = $false | ||
| $psi.WorkingDirectory = $runDir |
Queued Kusto ingestion is asynchronous and reliable: small perf payloads (the 2-row PerfRun files especially) routinely take longer than the verify polling window to become queryable even though they ingest successfully (observed to land anywhere from ~30s to several minutes later). The verify step was hard-failing (exit 1) whenever rows weren't queryable by the deadline, producing random false failures even though the data was ingested and available. Now, on verify timeout the step consults `.show ingestion failures` and only fails when Kusto actually reports ingestion failures. When no failures are reported (data still flushing) or the failure query can't run, it logs a warning and passes. Also raise the default verify timeout 300s -> 600s so the common case still verifies before falling through to the soft-pass. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
…r, UseConnectionPoolV2 via pipeline params Wire three SqlClient config flags through the perf pipeline as boolean parameters. On the VM, run-perf-tests.sh/.ps1 patch the runner config so both the baseline and candidate passes run with the requested values. On the agent, perf_to_kusto.py gains --config-override NAME=BOOL so PerfRun.Config records exactly what ran. Defaults match runnerconfig.jsonc, preserving current behaviour. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
- run-perf-tests.ps1: validate ConfirmationRuns >= 1 (ValidateRange) for fast queue-time failure; guard Get-AffinityMask against CPU indices >= 64 (single-word ProcessorAffinity mask can't address processor groups); use ProcessStartInfo.Arguments instead of ArgumentList (absent on Windows PowerShell 5.1 / .NET Framework). - interleave_perf.py: skip Windows CPU pinning with a warning when any CPU index >= 64 rather than building an invalid SetProcessAffinityMask mask. - run-perf-tests.sh: export SQL_SERVER after defaulting it so the inline Python config rewrite doesn't KeyError when the template didn't inject it. - Program.cs: skip the WaitForProfiler Console.ReadKey prompt under harness-controlled runs (PERF_LIST_BENCHMARKS / PERF_BENCHMARK) so unattended automation can't hang. - sqlclient-perf-pipeline.yml: strip trailing CR from a Windows VM's MACHINE_NAME; collapse the duplicated testScriptArgs matrix into pre-computed PerfArgsCommon/Baseline/Fail variables; extract the large inline Show-results and Kusto-translate bash blocks into show_perf_results.sh and translate_results_to_kusto.sh. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
| $mask = Get-AffinityMask $env:PERF_CLIENT_CPUS | ||
| if ($null -ne $mask -and $mask -gt 0) { | ||
| try { | ||
| $proc.ProcessorAffinity = [System.IntPtr]$mask | ||
| Write-Host "Pinned benchmark client (PID $($proc.Id)) to CPUs $($env:PERF_CLIENT_CPUS) (mask 0x$($mask.ToString('X')))." |
The ProcessorAffinity guard used '$mask -gt 0', which skips a mask whose high bit is set: pinning CPU 63 makes the [long] mask negative even though it is a valid affinity value. Use a non-zero check so those masks still apply; CPUs >= 64 are already filtered out earlier in Get-AffinityMask. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
…ng it Sourcing runinfo.env executes its contents as shell code. Even though the VM only ever writes a single MACHINE_NAME=... line, extract that value with grep/cut instead so unexpected or corrupted file content from the VM-collected results directory can never be executed. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4a21e2a3-6efa-45c7-9bfd-81e7f3d24a89
Summary
Adds a performance-test pipeline for Microsoft.Data.SqlClient under
eng/pipelines/perf/. It runs the BenchmarkDotNet perf suite on a dedicated performance test lab (Azure Dedicated Hosts), compares the branch under test against a released NuGet baseline, applies noise-reduction controls, and optionally ingests results into an Azure Data Explorer (Kusto) database.What's included
sqlclient-perf-pipeline.yml) — extends the reusable Perf.Test.Job template; provisions a VM, runs benchmarks over SSH, collects results, and runs post-test translation/ingestion on the agent.scripts/run-perf-tests.sh/.ps1) — installs the SDK, creates the perf DB, injects the VM connection string, pins the client to a reserved CPU set, and runs the benchmarks.ProjectReference(branch under test) vs. baseline viaPackageReference(released MDS from NuGet.org), pinned withVersionOverrideunder Central Package Management. Also supports building against the7.1.0-preview1MDS package, pinningMicrosoft.Data.SqlClient.Extensions.Abstractions/Microsoft.Data.SqlClient.Internal.Loggingto1.0.0only for that preview baseline.interleave_perf.py), client CPU pinning (with a safe fallback for CPU indices ≥ 64), warm-up, allocator/network tuning on Linux, fail-loud guards, and diagnostics capture.compare_perf.py) — matches benchmarks by(Type, Method, Parameters), emitscomparison.md/comparison.json, and can gate the run on confirmed regressions.perf_to_kusto.py,ingest_kusto.py) — translates BenchmarkDotNet JSON intoPerfRun+PerfBenchmarkResultNDJSON and performs a queued ingestion, with post-ingestion row-count verification that tolerates slow async flush without failing the step when the data has actually landed. ADX cluster/database/service-connection are sourced from a pipeline library variable group (ADX Cluster Variables), not hard-coded.PerfRun.Confignow records a JSON snapshot of the runner's booleanAppContextswitches at the time of the run (UseManagedSniOnWindows,UseOptimizedAsyncBehaviour,UseConnectionPoolV2,WaitForProfiler/UseNativeMemoryAndETWProfiler, excluding the connection string and benchmark selection).UseManagedSniOnWindows,UseOptimizedAsyncBehaviour, andUseConnectionPoolV2are also exposed as pipeline parameters so a run can override them and have the override reflected inConfig.PerformanceTests/Program.csgainsPERF_LIST_BENCHMARKS/PERF_BENCHMARKmodes to support single-unit interleaving;BenchmarkConfig.csenables the JSON "full" exporter.Notes
pr: none,trigger: none) and does not run on public PRs or commits.TODOs for later:
Checklist