Skip to content

Commit b986934

Browse files
cvpoienaruDavid Mueller IWSnohwnddotnet-maestro[bot]Evangelink
authored
Merge main in rel/17.7 (#4540)
Co-authored-by: David Mueller IWS <david.iws.mueller@getinge.com> Co-authored-by: Jakub Jareš <me@jakubjares.com> Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Amaury Levé <amaury.leve@gmail.com> Co-authored-by: Jakub Chocholowicz <jachocho@microsoft.com> Co-authored-by: Amaury Levé <amauryleve@microsoft.com> Co-authored-by: David Müller <muellerdavid4@gmail.com> Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: Alex Hsu <csigs@users.noreply.github.com> Co-authored-by: dotnet bot <dotnet-bot@dotnetfoundation.org> Co-authored-by: Nikola Milosavljevic <nikolam@microsoft.com> Co-authored-by: Larry Ewing <lewing@microsoft.com> Co-authored-by: Marco Rossignoli <marco.rossignoli@gmail.com> Co-authored-by: Matt Mitchell <mmitche@microsoft.com> Co-authored-by: Michael Simons <msimons@microsoft.com> Co-authored-by: Jakub Chocholowicz <59966772+jakubch1@users.noreply.github.com> Co-authored-by: Matt Thalman <mthalman@microsoft.com> Co-authored-by: fhnaseer <fhnaseer@live.com> Co-authored-by: Simon Cropp <simon.cropp@gmail.com> Co-authored-by: Codrin Poienaru <copoiena@microsoft.com> Fix Newtonsoft versions in testhost.deps.json (#4367) Fix structure of the eng/Localize folder (#4384) Fix build (#4399) Fix hangdump running into crashdump (#4378) Fix playground (#4420) Fix VSIX inserted into VS (#4443) Fix some nullability warnings in tests (#4452) fix: TestObject use ConcurrentDictionary instead of Dictionary (#4450) Fix version of CppUnitTestFramework dlls (#4457) Fix no-suitable provider found (#4475) Fix arm64 build (#4485) Fix version of Microsoft.VisualStudio.Interop.dll (#4496) Fix execution gets stucks on single netstandard source (#4497) Fix broken source build path (#4505) fixes (#4533)
1 parent ade0d73 commit b986934

File tree

692 files changed

+35607
-97594
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

692 files changed

+35607
-97594
lines changed

CODEOWNERS

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ PublicAPI.Unshipped.txt @nohwnd @MarcoRossignoli
99
TelemetryDataConstants.cs @cvpoienaru @nohwnd
1010

1111
# Changes here might break our contracts with other adapters, and possibly
12-
# Visual Studio.
13-
/src/Microsoft.TestPlatform.AdapterUtilities/ @haplois @Evangelink
14-
/test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/ @haplois @Evangelink
12+
# Visual Studio.
13+
/src/Microsoft.TestPlatform.AdapterUtilities/ @nohwnd @Evangelink
14+
/test/Microsoft.TestPlatform.AdapterUtilities.UnitTests/ @nohwnd @Evangelink

Directory.Build.targets

-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
<TargetFramework Condition=" '$(TargetFramework)' != '' ">$(NetCurrent)</TargetFramework>
1212
</PropertyGroup>
1313

14-
<!-- Allows build of .NET Framework assemblies on MacOS and Linux https://github.com/dotnet/designs/pull/33#issuecomment-489264196 -->
15-
<ItemGroup>
16-
<PackageReference Condition=" '$(OS)' != 'Windows_NT' " Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.2" PrivateAssets="All" />
17-
</ItemGroup>
18-
1914
<!-- Test project settings -->
2015
<Choose>
2116
<When Condition="$(TestProject) == 'true'">

NuGet.config

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<clear />
88
<!-- When building TestAssets we read the keys from here and provide them directly to dotnet restore together with path to artifacts/packages/<configuration>/Shipping,
99
because the path to packages contains configuration and we don't want to modify a checked-in file in our repo to be able to build. -->
10+
<add key="vssdk-archived" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vssdk-archived/nuget/v3/index.json" />
1011
<add key="vs-impl" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl/nuget/v3/index.json" />
1112
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
1213
<add key="test-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/test-tools/nuget/v3/index.json" />
@@ -15,8 +16,10 @@
1516
<add key="dotnet5" value="https://dnceng.pkgs.visualstudio.com/public/_packaging/dotnet5/nuget/v3/index.json" />
1617
<add key="dotnet7" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet7/nuget/v3/index.json" />
1718
<add key="dotnet8" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json" />
19+
<add key="dotnet8-transport" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8-transport/nuget/v3/index.json" />
1820
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
1921
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
22+
<add key="vs-impl-archived" value="https://pkgs.dev.azure.com/azure-public/vside/_packaging/vs-impl-archived/nuget/v3/index.json" />
2023
<!-- When building isolated test projects we copy this file into temp, and insert localy-built-packages source here, that points to artifacts/packages/<configuration>/Shipping. -->
2124
</packageSources>
2225
<fallbackPackageFolders>

azure-pipelines.yml

+59-43
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
# Branches that trigger a build on commit
22
trigger:
3-
- main
4-
- rel/*
3+
branches:
4+
include:
5+
- main
6+
- rel/*
7+
exclude:
8+
- rel/15.*
9+
- rel/16.*
10+
- rel/17.0
11+
- rel/17.1
12+
- rel/17.2
13+
- rel/17.3
14+
- rel/17.4
15+
- rel/17.5
16+
- rel/17.6
517

618
# Branch(es) that trigger(s) build(s) on PR
719
pr:
@@ -23,7 +35,7 @@ pr:
2335

2436
parameters:
2537
- name: isRTM
26-
displayName: "Release a RTM version?"
38+
displayName: "Produce RTM version?"
2739
type: boolean
2840
default: False
2941

@@ -50,7 +62,7 @@ variables:
5062
# under some circumstances, but we don't respect that in our code and try to find them
5163
# in .packages. Force the location of packages to that folder.
5264
- name: NUGET_PACKAGES
53-
value: '$(Build.SourcesDirectory)/.packages'
65+
value: '$(Build.SourcesDirectory)/.packages/'
5466

5567
# Produce real signed binaries for Internal builds
5668
- ${{ if eq(variables._RunAsInternal, True) }}:
@@ -76,6 +88,11 @@ variables:
7688
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
7789
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
7890
/p:VisualStudioDropName=$(VisualStudioDropName)
91+
/p:GenerateSbom=true
92+
93+
- ${{ if eq(parameters.isRTM, True) }}:
94+
- name: _InternalBuildArgs
95+
value: $(_InternalBuildArgs) /p:DotNetFinalVersionKind=release
7996

8097
stages:
8198

@@ -119,6 +136,10 @@ stages:
119136
command: custom
120137
custom: '--info'
121138

139+
# Restore internal tools required for SBOM generation
140+
- ${{ if eq(variables._RunAsInternal, True) }}:
141+
- template: /eng/restore-internal-tools.yml
142+
122143
- powershell: eng\common\CIBuild.cmd
123144
-configuration $(_BuildConfig)
124145
-prepareMachine
@@ -144,7 +165,7 @@ stages:
144165
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/TestResults/$(_BuildConfig)'
145166
ArtifactName: TestResults
146167
condition: failed()
147-
168+
148169
# Public pipeline does not upload packages into artifacts, but we need them for tests on Linux and MacOS.
149170
- ${{ if eq(variables._RunAsPublic, True) }}:
150171
- task: PublishBuildArtifacts@1
@@ -164,7 +185,7 @@ stages:
164185
inputs:
165186
PathtoPublish: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)'
166187
ArtifactName: VSSetupArtifacts
167-
188+
168189
- job: OtherOSes
169190
dependsOn: Windows
170191
workspace:
@@ -188,30 +209,30 @@ stages:
188209
- checkout: self
189210
fetchDepth: 1
190211
clean: true
191-
212+
192213
# Build but don't pack, packing does not work on non-windows and we want to test what we built on Windows
193214
# anyway. Because that is what we will publish.
194215
- script: ./build.sh
195216
--configuration $(_BuildConfig)
196217
--ci
197218
name: Build
198219
displayName: Build
199-
220+
200221
# Download the built packages into local package source, as if we built them on this machine.
201222
- task: DownloadPipelineArtifact@2
202223
displayName: Download Package Artifacts
203224
inputs:
204225
artifactName: PackageArtifacts
205226
targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
206-
227+
207228
- script: ./test.sh
208229
--configuration $(_BuildConfig)
209230
--ci
210231
--integrationTest
211232
--performanceTest
212233
name: Test
213234
displayName: Test
214-
235+
215236
# This step is only helpful for diagnosing some issues with vstest/test host that would not appear
216237
# through the console or trx
217238
- task: PublishBuildArtifacts@1
@@ -221,39 +242,34 @@ stages:
221242
ArtifactName: TestResults
222243
condition: failed()
223244

224-
- job: Publish
225-
dependsOn: OtherOSes
226-
pool:
227-
${{ if eq(variables._RunAsPublic, True) }}:
228-
name: NetCore-Public
229-
demands: ImageOverride -equals windows.vs2022.amd64.open
230-
${{ if eq(variables._RunAsInternal, True) }}:
231-
name: NetCore1ESPool-Internal
232-
demands: ImageOverride -equals 1es-windows-2022
233-
strategy:
234-
matrix:
235-
Release:
236-
_BuildConfig: Release
237-
# ${{ if eq(variables._RunAsPublic, True) }}:
238-
# Debug:
239-
# _BuildConfig: Debug
240-
steps:
241-
# Download the built packages into local package source, as if we built them on this machine.
242-
- task: DownloadPipelineArtifact@2
243-
displayName: Download Package Artifacts
244-
inputs:
245-
artifactName: PackageArtifacts
246-
targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
247-
248-
- task: DownloadPipelineArtifact@2
249-
displayName: Download VSSetup Artifacts
250-
inputs:
251-
artifactName: VSSetupArtifacts
252-
targetPath: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)'
253-
254-
# TODO: Publishing to the feeds is making non-arcade CI acceptance tests fail so we disable these steps for now.
255-
# They will need to be re-enabled once this is merged to main.
256-
- ${{ if eq(variables._RunAsInternal, True) }}:
245+
- ${{ if eq(variables._RunAsInternal, True) }}:
246+
- job: Publish
247+
dependsOn: OtherOSes
248+
pool:
249+
name: NetCore1ESPool-Internal
250+
demands: ImageOverride -equals 1es-windows-2022
251+
strategy:
252+
matrix:
253+
Release:
254+
_BuildConfig: Release
255+
steps:
256+
# The template job needs a log, otherwise it writes a warning. We can disable log uploading only for
257+
# the whole stage, which is not what we want to do. So we write an empty file instead.
258+
- pwsh: 'New-Item -Type file -Force "$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/empty.log"'
259+
name: 'Add_empty_logfile'
260+
# Download the built packages into local package source, as if we built them on this machine.
261+
- task: DownloadPipelineArtifact@2
262+
displayName: Download Package Artifacts
263+
inputs:
264+
artifactName: PackageArtifacts
265+
targetPath: '$(Build.SourcesDirectory)/artifacts/packages/$(_BuildConfig)/Shipping'
266+
267+
- task: DownloadPipelineArtifact@2
268+
displayName: Download VSSetup Artifacts
269+
inputs:
270+
artifactName: VSSetupArtifacts
271+
targetPath: '$(Build.SourcesDirectory)/artifacts/VSSetup/$(_BuildConfig)'
272+
257273
- task: NuGetAuthenticate@0
258274
displayName: 'NuGet Authenticate to dotnet-tools and test-tools feeds'
259275

docs/releases.md

+29
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Release Notes
22

3+
## 17.6.1 and newer
4+
5+
Please see release notes directly in the release page: https://github.com/microsoft/vstest/releases
6+
7+
## 17.6.0
8+
9+
### Issues Fixed
10+
11+
* Add legacy feeds
12+
* [rel/17.6] Fix Newtonsoft versions in testhost.deps.json [#4372](https://github.com/microsoft/vstest/pull/4372)
13+
* Revert "Revert "Fix signature verification" (#4333" [#4345](https://github.com/microsoft/vstest/pull/4345)
14+
* Revert "Fix signature verification" [#4333](https://github.com/microsoft/vstest/pull/4333)
15+
* Fix signature verification [#4331](https://github.com/microsoft/vstest/pull/4331)
16+
* Pre-start testhosts [#3666](https://github.com/microsoft/vstest/pull/3666)
17+
* Add `dotnet vstest` deprecation message [#4297](https://github.com/microsoft/vstest/pull/4297)
18+
* Catch unhandled exception and avoid crash on test host exit [#4291](https://github.com/microsoft/vstest/pull/4291)
19+
* Remove chutzpah [#4249](https://github.com/microsoft/vstest/pull/4249)
20+
* Fix string conversion of `Microsoft.TestPlatform.Extensions.TrxLogger.ObjectMode.TestOutcome` [#4243](https://github.com/microsoft/vstest/pull/4243)
21+
* Fix potential trx logger NRE [#4240](https://github.com/microsoft/vstest/pull/4240)
22+
* handle object disposed exception [#4221](https://github.com/microsoft/vstest/pull/4221)
23+
* Added support for checking testhost compatibility with test sessions [#4199](https://github.com/microsoft/vstest/pull/4199)
24+
25+
See full log [here](https://github.com/microsoft/vstest/compare/v17.5.0...v17.6.0)
26+
27+
### Artifacts
28+
29+
* TestPlatform vsix: [17.6.0](https://vsdrop.corp.microsoft.com/file/v1/Products/DevDiv/microsoft/vstest/17.6/20230515-01;/TestPlatform.vsix)
30+
* Microsoft.TestPlatform.ObjectModel : [17.6.0](https://www.nuget.org/packages/Microsoft.TestPlatform.ObjectModel/17.6.0)
31+
332
## 17.3.3
433

534
### Issues Fixed

0 commit comments

Comments
 (0)