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

[Cherrypick] Updated WindowsAppSDK-RunTestsInPipeline-Job.yml #4003

Closed
wants to merge 52 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
010c628
Bump minor version to 5 (#3725)
kythant Jul 11, 2023
6aabfb3
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Jul 12, 2023
cb88903
Update Version.Details.xml (#3736)
alexlamtest Jul 14, 2023
ab7fc10
Update CsWinRT version to 2.0.3 (#3738)
manodasanW Jul 17, 2023
8946616
[develop] Update dependencies from microsoft/ProjectReunion/WindowsAp…
Jul 17, 2023
9005d33
Use latest C++/WinRT in C++ project templates (#3729)
evelynwu-msft Jul 19, 2023
e1ae250
Windows App SDK VSIX Cruft Cleanup (#3739)
ShashankNay Jul 20, 2023
18ada2f
Various fixes for C++ project and item templates (#3745)
evelynwu-msft Jul 20, 2023
3cd6f77
[develop] Update dependencies from microsoft/LiftedIXP/DCPP (#3665)
Jul 26, 2023
d82f92c
KozaniHostRuntime implementation and FTA and protocol launch support …
rhuang-msft Aug 4, 2023
bbbde78
Update bug-report.yaml (#3793)
duncanmacmichael Aug 17, 2023
547582c
Update WindowsAppSDK-RunTestsInPipeline-Job.yml (#3798)
alexlamtest Aug 17, 2023
2248b3c
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Aug 18, 2023
cc3f5aa
Fix errors in the installer. (#3796)
codendone Aug 21, 2023
5f43b06
Reenable MRTCore and Test Stage in Main (#3724)
kythant Aug 21, 2023
96e1c3a
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Aug 21, 2023
305aa7b
Develop to use Internal Feed (#3808)
kythant Aug 22, 2023
29734ec
fix: url typo (#3805)
0o001 Aug 22, 2023
e2c310d
Update bug-report.yaml (#3762)
duncanmacmichael Aug 22, 2023
0e4c78d
Fix version schema on WinAppSDKIntegrationBuildAndTest (#3812)
kythant Aug 22, 2023
f8c7129
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Aug 23, 2023
043d811
Simply add auto initializer sources without a target, and define a us…
Scottj1s Aug 30, 2023
e4dc361
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Aug 31, 2023
18acdc7
Update bug-report.yaml for 1.4 stable (#3823)
duncanmacmichael Aug 31, 2023
cdee6f6
Windows Dynamic Dependency API via Powershell (#3647)
DrusTheAxe Aug 31, 2023
c301214
retryCountOnTaskFailure 10 on nuget restore (#3826)
kythant Aug 31, 2023
2e6a398
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Sep 1, 2023
874d66a
PackageDeploymentManager/PackageRuntimeManager v0 (experimental) (#3820)
DrusTheAxe Sep 5, 2023
0efd8f5
Improve MRTCore build reliability (#3848)
kythant Sep 11, 2023
29660ce
Add PackageManager info to Transport package (.winmd, manifested ACID…
DrusTheAxe Sep 19, 2023
0a39388
Update bug-report.yaml for 1.4.1 (#3866)
duncanmacmichael Sep 21, 2023
20d6e10
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Sep 22, 2023
9753774
Only Publish NuGet Package to Feed in Release and Nightly Builds (#3870)
kythant Sep 22, 2023
51c0e77
More PackageManager (#3881)
DrusTheAxe Sep 26, 2023
485d1db
[develop] Update dependencies from microsoft/ProjectReunion/WindowsAp…
Sep 26, 2023
49997a7
Update global.json to use latest (#3880)
bpulliam Sep 26, 2023
8544142
Updating roadmap for 1.5 (#3883)
duncanmacmichael Sep 27, 2023
6d44172
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Sep 28, 2023
195c006
Add version info to WindowsAppRuntimeInstall.exe (#3884)
codendone Oct 2, 2023
6631888
Snapshot 1: Enable strong name signing (#3875)
alexlamtest Oct 3, 2023
129c7b4
Fixed a redundant error check in Test-PackageDependency.Tests.ps1 (#3…
DrusTheAxe Oct 4, 2023
4d2c1c0
Update bug-report.yaml for 1.4.2 (#3904)
duncanmacmichael Oct 11, 2023
e916452
Merge branch 'main' of https://github.com/microsoft/WindowsAppSDK int…
Oct 11, 2023
514f12a
Dynamic Retrieval of Microsoft.WindowsAppSDK Version for C# Single-Pr…
ShashankNay Oct 13, 2023
879f578
Update dependencies from https://dev.azure.com/microsoft/ProjectReuni…
Oct 18, 2023
7006d98
Resolve Merge Conflict
kythant Oct 19, 2023
31c2491
Setup branch for experimental1
kythant Nov 1, 2023
6c1e928
Update dependencies from https://dev.azure.com/microsoft/ProjectReuni…
Nov 2, 2023
1c9a363
Update dependencies from https://dev.azure.com/microsoft/LiftedIXP/_g…
Nov 3, 2023
8eaff9b
Update area path in tsaoptions.json (#3953)
alexlamtest Nov 11, 2023
b2de747
Updated tsaoptions.json (#3964)
alexlamtest Nov 17, 2023
a7cc523
Remove CoRefresh and Server22_DC_arm64fre (#3996)
kythant Nov 29, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .config/tsaoptions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"instanceUrl": "https://microsoft.visualstudio.com",
"projectName": "os",
"areaPath": "OS\\Windows Client and Services\\ADEPT\\OWL (Open Windows pLatform)\\Rendering\\WinAppSDK Engineering System",
"iterationPath": "OS\\2211",
"areaPath": "OS\\Windows Client and Services\\ADEPT\\NEON\\Windex\\WinAppSDK Engineering System",
"iterationPath": "OS\\2311",
"notificationAliases": [ "WinAppSDK-Build@microsoft.com" ],
"ignoreBranchName": true,
"codebaseName": "WinAppSDK-Foundation"
Expand Down
3 changes: 1 addition & 2 deletions .github/ISSUE_TEMPLATE/bug-report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ body:
label: NuGet package version
description: Specify the version of Windows App SDK (or Project Reunion) you're using.
options:
- "Windows App SDK 1.3.2: 1.3.230602002"
- "Windows App SDK 1.4 Preview 1: 1.4.230628000-preview1"
- "Windows App SDK 1.4.2: 1.4.231008000"
- "Windows App SDK 1.4 Experimental 1: 1.4.230518007-experimental1"
- type: dropdown
attributes:
Expand Down
2 changes: 2 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>

<NugetPackageDirectory>$(RepoRoot)\packages</NugetPackageDirectory>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(RepoRoot)\WasdkStrongNameSign.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>

<!-- Compilation differs for the build pipeline vs local development -->
Expand Down
2 changes: 1 addition & 1 deletion NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<packageSources>
<clear />
<add key="ProjectReunion internal" value="https://microsoft.pkgs.visualstudio.com/ProjectReunion/_packaging/Project.Reunion.nuget.internal/nuget/v3/index.json" />
<add key="WindowsAppSDK Protobuf" value="tools/nuget" />
<add key="WindowsAppSDK Local" value="tools/nuget" />
</packageSources>
<disabledPackageSources>
<clear />
Expand Down
86 changes: 72 additions & 14 deletions TestAll.ps1
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
<#
.SYNOPSIS
Run the TAEF dlls generated by WinAppSDK
Run the WinAppSDK tests

.DESCRIPTION
The TestAll script will take the folder input and look for subfolders containing a .testdef file. WinAppSDK
components define a testdef with the following schema and runs the TAEF dll in the subfolder.
components define a testdef with the following schema and runs the test in the subfolder.

*.testdef are JSON files with the schema per JSON Schema 2020-12 (https://json-schema.org):
{
"$id": "https://microsoft.com/windowsappsdk/schemas/testdef/2023/08",

"type": "object",
"properties": {
"Description": { "type": "string" },
"Type": { "enum": ["TAEF", "Powershell"], "default": "TAEF" },
"Filename": { "type": "string" },
"Parameters": { "type": "string" },
"Architectures": { "type": "array", "items": { "type": "string" } },
"Status": { "enum": ["Enabled", "Disabled"] },
},
"required": ["Description", "Filename", "Architectures", "Status"]
}

Example:
{
"Tests": [
{
"Description": "This module tests the push notifications component in WinAppSDK.",
"Type": "TAEF",
"Filename": "PushNotificationTests.dll",
"Parameters": "",
"Architectures": ["x86", "x64", "arm64"],
Expand Down Expand Up @@ -38,12 +55,16 @@
param(
[Parameter(Mandatory=$true)]
[string]$OutputFolder,

[Parameter(Mandatory=$true)]
[string]$Platform,

[Parameter(Mandatory=$true)]
[string]$Configuration,

[Parameter(Mandatory=$false)]
[Switch]$Test,

[Parameter(Mandatory=$false)]
[Switch]$List
)
Expand All @@ -52,7 +73,7 @@ $StartTime = Get-Date
$lastexitcode = 0
Set-StrictMode -Version 3.0

function Get-TaefTests
function Get-Tests
{
$configPlat = Join-Path $Configuration $Platform
$outputFolderPath = Join-Path $OutputFolder $configPlat
Expand All @@ -66,6 +87,16 @@ function Get-TaefTests
$baseId = $testdef.BaseName
foreach ($testConfig in $testJson.Tests)
{
$testConfig | Write-Host
if ($testConfig -contains 'Type')
{
$testType = $testConfig.Type
}
else
{
$testType = 'TAEF'
}

$id = $baseId + "-Test$count"
$t = [PSCustomObject]@{}
$t | Add-Member -MemberType NoteProperty -Name 'Test' -Value $id
Expand All @@ -75,6 +106,7 @@ function Get-TaefTests
$t | Add-Member -MemberType NoteProperty -Name 'Architectures' -Value $testConfig.Architectures
$t | Add-Member -MemberType NoteProperty -Name 'Status' -Value $testConfig.Status
$t | Add-Member -MemberType NoteProperty -Name 'TestDef' -Value $testdef.FullName
$t | Add-Member -MemberType NoteProperty -Name 'Type' -Value $testType

$tests += $t
$count += 1
Expand All @@ -84,26 +116,52 @@ function Get-TaefTests
$tests
}

function List-TaefTests
function List-Tests
{
$tests = Get-Tests
$tests | Sort-Object -Property Test | Format-Table Test,Description,Type,Filename,Parameters,Architectures,Status -AutoSize | Out-String -Width 512
}

function Run-TaefTest
{
$tests = Get-TaefTests
$tests | Sort-Object -Property Test | Format-Table Test,Description,Filename,Parameters,Architectures,Status -AutoSize | Out-String -Width 512
param($test)

$testFolder = Split-Path -parent $test.TestDef
$tePath = Join-Path $testFolder "te.exe"
$dllFile = Join-Path $testFolder $test.Filename
& $tePath $dllFile $test.Parameters
}

function Run-PowershellTest
{
param($test)

Write-Host "Powershell tests not supported"
}

function Run-TaefTests
function Run-Tests
{
$tests = Get-TaefTests
$tests = Get-Tests
foreach ($test in $tests)
{
Write-Host "$($test.Filename) - $($test.Description)"
$validPlatform = $test.Architectures.Contains($Platform)
$testEnabled = $test.Status -eq "Enabled"
if ($validPlatform -and $testEnabled)
{
$testFolder = Split-Path -parent $test.TestDef
$tePath = Join-Path $testFolder "te.exe"
$dllFile = Join-Path $testFolder $test.Filename
& $tePath $dllFile $test.Parameters
if ($test.Type -eq 'TAEF')
{
Run-TaefTest $test
}
elseif ($test.Type -eq 'Powershell')
{
Run-PowershellTest $test
}
else
{
Write-Host "Unknown test type '$test.Type'. Not running."
Exit 1
}
}
elseif (-not($validPlatform))
{
Expand All @@ -118,12 +176,12 @@ function Run-TaefTests

if ($List -eq $true)
{
$null = List-TaefTests
List-Tests | Out-String
}

if ($Test -eq $true)
{
Run-TaefTests
Run-Tests
}

$TotalTime = (Get-Date)-$StartTime
Expand Down
Binary file added WasdkStrongNameSign.snk
Binary file not shown.
Loading