paulirwin opened a new pull request, #1136: URL: https://github.com/apache/lucenenet/pull/1136
- [X] You've read the [Contributor Guide](https://github.com/apache/lucenenet/blob/main/CONTRIBUTING.md) and [Code of Conduct](https://www.apache.org/foundation/policies/conduct.html). - [ ] You've included unit or integration tests for your change, where applicable. - [ ] You've included inline docs for your change, where applicable. - [ ] There's an open issue for the PR that you are making. If you'd like to propose a change, please [open an issue](https://github.com/apache/lucenenet/issues/new/choose) to discuss the change or find an existing issue. Reduce Powershell build output noise ## Description The Start-Job (and to a lesser degree, New-Item for new directories) cmdlets produce a lot of useless noise to the logs when running tests, when we're already logging the test command being executed. Example (before, paths anonymized): ``` Frameworks To Test for /.../lucene.net/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj: net9.0;net8.0;net6.0 Next Project in Queue: Lucene.Net.Tests.ICU, Framework: net9.0 d---- 3/7/2025 10:06 AM Lucene.Net.Tests.ICU dotnet test /.../lucene.net/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj --configuration Release --framework net9.0 --no-build --no-restore --blame --blame-hang --blame-hang-dump-type mini --blame-hang-timeout 15minutes --results-directory /.../lucene.net/_artifacts/TestResults/net9.0/Lucene.Net.Tests.ICU --logger:"console;verbosity=normal" --logger:"trx;LogFileName=TestResults.trx" -- NUnit.DisplayName=FullName HasMoreData : True StatusMessage : Location : localhost Command : param([string]$testExpression, [string]$testResultDirectory) $testExpression = "$testExpression > '$testResultDirectory/dotnet-test.log' 2> '$testResultDirectory/dotnet-test-error.log'" Invoke-Expression $testExpression JobStateInfo : Running Finished : System.Threading.ManualResetEvent InstanceId : f2a7bd20-808a-4859-8d47-f35ddaefd211 Id : 749 Name : Lucene.Net.Tests.ICU,net9.0 ChildJobs : {Job750} PSBeginTime : 3/7/2025 10:06:08 AM PSEndTime : PSJobTypeName : BackgroundJob Output : {} Error : {} Progress : {} Verbose : {} Debug : {} Warning : {} Information : {} State : Running ``` After piping the output of Start-Job and New-Item to Out-Null: ``` Frameworks To Test for /.../lucene.net/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj: net9.0;net8.0;net6.0 Next Project in Queue: Lucene.Net.Tests.ICU, Framework: net9.0 dotnet test /.../lucene.net/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj --configuration Release --framework net9.0 --no-build --no-restore --blame --blame-hang --blame-hang-dump-type mini --blame-hang-timeout 15minutes --results-directory /.../lucene.net/_artifacts/TestResults/net9.0/Lucene.Net.Tests.ICU --logger:"console;verbosity=normal" --logger:"trx;LogFileName=TestResults.trx" -- NUnit.DisplayName=FullName Next Project in Queue: Lucene.Net.Tests.ICU, Framework: net8.0 ... ``` This should help reduce build log noise, while still retaining the important information including which project and framework is being tested, and the `dotnet test` command being executed. This might even speed up our ADO builds a little. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org