Skip to content

Commit ed5b721

Browse files
authored
Merge pull request #16986 from dotnet-maestro-bot/merge/release/3.1-to-master
[automated] Merge branch 'release/3.1' => 'master'
2 parents 72079b2 + f8ed118 commit ed5b721

File tree

10 files changed

+29
-14
lines changed

10 files changed

+29
-14
lines changed

.azure/pipelines/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ stages:
703703
publishInstallersAndChecksums: true
704704
# This is to enable SDL runs part of Post-Build Validation Stage
705705
SDLValidationParameters:
706-
enable: true
706+
enable: false
707707
continueOnError: false
708708
params: ' -SourceToolsList @("policheck","credscan")
709709
-TsaInstanceURL $(_TsaInstanceURL)

.azure/pipelines/jobs/default-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ parameters:
5858
installTar: true
5959
installNodeJs: true
6060
installJdk: true
61-
timeoutInMinutes: 180
61+
timeoutInMinutes: 270
6262

6363
# We need longer than the default amount of 5 minutes to upload our logs/artifacts. (We currently take around 5 mins in the best case).
6464
# This makes sure we have time to upload everything in the case of a build timeout - really important for investigating a build

src/Components/test/testassets/BasicTestApp/ErrorComponent.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
void IncrementCount()
1212
{
1313
currentCount++;
14-
throw new NotImplementedException("Doing crazy things!");
14+
throw new NotImplementedException("Doing something that won't work!");
1515
}
1616
}

src/Features/JsonPatch/test/Internal/ObjectVisitorTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ private class Class1
1414
{
1515
public string Name { get; set; }
1616
public IList<string> States { get; set; } = new List<string>();
17-
public IDictionary<string, string> Countries = new Dictionary<string, string>();
17+
public IDictionary<string, string> CountriesAndRegions = new Dictionary<string, string>();
1818
public dynamic Items { get; set; } = new ExpandoObject();
1919
}
2020

@@ -62,14 +62,14 @@ public static IEnumerable<object[]> ReturnsDictionaryAdapterData
6262
get
6363
{
6464
var model = new Class1();
65-
yield return new object[] { model, "/Countries/USA", model.Countries };
66-
yield return new object[] { model.Countries, "/USA", model.Countries };
65+
yield return new object[] { model, "/CountriesAndRegions/USA", model.CountriesAndRegions };
66+
yield return new object[] { model.CountriesAndRegions, "/USA", model.CountriesAndRegions };
6767

6868
var nestedModel = new Class1Nested();
6969
nestedModel.Customers.Add(new Class1());
70-
yield return new object[] { nestedModel, "/Customers/0/Countries/USA", nestedModel.Customers[0].Countries };
71-
yield return new object[] { nestedModel.Customers, "/0/Countries/USA", nestedModel.Customers[0].Countries };
72-
yield return new object[] { nestedModel.Customers[0], "/Countries/USA", nestedModel.Customers[0].Countries };
70+
yield return new object[] { nestedModel, "/Customers/0/CountriesAndRegions/USA", nestedModel.Customers[0].CountriesAndRegions };
71+
yield return new object[] { nestedModel.Customers, "/0/CountriesAndRegions/USA", nestedModel.Customers[0].CountriesAndRegions };
72+
yield return new object[] { nestedModel.Customers[0], "/CountriesAndRegions/USA", nestedModel.Customers[0].CountriesAndRegions };
7373
}
7474
}
7575

src/ProjectTemplates/Web.Spa.ProjectTemplates/content/Angular-CSharp/ClientApp/angular.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build": {
1414
"builder": "@angular-devkit/build-angular:browser",
1515
"options": {
16-
"progress": true,
16+
"progress": false,
1717
"extractCss": true,
1818
"outputPath": "dist",
1919
"index": "src/index.html",

src/Tools/dotnet-watch/test/DotNetWatcherTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public DotNetWatcherTests(ITestOutputHelper logger)
2222
_app = new KitchenSinkApp(logger);
2323
}
2424

25-
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/16912")]
25+
[ConditionalFact]
26+
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
2627
public async Task RunsWithDotnetWatchEnvVariable()
2728
{
2829
Assert.True(string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_WATCH")), "DOTNET_WATCH cannot be set already when this test is running");

src/Tools/dotnet-watch/test/GlobbingAppTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ public async Task RenameCompiledFile()
8585
await _app.HasRestarted();
8686
}
8787

88-
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/16912")]
88+
[ConditionalFact]
89+
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
8990
public async Task ChangeExcludedFile()
9091
{
9192
await _app.StartWatcherAsync();

src/Tools/dotnet-watch/test/NoDepsAppTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public async Task RestartProcessOnFileChange()
4242
Assert.NotEqual(processIdentifier, processIdentifier2);
4343
}
4444

45-
[Fact(Skip = "https://github.com/aspnet/AspNetCore/issues/16912")]
45+
[ConditionalFact]
46+
[SkipOnHelix("https://github.com/aspnet/AspNetCore/issues/8267")]
4647
public async Task RestartProcessThatTerminatesAfterFileChange()
4748
{
4849
await _app.StartWatcherAsync();

src/Tools/dotnet-watch/test/Scenario/WatchableApp.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Collections.Generic;
66
using System.IO;
77
using System.Linq;
8+
using System.Reflection;
89
using System.Runtime.CompilerServices;
910
using System.Threading.Tasks;
1011
using Microsoft.Extensions.CommandLineUtils;
@@ -88,15 +89,19 @@ public void Start(IEnumerable<string> arguments, [CallerMemberName] string name
8889
};
8990
args.AddRange(arguments);
9091

92+
var dotnetPath = typeof(WatchableApp).Assembly.GetCustomAttributes<AssemblyMetadataAttribute>()
93+
.Single(s => s.Key == "DotnetPath").Value;
94+
9195
var spec = new ProcessSpec
9296
{
93-
Executable = DotNetMuxer.MuxerPathOrDefault(),
97+
Executable = dotnetPath,
9498
Arguments = args,
9599
WorkingDirectory = SourceDirectory,
96100
EnvironmentVariables =
97101
{
98102
["DOTNET_CLI_CONTEXT_VERBOSE"] = bool.TrueString,
99103
["DOTNET_USE_POLLING_FILE_WATCHER"] = UsePollingWatcher.ToString(),
104+
["DOTNET_ROOT"] = Directory.GetParent(dotnetPath).FullName,
100105
},
101106
};
102107

src/Tools/dotnet-watch/test/dotnet-watch.Tests.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@
1717
<ProjectReference Include="..\src\dotnet-watch.csproj" />
1818
</ItemGroup>
1919

20+
<ItemGroup>
21+
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute">
22+
<_Parameter1>DotnetPath</_Parameter1>
23+
<_Parameter2>$(DotNetTool)</_Parameter2>
24+
</AssemblyAttribute>
25+
</ItemGroup>
26+
2027
<Target Name="CleanTestProjects" BeforeTargets="CoreCompile">
2128
<RemoveDir Directories="$(TargetDir)TestProjects" Condition="Exists('$(TargetDir)TestProjects')" />
2229
</Target>

0 commit comments

Comments
 (0)