From e0f075bf4516e547ed1a742b9b9522f093597904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Fri, 24 Apr 2026 09:51:55 +0000 Subject: [PATCH 1/4] Trigger browser library tests on WebAssembly.Pack targets changes Remove src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/* from the wasm_specific_except_wbt_dbg exclude list so that changes to Microsoft.NET.Sdk.WebAssembly.Browser.targets (and other files in that directory) properly trigger browser library tests in CI. Also fix a YAML multi-line formatting bug where src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/ Sdk/WorkloadTesting.Core.targets was a continuation of the previous list item instead of its own entry in the exclude list. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/pipelines/common/evaluate-default-paths.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/eng/pipelines/common/evaluate-default-paths.yml b/eng/pipelines/common/evaluate-default-paths.yml index b1b424a61a1d1f..b6d750dfad0b5a 100644 --- a/eng/pipelines/common/evaluate-default-paths.yml +++ b/eng/pipelines/common/evaluate-default-paths.yml @@ -323,7 +323,7 @@ jobs: exclude: - eng/testing/scenarios/BuildWasiAppsJobsList.txt - eng/testing/scenarios/BuildWasmAppsJobsList.txt - src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets + - src/mono/nuget/Microsoft.NET.Runtime.WorkloadTesting.Internal/Sdk/WorkloadTesting.Core.targets - eng/testing/workloads-browser.targets - eng/testing/workloads-testing.targets - eng/testing/workloads-wasi.targets @@ -339,7 +339,6 @@ jobs: - src/mono/wasi/testassets/* - src/mono/wasi/Wasi.Build.Tests/* - src/mono/nuget/Microsoft.NET.Runtime* - src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/* - src/mono/nuget/Microsoft.NET.Workload* - src/mono/nuget/Microsoft.NETCore.BrowserDebugHost.Transport/* - ${{ parameters._const_paths._always_exclude }} From c42fd23408348e33d87105822e92bd950d86e4bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Fri, 24 Apr 2026 10:56:39 +0000 Subject: [PATCH 2/4] Test: trigger CI browser library tests on targets file change Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../build/Microsoft.NET.Sdk.WebAssembly.Browser.targets | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets index 52d869fca3df6a..4636e3db4356e6 100644 --- a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets +++ b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets @@ -10,6 +10,7 @@ Copyright (c) .NET Foundation. All rights reserved. *********************************************************************************************** --> + <_UseBlazorDevServer>$(RunArguments.Contains('blazor-devserver.dll').ToString().ToLower()) From 76f3a767fa3114cc4333204ecab4f8bda5864a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Fri, 24 Apr 2026 12:23:28 +0000 Subject: [PATCH 3/4] Test: trigger CI browser library tests on task source change Revert the targets file change and add a comment to GenerateWasmBootJson.cs to verify task source changes also trigger browser library tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../build/Microsoft.NET.Sdk.WebAssembly.Browser.targets | 1 - .../GenerateWasmBootJson.cs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets index 4636e3db4356e6..52d869fca3df6a 100644 --- a/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets +++ b/src/mono/nuget/Microsoft.NET.Sdk.WebAssembly.Pack/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets @@ -10,7 +10,6 @@ Copyright (c) .NET Foundation. All rights reserved. *********************************************************************************************** --> - <_UseBlazorDevServer>$(RunArguments.Contains('blazor-devserver.dll').ToString().ToLower()) diff --git a/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs b/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs index 10db512a75d914..fe27c10b88bb46 100644 --- a/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs +++ b/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs @@ -1,5 +1,6 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. +// Test: verify CI triggers browser library tests on task source change using System; using System.Collections.Generic; From 6f661143271049fa7a3814ddbc4bf89ba9d8bc12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Fri, 24 Apr 2026 12:35:42 +0000 Subject: [PATCH 4/4] Revert test comment in GenerateWasmBootJson.cs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../GenerateWasmBootJson.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs b/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs index fe27c10b88bb46..10db512a75d914 100644 --- a/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs +++ b/src/tasks/Microsoft.NET.Sdk.WebAssembly.Pack.Tasks/GenerateWasmBootJson.cs @@ -1,6 +1,5 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. -// Test: verify CI triggers browser library tests on task source change using System; using System.Collections.Generic;