Skip to content

Commit

Permalink
Merge pull request #1473 from microsoft/main
Browse files Browse the repository at this point in the history
Merge 'main' into 'release-cpptools'
  • Loading branch information
WardenGnaw authored Sep 20, 2024
2 parents 8cf60fb + 15173ad commit 5513e19
Show file tree
Hide file tree
Showing 53 changed files with 1,659 additions and 166 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/Build-And-Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2

- name: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v1
uses: NuGet/setup-nuget@v2

- name: Build MIDebugEngine
run: |
Expand All @@ -44,7 +44,7 @@ jobs:
Configuration: ${{ matrix.configuration }}

- name: Setup VSTest.console.exe
uses: darenm/Setup-VSTest@v1.2
uses: darenm/Setup-VSTest@v1.3

- name: Run VS Extension tests
run: vstest.console.exe ${{ github.workspace }}\bin\${{ matrix.configuration }}\MICoreUnitTests.dll ${{ github.workspace }}\bin\${{ matrix.configuration }}\JDbgUnitTests.dll ${{ github.workspace }}\bin\${{ matrix.configuration }}\SSHDebugTests.dll ${{ github.workspace }}\bin\${{ matrix.configuration }}\MIDebugEngineUnitTests.dll
Expand All @@ -54,20 +54,20 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.1
uses: microsoft/setup-msbuild@v2

- name: Setup NuGet.exe for use with actions
uses: NuGet/setup-nuget@v1
uses: NuGet/setup-nuget@v2

- name: Build MIDebugEngine
run: |
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
dotnet test $CppTestsPath --logger "trx;LogFileName=$ResultsPath"
- name: 'Upload Test Results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: win_msys2_x64_results
Expand All @@ -112,14 +112,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Build
run: dotnet build ${{ github.workspace }}/src/MIDebugEngine-Unix.sln
Expand All @@ -143,24 +143,24 @@ jobs:
${{ github.workspace }}/eng/Scripts/CI-Test.sh
- name: 'Upload Test Results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: linux_x64_results
path: ${{ github.workspace }}/bin/DebugAdapterProtocolTests/Debug/CppTests/results.trx

osx_build:
runs-on: macos-latest
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
dotnet-version: 8.0.x

- name: Build
run: dotnet build ${{ github.workspace }}/src/MIDebugEngine-Unix.sln
Expand All @@ -172,8 +172,8 @@ jobs:
${{ github.workspace }}/eng/Scripts/CI-Test.sh
- name: 'Upload Test Results'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: osx_x64_results
path: ${{ github.workspace }}/bin/DebugAdapterProtocolTests/Debug/CppTests/results.trx
path: ${{ github.workspace }}/bin/DebugAdapterProtocolTests/Debug/CppTests/results.trx
4 changes: 2 additions & 2 deletions MIEngine.UnixPortSupplier.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<tags></tags>
</metadata>
<files>
<file src="drop\Release\ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" target="ref\dotnet" />
<file src="drop\Release\ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.dll" target="ref\dotnet" />
<file src="Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" target="ref\dotnet" />
<file src="Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.dll" target="ref\dotnet" />
</files>
</package>
10 changes: 5 additions & 5 deletions MIEngine.mdd.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<tags></tags>
</metadata>
<files>
<file src="drop\Release\ReferenceAssemblies\*.xml" target="ref\dotnet" exclude="drop\Release\ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" />
<file src="drop\Release\ReferenceAssemblies\Microsoft.DebugEngineHost.dll" target="ref\dotnet" />
<file src="drop\Release\Microsoft.MICore.dll" target="ref\dotnet" />
<file src="drop\Release\*" target="Release" exclude="drop\Release\Install.cmd;drop\Release\ReferenceAssemblies" />
<file src="drop\Release\loc\**\*" target="Release\loc" />
<file src="ReferenceAssemblies\*.xml" target="ref\dotnet" exclude="ReferenceAssemblies\Microsoft.VisualStudio.Debugger.Interop.UnixPortSupplier.DesignTime.xml" />
<file src="ReferenceAssemblies\Microsoft.DebugEngineHost.dll" target="ref\dotnet" />
<file src="Microsoft.MICore.dll" target="ref\dotnet" />
<file src="*" target="Release" exclude="Install.cmd;drop\Release\ReferenceAssemblies" />
<file src="loc\**\*" target="Release\loc" />
</files>
</package>
16 changes: 10 additions & 6 deletions build/package_versions.settings.targets
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Microsoft_VisualStudio_Debugger_Interop_Portable_Version>1.0.1</Microsoft_VisualStudio_Debugger_Interop_Portable_Version>
<Microsoft_VisualStudio_Interop_Version>17.8.37221</Microsoft_VisualStudio_Interop_Version>
<Microsoft_VisualStudio_Interop_Version>17.11.40262</Microsoft_VisualStudio_Interop_Version>
<Newtonsoft_Json_Version>13.0.3</Newtonsoft_Json_Version>
<Microsoft_VisualStudio_Shared_VSCodeDebugProtocol_Version>17.2.60629.1</Microsoft_VisualStudio_Shared_VSCodeDebugProtocol_Version>

Expand All @@ -25,15 +25,19 @@
<Microsoft_VisualStudio_Debugger_Interop_15_0_Version>17.5.33428.366</Microsoft_VisualStudio_Debugger_Interop_15_0_Version>
<Microsoft_VisualStudio_Debugger_Interop_16_0_Version>17.5.33428.366</Microsoft_VisualStudio_Debugger_Interop_16_0_Version>
<Microsoft_VisualStudio_Debugger_InteropA_Version>17.5.33428.366</Microsoft_VisualStudio_Debugger_InteropA_Version>
<Microsoft_VisualStudio_Shell_15_0_Version>17.8.37221</Microsoft_VisualStudio_Shell_15_0_Version>
<Microsoft_VisualStudio_Shell_Framework_Version>17.8.37221</Microsoft_VisualStudio_Shell_Framework_Version>
<Microsoft_VisualStudio_Threading_Version>17.8.14</Microsoft_VisualStudio_Threading_Version>
<Microsoft_VisualStudio_Utilities_Version>17.8.37221</Microsoft_VisualStudio_Utilities_Version>
<Microsoft_VisualStudio_Shell_15_0_Version>17.11.40262</Microsoft_VisualStudio_Shell_15_0_Version>
<Microsoft_VisualStudio_Shell_Framework_Version>17.11.40262</Microsoft_VisualStudio_Shell_Framework_Version>
<Microsoft_VisualStudio_Threading_Version>17.11.20</Microsoft_VisualStudio_Threading_Version>
<Microsoft_VisualStudio_Utilities_Version>17.11.40262</Microsoft_VisualStudio_Utilities_Version>
<Microsoft_VisualStudio_Shell_Interop_15_0_DesignTime_Version>15.0.26932</Microsoft_VisualStudio_Shell_Interop_15_0_DesignTime_Version>
<Microsoft_VisualStudio_Workspace_Version>15.0.392</Microsoft_VisualStudio_Workspace_Version>
<Microsoft_VisualStudio_Workspace_VSIntegration_Version>15.0.392</Microsoft_VisualStudio_Workspace_VSIntegration_Version>
<Microsoft_VisualStudio_TextManager_Interop_Version>17.8.37221</Microsoft_VisualStudio_TextManager_Interop_Version>
<Microsoft_VisualStudio_TextManager_Interop_Version>17.11.40262</Microsoft_VisualStudio_TextManager_Interop_Version>
<Microsoft_VSSDK_BuildTools_Version>17.3.2093</Microsoft_VSSDK_BuildTools_Version>
<System_Runtime_Loader_Version>4.3.0</System_Runtime_Loader_Version>

<!-- For Component Governance -->
<Microsoft_IO_Redist_Version>6.0.1</Microsoft_IO_Redist_Version>
<System_Text_Json_Version>8.0.4</System_Text_Json_Version>
</PropertyGroup>
</Project>
2 changes: 1 addition & 1 deletion build/version.settings.targets
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!--SxS: These three properties should be changed at the start of a new version, VersionZeroYear should be the year
before the start of the project.-->
<MajorVersion>17</MajorVersion>
<MinorVersion>8</MinorVersion>
<MinorVersion>12</MinorVersion>
<VersionZeroYear>2022</VersionZeroYear>
<!-- Note: for compatibility, we leave the default assembly version of the repo at 14.0.
If we ever decide to change this, make sure that you notify partner teams such as C++ IOT -->
Expand Down
4 changes: 3 additions & 1 deletion eng/pipelines/MIDebugEngine-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ stages:

- stage: CodeAnalysis
dependsOn: [CI]
variables:
- group: VSEng sponsored APIScan
jobs:
- template: ./jobs/MSHosted-Windows.job.yml
- template: ./jobs/VSEngSS-MicroBuild2022-1ES.job.yml
parameters:
DisplayName: 'CodeAnalysis'
JobTemplate:
Expand Down
36 changes: 34 additions & 2 deletions eng/pipelines/VS-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: $(Date:yyyMMdd).$(Rev:r)

variables:
- group: TSDTUSR
- name: TeamName
value: MDDDebugger

resources:
repositories:
Expand All @@ -21,7 +23,7 @@ extends:
name: VSEngSS-MicroBuild2022-1ES
os: windows
stages:
- stage: stage
- stage: BuildVSReleasePackage
displayName: VS_Release
jobs:
- job: Phase_1
Expand All @@ -38,4 +40,34 @@ extends:
enabled: true
steps:
- template: /eng/pipelines/templates/VS-release.template.yml@self

- stage: VS_Insertion
dependsOn: [BuildVSReleasePackage]
jobs:
- job:
displayName: Insert package into VS
templateContext:
inputs:
- input: pipelineArtifact
artifactName: PackageVersion
targetPath: $(Build.ArtifactStagingDirectory)\PackageVersion
steps:
- checkout: none

- powershell: |
$version= [IO.File]::ReadAllText("$(Build.ArtifactStagingDirectory)\PackageVersion\NugetPackageVersion.txt")
Write-Host "##vso[task.setvariable variable=MDDPackageVersion;]$version"
displayName: 'Set MDDPackage Version'
- task: ms-vseng.MicroBuildShipTasks.55100717-a81d-45ea-a363-b8fe3ec375ad.MicroBuildInsertVsPayload@4
displayName: 'Insert VS Payload'
inputs:
TargetBranch: $(TargetBranch)
TeamName: 'VS Debugger Platform'
TeamEmail: $(TEAMEMAIL)
DefaultConfigValues: 'VS.Redist.Debugger.MDD.MIEngine=$(MDDPackageVersion)'
RevisionTextFiles: 'src/SetupPackages/VC/IDE/MDD/core/revision.txt,src/SetupPackages/VC/IDE/MDD/res/revision.txt'
InsertionPayloadName: 'MIEngine $(MDDPackageVersion)'
InsertionDescription: 'Updating MIEngine to $(MDDPackageVersion). See $(Release.Artifacts.MIEngine_MDD.BuildURI)'
InsertionReviewers: $(InsertionReviewers)
...
4 changes: 3 additions & 1 deletion eng/pipelines/VSCode-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
name: $(Date:yyyMMdd).$(Rev:r)

variables:
- group: TSDTUSR
- name: TeamName
value: MDDDebugger

resources:
repositories:
Expand Down
2 changes: 1 addition & 1 deletion eng/pipelines/steps/APIScan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ steps:
isLargeApp: false
continueOnError: true
env:
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId);TenantId=$(ApiScanTenant);AppKey=$(MIEngineApiScan)
AzureServicesAuthConnectionString: runAs=App;AppId=$(ApiScanClientId)
38 changes: 13 additions & 25 deletions eng/pipelines/steps/CopyAndPublishSymbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,21 @@ steps:
- template: ../tasks/CopyFiles.yml
parameters:
displayName: 'Collect build symbols'
SourceFolder: '$(Build.SourcesDirectory)'
Contents: '$(Build.SourcesDirectory)\bin\**\*.+(pdb|exe|dll)'
SourceFolder: '$(Build.StagingDirectory)\drop'
Contents: '$(Build.StagingDirectory)\drop\**\*.+(pdb|exe|dll)'
TargetFolder: '$(Build.ArtifactStagingDirectory)/symbols'
CleanTargetFolder: true

- task: PowerShell@2
displayName: 'Set Variables for PublishSymbols'

- task: ms-vseng.MicroBuildShipTasks.0ffdda1d-8c7b-40da-b8b1-061660eaeea3.MicroBuildArchiveSymbols@5
displayName: 'Archive MIEngine_MDD on Symweb'
inputs:
targetType: 'inline'
script: |
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName]microsoft"
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.PAT;issecret=true;]${env:ARTIFACTSERVICES_SYMBOL_PAT}"
Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.UseAAD]false"
env:
ARTIFACTSERVICES_SYMBOL_PAT: $(all-org-SymbolsReadWrite)

- template: ../tasks/PublishSymbols.yml
parameters:
IndexSources: false
SymbolsFolder: '$(Build.ArtifactStagingDirectory)/symbols'
SearchPattern: '**\*.pdb'
SymbolServerType: TeamServices

- template: ../tasks/1ES/PublishPipelineArtifact.yml
parameters:
displayName: 'Publish Symbols'
targetPath: '$(Build.ArtifactStagingDirectory)/symbols'
artifactName: 'Symbols'
OneESPT: ${{ parameters.OneESPT }}
SymbolsFeatureName: MIEngine
SymbolsProject: VS
SymbolsAgentPath: '$(Build.ArtifactStagingDirectory)\Symbols\'
ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\Debug;$(Build.ArtifactStagingDirectory)\Symbols\Lab.Debug'
${{ if parameters.OneESPT }}:
ExpirationInDays: 3650 # Expire in 10 years for release builds
${{ else }}:
ExpirationInDays: 1 # Expire in 1 day if used for testing
...
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@ steps:
artifactName: 'PackageVersion'
OneESPT: true

- template: ../tasks/NuGetCommand.yml
parameters:
displayName: 'NuGet pack'
command: pack
searchPatternPack: '$(Build.SourcesDirectory)\MIEngine.mdd.nuspec;$(Build.SourcesDirectory)\MIEngine.UnixPortSupplier.nuspec'
configurationToPack: Release
buildProperties: 'version=$(NugetPackageVersion)'
basePath: ${{ parameters.BasePath }}
- task: CopyFiles@2
inputs:
SourceFolder: $(Build.BinariesDirectory)
Contents: '**/*.nupkg'
TargetFolder: $(Build.SourcesDirectory)/NugetPackages
flattenFolders: true
OverWrite: true

- task: 1ES.PublishNuget@1
displayName: Publish Nuget package
condition: and(succeeded(), eq(variables['SignType'], 'real'))
inputs:
packagesToPush: '$(Build.SourcesDirectory)\VS.Redist.Debugger.MDD.MIEngine.*.nupkg;$(Build.SourcesDirectory)\VS.Redist.Debugger.MDD.UnixPortSupplier.*.nupkg'
packageParentPath: '$(Build.SourcesDirectory)'
packagesToPush: '$(Build.SourcesDirectory)/NugetPackages/*.nupkg'
packageParentPath: '$(Build.SourcesDirectory)/NugetPackages'
publishVstsFeed: '97a41293-2972-4f48-8c0e-05493ae82010' # VS
nuGetFeedType: internal
...
2 changes: 1 addition & 1 deletion eng/pipelines/tasks/UseDotNet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ steps:
displayName: 'Use .NET Core sdk'
inputs:
packageType: sdk
version: 6.x
version: 8.x
6 changes: 6 additions & 0 deletions eng/pipelines/templates/CodeAnalysis.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ steps:

- template: ../tasks/CredScan.yml

- template: ../steps/BuildSolution.yml
parameters:
Solution: '$(Build.SourcesDirectory)\test\CppTests\debuggees\sln\debuggees.sln'
Configuration: 'Debug'
OneESPT: false

- task: DownloadPipelineArtifact@2
displayName: Download Pipeline Artifact
inputs:
Expand Down
Loading

0 comments on commit 5513e19

Please sign in to comment.