Skip to content

CI: Add devdiv pre-release pipeline - #585

Open
Eduardo Villalpando Mello (edvilme) wants to merge 13 commits into
mainfrom
devdiv-prerelease
Open

Eduardo Villalpando Mello (edvilme) wants to merge 13 commits into
mainfrom
devdiv-prerelease

Conversation

@edvilme

@edvilme Eduardo Villalpando Mello (edvilme) commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This pull request introduces a new Azure Pipelines pre-release pipeline for PET, specifically targeting the DevDiv infrastructure. The main focus is to migrate the pre-release build and signing process from the MonacoTools pipeline to DevDiv's MicroBuild 1ES system, ensuring consistent build, signing, and artifact publication across Windows, macOS, and Linux. Supporting files for MicroBuild signing are also added.

Key changes:

Pipeline migration and build process:

  • Added azure-pipelines/devdiv-pre-release.yml to define a pre-release pipeline for PET using DevDiv's MicroBuild 1ES template. This pipeline replicates the MonacoTools pre-release pipeline, including the build matrix, versioning, triggers, and artifact outputs, while replacing ESRP signing with MicroBuild signing for Windows and macOS binaries. Linux binaries remain unsigned.

Signing infrastructure:

  • Introduced azure-pipelines/signing/sign.proj, an MSBuild project to sign files in place using MicroBuild (ESRP). Supports Windows Authenticode, macOS hardened-runtime signing, and notarization, with validation for required inputs.
  • Added azure-pipelines/signing/packages.config to specify the MicroBuild signing package dependency for NuGet restore.
  • Added azure-pipelines/signing/NuGet.config to configure the NuGet feed for MicroBuild signing package retrieval, following 1ES guidance.

Documentation:

  • Updated azure-pipelines/README.md to document the new devdiv-pre-release.yml pipeline, its triggers, build matrix, artifact outputs, and signing details for each platform.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Performance Report (Linux)

Result: ✅ Within regression budgets

Metric PR Baseline Delta Change Blocking budget Status
Server startup P50 1ms 1ms +0ms +0.0% >5ms and >100% ➖
Server startup P95 1ms 1ms +0ms +0.0% >50ms and >200% ➖
Discovery duration P50 46ms 43ms +3ms +7.0% >25ms and >30% 🔺
Discovery duration P95 56ms 50ms +6ms +12.0% >50ms and >50% 🔺
Startup-to-first environment P50 8ms 9ms -1ms -11.1% >20ms and >100% ✅
Startup-to-first environment P95 10ms 10ms +0ms +0.0% >25ms and >100% ➖
Cold discovery duration P50 111ms 108ms +3ms +2.8% >100ms and >50% 🔺
Refresh round-trip P50 46ms 44ms +2ms +4.5% >25ms and >30% 🔺
Refresh round-trip P95 56ms 50ms +6ms +12.0% >50ms and >50% 🔺
Request-to-first environment P50 7ms 8ms -1ms -12.5% >20ms and >100% ✅
Request-to-first environment P95 8ms 9ms -1ms -11.1% >25ms and >100% ✅
Cold refresh round-trip P50 111ms 108ms +3ms +2.8% >100ms and >50% 🔺
Workload PR Baseline
Environments 5 5
Managers 1 1

A regression must exceed both the documented absolute and relative budget. Environment and manager inventories must match exactly within the same inventory schema.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Test Coverage Report (Linux)

Result: ✅ Within regression budget

Metric PR Baseline Delta
Lines 85.506% 85.506% +0.000pp
Functions 88.038% 88.038% +0.000pp

Allowed numerical tolerance: 0.01 percentage points.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Performance Report (macOS ARM64)

Result: ✅ Within regression budgets

Metric PR Baseline Delta Change Blocking budget Status
Server startup P50 26ms 28ms -2ms -7.1% >100ms and >50% ✅
Server startup P95 50ms 59ms -9ms -15.3% >750ms and >100% ✅
Discovery duration P50 34ms 51ms -17ms -33.3% >100ms and >50% ✅
Discovery duration P95 64ms 86ms -22ms -25.6% >300ms and >100% ✅
Startup-to-first environment P50 39ms 40ms -1ms -2.5% >150ms and >50% ✅
Startup-to-first environment P95 56ms 51ms +5ms +9.8% >250ms and >100% 🔺
Cold discovery duration P50 75ms 89ms -14ms -15.7% >250ms and >50% ✅
Refresh round-trip P50 34ms 51ms -17ms -33.3% >250ms and >50% ✅
Refresh round-trip P95 65ms 86ms -21ms -24.4% >300ms and >100% ✅
Request-to-first environment P50 18ms 20ms -2ms -10.0% >50ms and >50% ✅
Request-to-first environment P95 22ms 26ms -4ms -15.4% >100ms and >100% ✅
Cold refresh round-trip P50 75ms 89ms -14ms -15.7% >600ms and >50% ✅
Workload PR Baseline
Environments 12 12
Managers 1 1

A regression must exceed both the documented absolute and relative budget. Environment and manager inventories must match exactly within the same inventory schema.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Performance Report (Windows)

Result: ✅ Within regression budgets

Metric PR Baseline Delta Change Blocking budget Status
Server startup P50 9ms 9ms +0ms +0.0% >10ms and >50% ➖
Server startup P95 12ms 12ms +0ms +0.0% >50ms and >100% ➖
Discovery duration P50 151ms 151ms +0ms +0.0% >150ms and >50% ➖
Discovery duration P95 157ms 164ms -7ms -4.3% >250ms and >100% ✅
Startup-to-first environment P50 23ms 23ms +0ms +0.0% >25ms and >50% ➖
Startup-to-first environment P95 28ms 39ms -11ms -28.2% >100ms and >100% ✅
Cold discovery duration P50 150ms 151ms -1ms -0.7% >150ms and >50% ✅
Refresh round-trip P50 152ms 151ms +1ms +0.7% >150ms and >50% 🔺
Refresh round-trip P95 158ms 164ms -6ms -3.7% >250ms and >100% ✅
Request-to-first environment P50 14ms 14ms +0ms +0.0% >25ms and >50% ➖
Request-to-first environment P95 18ms 27ms -9ms -33.3% >100ms and >100% ✅
Cold refresh round-trip P50 151ms 152ms -1ms -0.7% >150ms and >50% ✅
Workload PR Baseline
Environments 8 8
Managers 1 1

A regression must exceed both the documented absolute and relative budget. Environment and manager inventories must match exactly within the same inventory schema.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Test Coverage Report (Windows)

Result: ✅ Within regression budget

Metric PR Baseline Delta
Lines 83.033% 83.028% +0.004pp
Functions 85.379% 85.379% +0.000pp

Allowed numerical tolerance: 0.01 percentage points.

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Performance Report (macOS)

Result: ✅ Within regression budgets

Metric PR Baseline Delta Change Blocking budget Status
Server startup P50 43ms 45ms -2ms -4.4% >100ms and >50% ✅
Server startup P95 51ms 160ms -109ms -68.1% >750ms and >100% ✅
Discovery duration P50 68ms 75ms -7ms -9.3% >100ms and >50% ✅
Discovery duration P95 127ms 89ms +38ms +42.7% >300ms and >100% 🔺
Startup-to-first environment P50 76ms 76ms +0ms +0.0% >150ms and >50% ➖
Startup-to-first environment P95 86ms 93ms -7ms -7.5% >250ms and >100% ✅
Cold discovery duration P50 122ms 116ms +6ms +5.2% >250ms and >50% 🔺
Refresh round-trip P50 68ms 76ms -8ms -10.5% >250ms and >50% ✅
Refresh round-trip P95 128ms 90ms +38ms +42.2% >300ms and >100% 🔺
Request-to-first environment P50 34ms 32ms +2ms +6.2% >50ms and >50% 🔺
Request-to-first environment P95 44ms 46ms -2ms -4.3% >100ms and >100% ✅
Cold refresh round-trip P50 123ms 116ms +7ms +6.0% >600ms and >50% 🔺
Workload PR Baseline
Environments 10 10
Managers 1 1

A regression must exceed both the documented absolute and relative budget. Environment and manager inventories must match exactly within the same inventory schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
@rchiodo

Rich Chiodo (rchiodo) commented Nov 24, 2026 •

Copy link
Copy Markdown

🔒 Automated review in progress — Rich Chiodo (@rchiodo) is auto-reviewing this PR.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
@rchiodo

Rich Chiodo (rchiodo) commented Nov 24, 2026 •

Copy link
Copy Markdown

Reviewed commit: 8759b67195bf1943a4f58ce8f5f6d7f9e418ce2c

Result: 🔴 could-not-verify

Verification details

Verification: Automated verification is best effort. The PR author remains responsible for testing.

Summary: [unavailable] Container verification could not start and local execution was not authorized for this PR HEAD: C:\Users\rchiodo\AppData\Local\Programs\Podman\podman.EXE --connection pyrx-automation failed: stderr: Error: unable to start container "2b6eb744dd2636f4694180d36af36b1dc13b279770ba5d7b2ae6ffe0d22cbd49": crun: open `memory.max` for writing: No such file or directory: OCI runtime attempted to invoke a command that was not found

Test runs: none recorded.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Approved via Review Center.

@rchiodo Rich Chiodo (rchiodo) added the review-auto:approved Automated review: no blocking findings (approval posted). label Nov 24, 2026
@edvilme

Copy link
Copy Markdown
Contributor Author

Set to draft to do manual runs first

@edvilme Eduardo Villalpando Mello (edvilme) changed the title CI: Move pre-release pipelines [Do not merge] CI: Move pre-release pipelines Nov 24, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Sign and notarize both macOS artifacts in one MicroBuild job, then verify both outputs on one macOS agent. Preserve separate target artifacts and validate architecture, NOTICE files, and signatures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
@edvilme Eduardo Villalpando Mello (edvilme) removed the review-auto:approved Automated review: no blocking findings (approval posted). label Nov 25, 2026
@edvilme Eduardo Villalpando Mello (edvilme) changed the title [Do not merge] CI: Move pre-release pipelines CI: Add devdiv pre-release pipeline Nov 25, 2026
@edvilme
Eduardo Villalpando Mello (edvilme) marked this pull request as ready for review November 25, 2026 23:00

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

The unconditional macOS signing and verification jobs reference build jobs that may not exist when buildPlatforms is overridden, causing Azure to reject the pipeline.

1 open issue
What changed in this PR

Adds a DevDiv MicroBuild-based replacement for PET’s MonacoTools pre-release pipeline, preserving the seven-target build matrix and artifact naming while migrating signing and compliance checks.

Changes:

  • Adds cross-platform builds, Windows signing, macOS signing and notarization, artifact verification, and compliance reporting.
  • Adds signing configuration, supplemental Windows notices, migration documentation, and regression tests.
  • Updates Windows pyenv setup in three GitHub workflows to preserve script line endings and stop on clone failures.
File Description
scripts/​tests/​test_quality_workflows.py Tests Windows pyenv setup and clone-failure handling.
scripts/​tests/​test_azure_signing.py Tests signing metadata and input validation.
scripts/​tests/​test_azure_pipeline.py Checks notice generation, scanning, and macOS signing configuration.
azure-pipelines/​windows-additional-notices.txt Adds supplemental winresource attribution.
azure-pipelines/​tsaoptions.json Configures TSA compliance reporting.
azure-pipelines/​signing/​sign.proj Defines MicroBuild signing and input validation.
azure-pipelines/​signing/​packages.config Declares the MicroBuild signing dependency.
azure-pipelines/​signing/​NuGet.config Configures the signing package feed.
azure-pipelines/​README.md Documents the DevDiv pipeline and migration prerequisites.
azure-pipelines/​devdiv-pre-release.yml Adds builds, signing, verification, compliance checks, and artifact publication.
.github/​workflows/​pr-check.yml Replaces the Windows pyenv installer with a checked clone.
.github/​workflows/​coverage.yml Applies the same Windows pyenv setup change.
.github/​workflows/​coverage-baseline.yml Applies the same Windows pyenv setup change.

Review effort: Balanced

Comment thread azure-pipelines/devdiv-pre-release.yml Resolved
Emit sign_macos and verify_macos only when buildPlatforms includes both macOS targets, so Linux/Windows-only runs do not reference missing build jobs.

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

Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Comment thread azure-pipelines/devdiv-pre-release.yml Outdated
inputs:
GdnPublishTsaConfigFile: $(Build.SourcesDirectory)/azure-pipelines/tsaoptions.json
GdnPublishTsaOnboard: true
GdnPublishTsaGdnToolApiScan: true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I recommend copying the template in azure-pipelines/rust-package/pipeline.yml@templates

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will take a look, thanks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
@rchiodo Rich Chiodo (rchiodo) added the review-auto:approved Automated review: no blocking findings (approval posted). label Nov 25, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Dmitriy Vasyura (dmitrivMS) added a commit that referenced this pull request Nov 28, 2026
Removes dependencies that are declared in crate manifests but never used
by that crate's code, tests, or features. Cargo.lock drops the
corresponding dependency edges.

| Crate | Removed |
| --- | --- |
| pet-env-var-path | pet-virtualenv, pet-python-utils, pet-conda, log,
lazy_static, regex |
| pet-global-virtualenvs | pet-core, pet-virtualenv, log |
| pet-homebrew | serde, serde_json |
| pet-jsonrpc | pet-core, env_logger |
| pet-linux-global-python | log |
| pet-mac-commandlinetools | log |
| pet-mac-python-org | log |
| pet-mac-xcode | log |
| pet-pipenv | pet-virtualenv |
| pet-pixi | log |
| pet-poetry | serde, serde_json, pet-reporter |
| pet-pyenv | serde |
| pet-telemetry | pet-python-utils, env_logger |
| pet-venv | pet-virtualenv, log |
| pet-virtualenv | pet-fs, log |
| pet-virtualenvwrapper | log |
| pet-windows-registry | pet-python-utils, lazy_static, regex |

The Windows CI jobs now install pyenv-win with a shallow `git clone` of
its repository instead of running `install-pyenv-win.ps1`, whose archive
extraction fails on the current runner PowerShell. A workflow test
covers the new setup step. This change is cherry-picked from #585.

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Eduardo Villalpando Mello <eduardo.villalpando.mello@gmail.com>
Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-auto:approved Automated review: no blocking findings (approval posted).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants