Repository navigation
CI: Add devdiv pre-release pipeline - #585
Eduardo Villalpando Mello (edvilme) wants to merge 13 commits into
Conversation
Performance Report (Linux)Result: ✅ Within regression budgets
|
Test Coverage Report (Linux)Result: ✅ Within regression budget
|
Performance Report (macOS ARM64)Result: ✅ Within regression budgets
|
Performance Report (Windows)Result: ✅ Within regression budgets
|
Test Coverage Report (Windows)Result: ✅ Within regression budget
|
Performance Report (macOS)Result: ✅ Within regression budgets
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 597235d1-bab7-440a-a583-e790ea7f1962
|
🔒 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
|
Reviewed commit: Result: 🔴 Verification detailsVerification: 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. |
Rich Chiodo (rchiodo)
left a comment
There was a problem hiding this comment.
Approved via Review Center.
|
Set to draft to do manual runs first |
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
There was a problem hiding this comment.
🟡 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
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
| inputs: | ||
| GdnPublishTsaConfigFile: $(Build.SourcesDirectory)/azure-pipelines/tsaoptions.json | ||
| GdnPublishTsaOnboard: true | ||
| GdnPublishTsaGdnToolApiScan: true |
There was a problem hiding this comment.
I recommend copying the template in azure-pipelines/rust-package/pipeline.yml@templates
There was a problem hiding this comment.
Will take a look, thanks
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
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

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:
azure-pipelines/devdiv-pre-release.ymlto 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:
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.azure-pipelines/signing/packages.configto specify the MicroBuild signing package dependency for NuGet restore.azure-pipelines/signing/NuGet.configto configure the NuGet feed for MicroBuild signing package retrieval, following 1ES guidance.Documentation:
azure-pipelines/README.mdto document the newdevdiv-pre-release.ymlpipeline, its triggers, build matrix, artifact outputs, and signing details for each platform.