Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main into release_mdd #1464

Merged
merged 10 commits into from
Sep 3, 2024
Merged
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
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
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)
31 changes: 13 additions & 18 deletions eng/pipelines/steps/CopyAndPublishSymbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,22 @@ steps:
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

SymbolsFeatureName: MIEngine
SymbolsProject: VS
SymbolsAgentPath: '$(Build.ArtifactStagingDirectory)\Symbols\'
ExcludeAgentFolders: '$(Build.ArtifactStagingDirectory)\Symbols\bin\Debug;$(Build.ArtifactStagingDirectory)\Symbols\bin\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

- template: ../tasks/1ES/PublishPipelineArtifact.yml
parameters:
displayName: 'Publish Symbols'
displayName: 'Publish Symbols Artifact'
targetPath: '$(Build.ArtifactStagingDirectory)/symbols'
artifactName: 'Symbols'
OneESPT: ${{ parameters.OneESPT }}
Expand Down
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
7 changes: 7 additions & 0 deletions src/DebugEngineHost/DebugEngineHost.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,13 @@
<IncludeAssets>compile</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

<PackageReference Include="Microsoft.IO.Redist" Version="$(Microsoft_IO_Redist_Version)">
<ExcludeAssets>all</ExcludeAssets>
</PackageReference>
<PackageReference Include="System.Text.Json" Version="$(System_Text_Json_Version)">
<ExcludeAssets>all</ExcludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Label="Assembly to Generate">
Expand Down
2 changes: 1 addition & 1 deletion src/DebugEngineHost/HostOutputWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
/// </summary>
public static void Write(string message, string pane = DefaultOutputPane)
{
ThreadHelper.JoinableTaskFactory.RunAsync(async delegate

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vs_build (Debug)

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vs_build (Release)

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vscode_build

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vs_build (Release)

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vs_build (Debug)

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vscode_build

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vs_build (Release)

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vs_build (Debug)

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)

Check warning on line 72 in src/DebugEngineHost/HostOutputWindow.cs

View workflow job for this annotation

GitHub Actions / windows_vscode_build

Await/join tasks created from ThreadHelper.JoinableTaskFactory.RunAsync (https://github.com/Microsoft/VSSDK-Analyzers/blob/main/doc/VSSDK007.md)
{
await ThreadHelper.JoinableTaskFactory.SwitchToMainThreadAsync();
try
Expand Down Expand Up @@ -117,7 +117,7 @@
}

// Output the text
outputPane.OutputString(message);
outputPane.OutputStringThreadSafe(message);
}
catch (Exception)
{
Expand Down
Loading