Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion .github/workflows/coverage-baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ jobs:
- name: Install pyenv (Windows)
if: startsWith(matrix.os, 'windows')
run: |
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
git -c core.autocrlf=false clone --depth 1 --branch master https://github.com/pyenv-win/pyenv-win.git "$env:USERPROFILE\.pyenv"
if ($LASTEXITCODE -ne 0) { throw "Failed to clone pyenv-win" }
$pyenvBin = "$env:USERPROFILE\.pyenv\pyenv-win\bin"
echo "$pyenvBin" >> $env:GITHUB_PATH
echo "PYENV_ROOT=$env:USERPROFILE\.pyenv" >> $env:GITHUB_ENV
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ jobs:
- name: Install pyenv (Windows)
if: startsWith(matrix.os, 'windows')
run: |
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
git -c core.autocrlf=false clone --depth 1 --branch master https://github.com/pyenv-win/pyenv-win.git "$env:USERPROFILE\.pyenv"
if ($LASTEXITCODE -ne 0) { throw "Failed to clone pyenv-win" }
$pyenvBin = "$env:USERPROFILE\.pyenv\pyenv-win\bin"
echo "$pyenvBin" >> $env:GITHUB_PATH
echo "PYENV_ROOT=$env:USERPROFILE\.pyenv" >> $env:GITHUB_ENV
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ jobs:
- name: Install pyenv (Windows)
if: startsWith( matrix.os, 'windows')
run: |
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
git -c core.autocrlf=false clone --depth 1 --branch master https://github.com/pyenv-win/pyenv-win.git "$env:USERPROFILE\.pyenv"
if ($LASTEXITCODE -ne 0) { throw "Failed to clone pyenv-win" }
$pyenvBin = "$env:USERPROFILE\.pyenv\pyenv-win\bin"
echo "$pyenvBin" >> $env:GITHUB_PATH
echo "PYENV_ROOT=$env:USERPROFILE\.pyenv" >> $env:GITHUB_ENV
Expand Down
4 changes: 4 additions & 0 deletions azure-pipelines/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
pre-release.yml: This should build from the `main` branch and publish to the Azure Pipeline feed. This will be consumed by extensions that are also doing pre-release builds. Signing is required on this build.

devdiv-pre-release.yml: DevDiv replacement for the MonacoTools `pre-release.yml` pipeline. It has the same triggers, build matrix, version suffix, and `bin-<target>` artifacts. Like `pre-release.yml`, it only supplies parameters; the logic lives in `templates/rust-package.yml`, a DevDiv copy of `microsoft/vscode-engineering`'s `azure-pipelines/rust-package/pipeline.yml` that extends the MicroBuild 1ES template. Signing uses MicroBuild through `signing/sign.proj`: Windows `pet.exe` is signed with Microsoft400 in its build job, and all macOS `pet` binaries are signed with MacDeveloperHarden and notarized with 8020 in a single job. Linux binaries are not signed.

The DevDiv pipeline runs APIScan on the x64 Windows artifact and uploads results to TSA using `tsaoptions.json`. The `VSEng-APIScanSC` service connection must be authorized for the pipeline. Before disabling Monaco pipeline 591, merge this pipeline to `main`, set DevDiv definition 28980's default branch to `main`, verify a successful seven-target run, and migrate the Python Environments extension's pre-release consumer to the DevDiv artifacts.

stable.yml: This builds tags matching `release/<year>.<build>`, where `<year>` is four digits and `<build>` is numeric, and publishes to the Azure Pipeline feed. The pipeline is triggered when a matching tag is pushed to GitHub. This will be consumed by extensions when publishing stable builds. Signing is required on this build.

playground.yml: This pipeline is for engineering/testing purposes so we can do fixes and tests without affecting the pipeline feeds. This will not publish to the Azure Pipeline feed. Signing is not required on this build.
55 changes: 55 additions & 0 deletions azure-pipelines/devdiv-pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# DevDiv pre-release pipeline for PET.
#
# Migrated from the MonacoTools "python-environment-tools (pre-release)" definition (591, pre-release.yml).
# Like that pipeline, this file only supplies parameters; the build, signing, NOTICE, APIScan, and
# `bin-<target>` artifact logic lives in templates/rust-package.yml, a DevDiv/MicroBuild copy of
# microsoft/vscode-engineering's rust-package template.

trigger:
branches:
include:
- main
schedules:
- cron: "0 0 * * 0"
displayName: Weekly build
branches:
include:
- main
always: true
pr: none

parameters:
- name: buildPlatforms
type: object
default:
- name: linux
target: x86_64-unknown-linux-musl
- name: linux
target: aarch64-unknown-linux-gnu
- name: linux
target: armv7-unknown-linux-gnueabihf
- name: darwin
target: aarch64-apple-darwin
- name: darwin
target: x86_64-apple-darwin
- name: windows
target: aarch64-pc-windows-msvc
- name: windows
target: x86_64-pc-windows-msvc

extends:
template: templates/rust-package.yml
parameters:
binaryName: pet
teamName: VSCode-python-environments
signing: true
apiScanSoftwareVersion: '2024' # major version of `pet` for internal reporting
apiScanConnectionString: RunAs=App;AppId=d318cba7-db4d-4fb3-99e1-01879cb74e91;TenantId=72f988bf-86f1-41af-91ab-2d7cd011db47;ServiceConnectionId=93e24264-c5e6-4681-8175-ec8a41668480;
windowsAdditionalNotices: $(Build.SourcesDirectory)/azure-pipelines/windows-additional-notices.txt
buildPlatforms: ${{ parameters.buildPlatforms }}

preBuildSteps:
- pwsh: Rename-Item -Path "./.cargo/config.toml.disabled" -NewName "config.toml"
displayName: Enable Azure Build config for Rust
- pwsh: ./set-version.ps1 -Suffix "dev.$(Build.BuildId)"
displayName: Set nightly version
8 changes: 8 additions & 0 deletions azure-pipelines/signing/NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!-- Limit to one feed per 1ES guidance. -->
<clear />
<add key="VS-CoreXtFeeds" value="https://pkgs.dev.azure.com/devdiv/_packaging/VS-CoreXtFeeds/nuget/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
4 changes: 4 additions & 0 deletions azure-pipelines/signing/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudioEng.MicroBuild.Core" version="1.0.0" />
</packages>
43 changes: 43 additions & 0 deletions azure-pipelines/signing/sign.proj
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Signs files in place with MicroBuild (ESRP).

Run after the MicroBuildSigningPlugin task and a NuGet restore of packages.config:
msbuild sign.proj /p:SignType=real /p:FileToSign=<full path or wildcard> /p:Authenticode=<certificate> [/p:MacAppName=<name>] [/p:OutDir=<common parent>]

A wildcard FileToSign (for example `macos/*/pet.zip`) signs every match in one MicroBuild operation;
pass OutDir as a common parent of the matches.

Certificates used by azure-pipelines/templates/rust-package.yml:
Microsoft400 Windows Authenticode (pet.exe)
MacDeveloperHarden macOS hardened-runtime signing (zip containing `pet`)
8020 macOS notarization (same zip, after MacDeveloperHarden)
-->
<Project DefaultTargets="SignFiles" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MicroBuildCoreDir>$(MSBuildThisFileDirectory)packages\Microsoft.VisualStudioEng.MicroBuild.Core.1.0.0\build\</MicroBuildCoreDir>
<!-- MicroBuild only signs files located under OutDir. -->
<OutDir>$([MSBuild]::EnsureTrailingSlash($([System.IO.Path]::GetDirectoryName('$(FileToSign)'))))</OutDir>
<IntermediateOutputPath>$(OutDir)signing-obj\</IntermediateOutputPath>
</PropertyGroup>

<Import Project="$(MicroBuildCoreDir)Microsoft.VisualStudioEng.MicroBuild.Core.props" Condition="Exists('$(MicroBuildCoreDir)Microsoft.VisualStudioEng.MicroBuild.Core.props')" />

<ItemGroup>
<FilesToSign Include="$(FileToSign)" Condition="'$(FileToSign)' != ''">
<Authenticode>$(Authenticode)</Authenticode>
<MacAppName Condition="'$(MacAppName)' != ''">$(MacAppName)</MacAppName>
</FilesToSign>
</ItemGroup>

<Target Name="ValidateSigningInputs" BeforeTargets="SignFiles">
<Error Condition="!Exists('$(MicroBuildCoreDir)Microsoft.VisualStudioEng.MicroBuild.Core.targets')" Text="MicroBuild signing targets are missing. Restore azure-pipelines/signing/packages.config before signing." />
<Error Condition="'$(SignType)' != 'real' and '$(SignType)' != 'test'" Text="SignType must be 'real' or 'test'." />
<Error Condition="'@(FilesToSign)' == ''" Text="FileToSign does not exist: '$(FileToSign)'." />
<Error Condition="!Exists('%(FilesToSign.FullPath)')" Text="FileToSign does not exist: '%(FilesToSign.Identity)'." />
<Error Condition="'$(Authenticode)' == ''" Text="Authenticode (certificate name) is required." />
<MakeDir Directories="$(IntermediateOutputPath)" />
</Target>

<Import Project="$(MicroBuildCoreDir)Microsoft.VisualStudioEng.MicroBuild.Core.targets" Condition="Exists('$(MicroBuildCoreDir)Microsoft.VisualStudioEng.MicroBuild.Core.targets')" />
</Project>
Loading
Loading