From c8264bbf17bf0ccc71dc1866c1fa6e859d6801e4 Mon Sep 17 00:00:00 2001 From: Premek Vysoky Date: Tue, 15 Apr 2025 15:07:06 +0200 Subject: [PATCH] Disable VMR synchronization https://github.com/dotnet/arcade-services/issues/3170 --- eng/pipelines/vmr-sync-internal.yml | 3 +- eng/pipelines/vmr-sync.yml | 8 +- src/VirtualMonoRepo/source-mappings.json | 94 +++++++++++++----------- 3 files changed, 61 insertions(+), 44 deletions(-) diff --git a/eng/pipelines/vmr-sync-internal.yml b/eng/pipelines/vmr-sync-internal.yml index ccb19a196bc7..ac6de48d081c 100644 --- a/eng/pipelines/vmr-sync-internal.yml +++ b/eng/pipelines/vmr-sync-internal.yml @@ -4,7 +4,8 @@ trigger: batch: true branches: include: - - internal/release/* + - internal/release/8* + - internal/release/9* exclude: - internal/release/*.0.2xx - internal/release/*.0.3xx diff --git a/eng/pipelines/vmr-sync.yml b/eng/pipelines/vmr-sync.yml index 7de3ef61409e..b705fac94021 100644 --- a/eng/pipelines/vmr-sync.yml +++ b/eng/pipelines/vmr-sync.yml @@ -4,8 +4,12 @@ trigger: batch: true branches: include: - - main - - release/* + - release/8* + - release/9* + - release/10.0.1xx-preview1 + - release/10.0.1xx-preview2 + - release/10.0.1xx-preview3 + - release/10.0.1xx-preview4 exclude: - release/*.0.2xx - release/*.0.3xx diff --git a/src/VirtualMonoRepo/source-mappings.json b/src/VirtualMonoRepo/source-mappings.json index 3c486bcab22d..6ee614c06dde 100644 --- a/src/VirtualMonoRepo/source-mappings.json +++ b/src/VirtualMonoRepo/source-mappings.json @@ -18,20 +18,7 @@ // Some files are copied outside of the src/ directory into other locations // When files in the source paths are changed, they are automatically synchronized too - "additionalMappings": [ - { - "source": "src/sdk/src/SourceBuild/content", - "destination": "" - }, - { - "source": "src/sdk/eng/common", - "destination": "eng/common" - }, - { - "source": "src/sdk/src/VirtualMonoRepo/source-mappings.json", - "destination": "src" - } - ], + "additionalMappings": [ /* These are not supported with the flat flow anymore */], // These defaults are added to all mappings unless `ignoreDefaults: true` is specified // When no "include" filter is specified, "**/*" is used @@ -42,10 +29,13 @@ }, // Each of these mappings has a corresponding folder in the src/ directory + // We set disableSynchronization to true for all of them to be sure the old one-way synchronization does not happen + // This setting does not affect the code flow subscriptions "mappings": [ { "name": "arcade", - "defaultRemote": "https://github.com/dotnet/arcade" + "defaultRemote": "https://github.com/dotnet/arcade", + "disableSynchronization": true }, { "name": "aspire", @@ -54,65 +44,78 @@ "src/Aspire.Dashboard/**/*", "samples/**/*" ], - // Aspire no longer flows/changes, we only keep it for the workload manifest generation "disableSynchronization": true }, { "name": "aspnetcore", - "defaultRemote": "https://github.com/dotnet/aspnetcore" + "defaultRemote": "https://github.com/dotnet/aspnetcore", + "disableSynchronization": true }, { "name": "cecil", - "defaultRemote": "https://github.com/dotnet/cecil" + "defaultRemote": "https://github.com/dotnet/cecil", + "disableSynchronization": true }, { "name": "command-line-api", - "defaultRemote": "https://github.com/dotnet/command-line-api" + "defaultRemote": "https://github.com/dotnet/command-line-api", + "disableSynchronization": true }, { "name": "deployment-tools", - "defaultRemote": "https://github.com/dotnet/deployment-tools" + "defaultRemote": "https://github.com/dotnet/deployment-tools", + "disableSynchronization": true }, { "name": "diagnostics", - "defaultRemote": "https://github.com/dotnet/diagnostics" + "defaultRemote": "https://github.com/dotnet/diagnostics", + "disableSynchronization": true }, { "name": "efcore", - "defaultRemote": "https://github.com/dotnet/efcore" + "defaultRemote": "https://github.com/dotnet/efcore", + "disableSynchronization": true }, { "name": "emsdk", - "defaultRemote": "https://github.com/dotnet/emsdk" + "defaultRemote": "https://github.com/dotnet/emsdk", + "disableSynchronization": true }, { "name": "fsharp", - "defaultRemote": "https://github.com/dotnet/fsharp" + "defaultRemote": "https://github.com/dotnet/fsharp", + "disableSynchronization": true }, { "name": "msbuild", - "defaultRemote": "https://github.com/dotnet/msbuild" + "defaultRemote": "https://github.com/dotnet/msbuild", + "disableSynchronization": true }, { "name": "nuget-client", "defaultRemote": "https://github.com/NuGet/NuGet.Client", - "defaultRef": "dev" + "defaultRef": "dev", + "disableSynchronization": true }, { "name": "razor", - "defaultRemote": "https://github.com/dotnet/razor" + "defaultRemote": "https://github.com/dotnet/razor", + "disableSynchronization": true }, { "name": "roslyn", - "defaultRemote": "https://github.com/dotnet/roslyn" + "defaultRemote": "https://github.com/dotnet/roslyn", + "disableSynchronization": true }, { "name": "roslyn-analyzers", - "defaultRemote": "https://github.com/dotnet/roslyn-analyzers" + "defaultRemote": "https://github.com/dotnet/roslyn-analyzers", + "disableSynchronization": true }, { "name": "runtime", - "defaultRemote": "https://github.com/dotnet/runtime" + "defaultRemote": "https://github.com/dotnet/runtime", + "disableSynchronization": true }, { "name": "scenario-tests", @@ -126,7 +129,8 @@ "exclude": [ // Exclude the VMR content as this is copied to the root of VMR via the synchronization process. "src/SourceBuild/content/**/*" - ] + ], + "disableSynchronization": true }, { "name": "source-build-externals", @@ -142,25 +146,28 @@ "src/spectre-console/NuGet.Config", "src/spectre-console/examples/Console/Canvas/Mandelbrot.cs", "src/xunit/NuGet.Config" - ] + ], + "disableSynchronization": true }, { "name": "source-build-reference-packages", - "defaultRemote": "https://github.com/dotnet/source-build-reference-packages" + "defaultRemote": "https://github.com/dotnet/source-build-reference-packages", + "disableSynchronization": true }, { "name": "sourcelink", "defaultRemote": "https://github.com/dotnet/sourcelink", - // Migrated onto the flat flow "disableSynchronization": true }, { "name": "symreader", - "defaultRemote": "https://github.com/dotnet/symreader" + "defaultRemote": "https://github.com/dotnet/symreader", + "disableSynchronization": true }, { "name": "templating", - "defaultRemote": "https://github.com/dotnet/templating" + "defaultRemote": "https://github.com/dotnet/templating", + "disableSynchronization": true }, { "name": "vstest", @@ -170,11 +177,13 @@ // Non-OSS license - https://github.com/dotnet/source-build/issues/4255 "src/package/licenses/LICENSE_VS.txt", "test/Microsoft.TestPlatform.CoreUtilities.UnitTests/TestAssets/dotnetWinX86.exe" - ] + ], + "disableSynchronization": true }, { "name": "xdt", - "defaultRemote": "https://github.com/dotnet/xdt" + "defaultRemote": "https://github.com/dotnet/xdt", + "disableSynchronization": true }, { // TODO: Remove the xliff-tasks mapping once the synchronization flags it as unused @@ -196,15 +205,18 @@ "src/test/integration/DesignSurface/**/*.ico", "src/test/integration/DesignSurface/**/*.resx", "src/test/integration/DesignSurface/THIRD-PARTY-NOTICE.txt" - ] + ], + "disableSynchronization": true }, { "name": "wpf", - "defaultRemote": "https://github.com/dotnet/wpf" + "defaultRemote": "https://github.com/dotnet/wpf", + "disableSynchronization": true }, { "name": "windowsdesktop", - "defaultRemote": "https://github.com/dotnet/windowsdesktop" + "defaultRemote": "https://github.com/dotnet/windowsdesktop", + "disableSynchronization": true } ] }