Skip to content

{Benchmark} Github actions to ADO pipeline migration - #1523

Open
JaysonTaiMicrosoft wants to merge 32 commits into
mainfrom
jaysontaimicrosoft-benchmarks-ado-migration
Open

JaysonTaiMicrosoft wants to merge 32 commits into
mainfrom
jaysontaimicrosoft-benchmarks-ado-migration

Conversation

@JaysonTaiMicrosoft

@JaysonTaiMicrosoft JaysonTaiMicrosoft commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Related command

Description

1ES Github runner hosted pools do not support public repos. Migrate to using ADO pipelines instead.
The goal is to have run the benchmarks on consistent hardware between runs

Testing Guide

History Notes


  • The PR title starts with [Component Name] for customer-facing changes or {Component Name} for non-customer-facing changes, and does not end with trailing punctuation or spaces.
  • Customer-facing changes include a useful release note in the PR title or the History Notes section.
  • I added or updated tests for behavior changes.
  • I updated documentation when behavior, setup, support, or security guidance changed.

JaysonTaiMicrosoft and others added 30 commits November 6, 2026 13:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Also folds the refinements found while verifying the plan into the design: a retry wrapper (retryCountOnTaskFailure does not retry timeouts), the collector script, the runner's report layout in Benchmark_Results, ordered and idempotent dashboard publishing, and a validation plan that does not depend on workflow_dispatch before merge.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… results

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active issues leave Accounts changes unbenchmarked, allow older builds to overwrite newer trace baselines, and risk altering client secrets during PowerShell execution.

3 open issues
What changed in this PR

Moves Azclips benchmark execution from GitHub Actions into the Azure DevOps alpha and beta pipelines, while retaining GitHub-based PR comments and dashboard publishing.

Changes:

  • Adds selective CLI, PowerShell, and startup benchmark jobs with fixed-hardware execution, retries, and result collection.
  • Reworks GitHub workflows to consume verified Azure DevOps artifacts and report advisory regressions above 15%.
  • Adds script tests, updates CI documentation, and introduces a manual PowerShell service-principal sign-in workflow.
File Description
wiki/​02-deep-dive/​testing-benchmarking.md Documents benchmark selection and advisory regression reporting.
wiki/​02-deep-dive/​build-cicd.md Updates the division between GitHub and Azure DevOps.
tests/​Benchmark/​README.md Updates artifact names, summary locations, and script paths.
eng-docs/​spec/​benchmark-workflows.md Describes the migrated benchmark architecture.
devops/​scripts/​benchmark/​test_run_benchmark.py Tests command retries and timeouts.
devops/​scripts/​benchmark/​test_publish_benchmark_dashboard.py Tests dashboard updates and trace replacement.
devops/​scripts/​benchmark/​test_fetch_ado_benchmark_results.py Tests build verification and safe artifact extraction.
devops/​scripts/​benchmark/​test_detect_benchmark_changes.py Tests benchmark selection rules and build triggers.
devops/​scripts/​benchmark/​test_compare_benchmarks.py Tests comparisons, thresholds, and comment rendering.
devops/​scripts/​benchmark/​test_collect_benchmark_results.py Tests result collection and missing-report warnings.
devops/​scripts/​benchmark/​test_benchmark_stage_contract.py Checks shared names between pipeline YAML and scripts.
devops/​scripts/​benchmark/​test_benchmark_results.py Tests result parsing and shared helpers.
devops/​scripts/​benchmark/​run_benchmark.sh Adds timeout and retry handling.
devops/​scripts/​benchmark/​publish_benchmark_dashboard.py Publishes dashboard history and trace baselines.
devops/​scripts/​benchmark/​fetch_ado_benchmark_results.py Verifies builds and downloads restricted artifact contents.
devops/​scripts/​benchmark/​detect_benchmark_changes.py Selects benchmarks from changed paths and build context.
devops/​scripts/​benchmark/​compare_benchmarks.py Renders build summaries and PR comparisons.
devops/​scripts/​benchmark/​collect_benchmark_results.py Combines benchmark artifacts and run metadata.
devops/​scripts/​benchmark/​benchmark_results.py Provides shared parsing, naming, and serialization helpers.
devops/​scripts/​benchmark/​benchmark_fixtures.py Adds reusable test fixtures.
devops/​scripts/​benchmark/​aggregate_benchmark_traces.py Adapts warnings and summary descriptions for Azure DevOps.
devops/​scripts/​AGENTS.md Documents benchmark scripts and test guidance.
.github/​workflows/​build-wiki.yml Uses explicit dispatch for benchmark dashboard deployment.
.github/​workflows/​bugbash006.yml Adds a manual PowerShell authentication smoke workflow.
.github/​workflows/​benchmark.yml Removes GitHub-hosted benchmark orchestration.
.github/​workflows/​benchmark-publish.yml Publishes Azure DevOps results and dispatches Pages deployment.
.github/​workflows/​benchmark-comment.yml Posts verified Azure DevOps comparisons on PRs.
.github/​scripts/​detect-benchmark-changes.sh Removes the superseded change-detection script.
.azure-pipelines/​templates/​variables.yml Defines the fixed-hardware benchmark pool.
.azure-pipelines/​templates/​dist/​steps/​run-benchmark-leg.yml Adds reusable benchmark execution and artifact steps.
.azure-pipelines/​templates/​dist/​stages/​build-unsigned-distribution.yml Passes benchmark enablement and pool parameters.
.azure-pipelines/​templates/​dist/​jobs/​test-suite.yml Runs benchmark script tests in Linux CI.
.azure-pipelines/​templates/​dist/​jobs/​benchmark-suite.yml Replaces the placeholder with complete benchmark jobs.
.azure-pipelines/​azclips-stable-release.yml Explicitly disables release benchmarks.
.azure-pipelines/​azclips-stable-release-test.yml Explicitly disables release-test benchmarks.
.azure-pipelines/​azclips-beta-build.yml Enables benchmarks for beta builds.
.azure-pipelines/​azclips-alpha-build.yml Enables benchmarks for alpha builds.
.azure-pipelines/​AGENTS.md Documents benchmark jobs, pools, artifacts, and behavior.

Review effort: Balanced

Comment thread .github/workflows/bugbash006.yml Resolved
"src/Core/",
"src/Extensions/ExtensionRuntime/",
"src/Extensions/Targets/",
"src/PS/Common/",
target = traces / relative
if target.is_file():
existing = target.read_bytes()
if existing == content or _generated(existing) > _generated(content):
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 27, 2026 03:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Unresolved issues can overwrite newer benchmark baselines and PR comments, skip relevant performance checks, and interpret client secrets as PowerShell code.

3 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Serialize PR comment writes and recheck the head SHA

.github/​workflows/​benchmark-comment.yml:33

The concurrency key is per commit, but every run updates the same comment on its PR. An older run can pass the head-SHA check, pause during the gh-pages checkout, and then overwrite a newer run's comment after the PR advances; the SHA check at lines 118–120 does not protect the later write. Serialize the comment-writing job by verified PR number and recheck the PR head inside that serialized job before updating the comment.

Medium severity Run startup probes for Config-only changes

devops/​scripts/​benchmark/​detect_benchmark_changes.py:125

Changes confined to src/PS/Config/** or src/Extensions/Config/** select no work because Config has no extension benchmark class. The startup probes nevertheless run az config list and Get-AzConfig (tests/Benchmark/Startup/CliWarmStartupBenchmarks.cs:24 and PsWarmStartupBenchmarks.cs:33). Include both directories in startup selection and cover Config-only changes in the path-rule tests.

Review effort: Balanced

@JaysonTaiMicrosoft

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

Copilot AI balanced review requested due to automatic review settings November 27, 2026 06:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

An older main build can overwrite newer trace baselines even when its benchmark entries are rejected, causing subsequent PR span comparisons to use a baseline inconsistent with the dashboards.

2 open issues
1 resolved since last review

Review effort: Balanced

@JaysonTaiMicrosoft

JaysonTaiMicrosoft commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor Author

Benchmark commenting triggers off of main branches detection of completed ADO runs. This will be tested after merging and any issues will be arising from then will be addressed accordingly.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants