-
Notifications
You must be signed in to change notification settings - Fork 107
Enable CFSClean* policies for dotnet-crank-ci-official pipeline #873
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,7 +68,7 @@ public class Startup | |
| private static readonly string _dotnetInstallShUrl = "https://dot.net/v1/dotnet-install.sh"; | ||
| private static readonly string _dotnetInstallPs1Url = "https://dot.net/v1/dotnet-install.ps1"; | ||
| private static readonly string _perfviewUrl = $"https://github.com/Microsoft/perfview/releases/download/{PerfViewVersion}/PerfView.exe"; | ||
| private static readonly string _ultraUrl = $"https://www.nuget.org/api/v2/package/ultra/{UltraVersion}"; | ||
| private static readonly string _ultraUrl = $"https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/flat2/ultra/{UltraVersion}/ultra.{UltraVersion}.nupkg"; | ||
LoopedBard3 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| private static readonly string _aspnet8FlatContainerUrl = "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/flat2/Microsoft.AspNetCore.App.Runtime.linux-x64/index.json"; | ||
| private static readonly string _aspnet9FlatContainerUrl = "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/flat2/Microsoft.AspNetCore.App.Runtime.linux-x64/index.json"; | ||
|
|
@@ -4156,7 +4156,9 @@ internal static void PatchNuGetConfig(string benchmarkedApp) | |
| configPath = Path.Combine(benchmarkedApp, "NuGet.config"); | ||
| doc = new XDocument( | ||
| new XElement("configuration", | ||
| new XElement("packageSources") | ||
| new XElement("packageSources", | ||
| new XElement("clear") | ||
| ) | ||
|
Comment on lines
+4159
to
+4161
|
||
| ) | ||
| ); | ||
| Log.Info($"Creating new NuGet.config at {configPath}"); | ||
|
|
@@ -4177,6 +4179,12 @@ internal static void PatchNuGetConfig(string benchmarkedApp) | |
| root.Add(packageSources); | ||
| } | ||
|
|
||
| // Ensure <clear /> is present to prevent inheriting nuget.org from machine/user-level configs | ||
| if (packageSources.Element("clear") == null) | ||
| { | ||
| packageSources.AddFirst(new XElement("clear")); | ||
| } | ||
|
|
||
| // Track which source keys we actually add (for packageSourceMapping) | ||
| var addedSourceKeys = new List<string>(); | ||
|
|
||
|
|
@@ -6376,6 +6384,7 @@ public static async Task EnsureDotnetInstallExistsAsync() | |
| File.WriteAllText(rootNugetConfig, @"<?xml version=""1.0"" encoding=""utf-8""?> | ||
| <configuration> | ||
| <packageSources> | ||
| <clear /> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should be fine since this is added to the root folder
LoopedBard3 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <add key=""dotnet11"" value=""https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11/nuget/v3/index.json"" /> | ||
| <add key=""dotnet11-transport"" value=""https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet11-transport/nuget/v3/index.json"" /> | ||
| <add key=""dotnet10"" value=""https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet10/nuget/v3/index.json"" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,7 +16,7 @@ namespace Microsoft.Crank.Controller | |
| public static class VersionChecker | ||
| { | ||
| static TimeSpan CacheTimeout = TimeSpan.FromDays(1); | ||
| static string PackageVersionUrl = "https://api.nuget.org/v3-flatcontainer/microsoft.crank.controller/index.json"; | ||
| static string PackageVersionUrl = "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/flat2/microsoft.crank.controller/index.json"; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The dotnet tool which is installed from nuget.org is checking the nuget feed for new versions in order to display a warning. Should we care here?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it's installed from nuget.org...wouldn't there not ever be a newer package anyway? |
||
|
|
||
| public static async Task CheckUpdateAsync(HttpClient client) | ||
| { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.