From 743aea0eb218fc07a025e74f483b741a471413c5 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Tue, 12 Mar 2024 21:32:24 -0600 Subject: [PATCH 01/24] Upgrade tests and CLI to .NET 8, fix benchmark formatting issue --- ...publish-test-results-for-test-projects.yml | 12 ++-- .idea/.idea.Lucene.Net/.idea/.gitignore | 2 + Directory.Build.targets | 66 ++++++++++--------- TestTargetFramework.props | 15 +++-- azure-pipelines.yml | 40 +++++------ src/Lucene.Net.Analysis.OpenNLP/overview.md | 4 +- .../ByTask/Utils/Format.cs | 8 +-- .../Lucene.Net.Replicator.csproj | 4 +- .../Lucene.Net.Tests.AllProjects.csproj | 4 +- .../Lucene.Net.Tests.Analysis.OpenNLP.csproj | 6 +- .../Lucene.Net.Tests.Cli.csproj | 6 +- src/dotnet/tools/lucene-cli/.gitignore | 2 + src/dotnet/tools/lucene-cli/lucene-cli.csproj | 8 +-- 13 files changed, 94 insertions(+), 83 deletions(-) create mode 100644 src/dotnet/tools/lucene-cli/.gitignore diff --git a/.build/azure-templates/publish-test-results-for-test-projects.yml b/.build/azure-templates/publish-test-results-for-test-projects.yml index 11ebac78fb..a113396c0e 100644 --- a/.build/azure-templates/publish-test-results-for-test-projects.yml +++ b/.build/azure-templates/publish-test-results-for-test-projects.yml @@ -5,9 +5,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing,-with-title # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -81,11 +81,11 @@ steps: testResultsArtifactName: '${{ parameters.testResultsArtifactName }}' testResultsFileName: '${{ parameters.testResultsFileName }}' -# Special case: Only supports net7.0 and net6.0 +# Special case: Only supports net8.0 and net6.0 - template: publish-test-results.yml parameters: testProjectName: 'Lucene.Net.Tests.Cli' - framework: 'net7.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml + framework: 'net8.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml vsTestPlatform: '${{ parameters.vsTestPlatform }}' osName: '${{ parameters.osName }}' testResultsFormat: '${{ parameters.testResultsFormat }}' @@ -102,12 +102,12 @@ steps: testResultsArtifactName: '${{ parameters.testResultsArtifactName }}' testResultsFileName: '${{ parameters.testResultsFileName }}' -# Special case: Only supports net7.0, net6.0 and net48 +# Special case: Only supports net8.0, net6.0 and net48 - template: publish-test-results.yml parameters: testProjectName: 'Lucene.Net.Tests.Analysis.OpenNLP' - framework: 'net7.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml + framework: 'net8.0' # Since condtions are not supported for templates, we check for the file existence within publish-test-results.yml vsTestPlatform: '${{ parameters.vsTestPlatform }}' osName: '${{ parameters.osName }}' testResultsFormat: '${{ parameters.testResultsFormat }}' diff --git a/.idea/.idea.Lucene.Net/.idea/.gitignore b/.idea/.idea.Lucene.Net/.idea/.gitignore index e4c6e33706..77961c0be9 100644 --- a/.idea/.idea.Lucene.Net/.idea/.gitignore +++ b/.idea/.idea.Lucene.Net/.idea/.gitignore @@ -11,3 +11,5 @@ # Datasource local storage ignored files /dataSources/ /dataSources.local.xml +# GitHub Copilot persisted chat sessions +/copilot/chatSessions diff --git a/Directory.Build.targets b/Directory.Build.targets index 042d188449..df4827092b 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -22,24 +22,24 @@ - - + + $(DefineConstants);FEATURE_SPANFORMATTABLE $(DefineConstants);FEATURE_RANDOM_NEXTINT64_NEXTSINGLE - - + + $(DefineConstants);FEATURE_ASPNETCORE_ENDPOINT_CONFIG $(DefineConstants);FEATURE_READONLYSET - - - + + + $(DefineConstants);FEATURE_ARGITERATOR $(DefineConstants);FEATURE_DICTIONARY_REMOVE_CONTINUEENUMERATION @@ -47,20 +47,20 @@ $(DefineConstants);FEATURE_STRING_CONCAT_READONLYSPAN - - - - + + + + $(DefineConstants);NETSTANDARD $(DefineConstants);FEATURE_ARRAYEMPTY $(DefineConstants);FEATURE_CULTUREINFO_CURRENTCULTURE_SETTER $(DefineConstants);FEATURE_ENCODINGPROVIDERS - + portable - - + + $(DefineConstants);FEATURE_ARRAY_FILL $(DefineConstants);FEATURE_CONDITIONALWEAKTABLE_ENUMERATOR @@ -71,26 +71,32 @@ - - + + $(DefineConstants);FEATURE_ICONFIGURATIONROOT_PROVIDERS - - + + $(DefineConstants);FEATURE_ASSEMBLY_GETCALLINGASSEMBLY $(DefineConstants);FEATURE_FILESTREAM_LOCK - $(DefineConstants);FEATURE_SERIALIZABLE - $(DefineConstants);FEATURE_SERIALIZABLE_EXCEPTIONS $(DefineConstants);FEATURE_TEXTWRITER_CLOSE $(DefineConstants);FEATURE_THREADPOOL_UNSAFEQUEUEWORKITEM $(DefineConstants);FEATURE_TYPE_GETMETHOD__BINDINGFLAGS_PARAMS + + + + $(DefineConstants);FEATURE_SERIALIZABLE + $(DefineConstants);FEATURE_SERIALIZABLE_EXCEPTIONS + + + @@ -102,14 +108,14 @@ - + $(DefineConstants);FEATURE_ICONFIGURATIONROOT_PROVIDERS - + - + $(DefineConstants);FEATURE_ARRAYEMPTY @@ -125,21 +131,21 @@ $(DefineConstants);FEATURE_MEMORYMAPPEDFILESECURITY $(DefineConstants);FEATURE_STACKOVERFLOWEXCEPTION__ISCATCHABLE $(DefineConstants);FEATURE_TEXTWRITER_CREATEOBJREF - + full - + $(DefineConstants);FEATURE_OPENNLP - + - portable @@ -183,13 +189,13 @@ - + - + @@ -201,4 +207,4 @@ - \ No newline at end of file + diff --git a/TestTargetFramework.props b/TestTargetFramework.props index ad02d3bf56..0e499e9667 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -30,22 +30,23 @@ - net7.0 + + net8.0 - - net7.0;net6.0;net5.0 + + net8.0;net6.0;net5.0 $(TargetFrameworks);net48;net461 @@ -66,7 +67,7 @@ false - + $(NoWarn);CA1034 $(NoWarn);CA1802 $(NoWarn);CA1806 @@ -90,5 +91,5 @@ $(NoWarn);S2699 - + diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 513b30aca9..84de7f7162 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -5,9 +5,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -63,7 +63,7 @@ variables: - name: WebsiteArtifactName value: 'website' - name: WebsiteArtifactZipFileName - value: 'website.zip' + value: 'website.zip' - name: BinaryArtifactName value: 'testbinaries' - name: NuGetArtifactName @@ -105,7 +105,7 @@ stages: PublishTempDirectory: '$(Build.ArtifactStagingDirectory)/publish' steps: - + - checkout: self # self represents the repo where the initial Pipelines YAML file was found fetchDepth: '1' # the depth of commits to ask Git to fetch @@ -144,7 +144,7 @@ stages: displayName: 'PSake Build, Pack, and Publish' #- template: '.build/azure-templates/show-all-environment-variables.yml' # Uncomment for debugging - + - pwsh: | $dir = '$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)' if (!(Test-Path $dir)) { New-Item -ItemType Directory -Path "$dir" -Force } @@ -195,15 +195,15 @@ stages: version.props TargetFolder: '$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)' condition: and(succeeded(), eq(variables['IsRelease'], 'true')) - + - task: PublishPipelineArtifact@1 displayName: 'Publish Artifact: $(VersionArtifactName)' inputs: targetPath: '$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)' artifact: '$(VersionArtifactName)' publishLocation: 'pipeline' - - # Copy the .pdb files as build artifacts, which will + + # Copy the .pdb files as build artifacts, which will # later be used to push to the Azure Artifacts symbol server. - task: CopyFiles@2 displayName: 'Copy .pdb Files to: /$(DebugArtifactName)' @@ -220,7 +220,7 @@ stages: artifact: '$(NuGetArtifactName)' publishLocation: 'pipeline' condition: and(succeeded(), ne(variables['RunPack'], 'false')) - + - task: PublishPipelineArtifact@1 displayName: 'Publish Artifact: $(DebugArtifactName)' inputs: @@ -232,7 +232,7 @@ stages: - template: '.build/azure-templates/publish-test-binaries.yml' parameters: publishDirectory: $(PublishTempDirectory) - framework: 'net7.0' + framework: 'net8.0' binaryArtifactName: '$(BinaryArtifactName)' testSettingsFilePath: '$(Build.ArtifactStagingDirectory)/$(TestSettingsFileName)' @@ -263,7 +263,7 @@ stages: framework: 'net48' binaryArtifactName: '$(BinaryArtifactName)' testSettingsFilePath: '$(Build.ArtifactStagingDirectory)/$(TestSettingsFileName)' - + - job: Docs condition: and(succeeded(), eq(variables['GenerateDocs'], 'true')) pool: @@ -325,7 +325,7 @@ stages: displayName: 'Test Stage:' jobs: - - job: Test_net7_0_x64 + - job: Test_net8_0_x64 condition: and(succeeded(), ne(variables['RunTests'], 'false')) strategy: matrix: @@ -344,14 +344,14 @@ stages: imageName: 'macOS-latest' maximumParallelJobs: 7 maximumAllowedFailures: 0 # Maximum allowed failures for a successful build - displayName: 'Test net7.0,x64 on' + displayName: 'Test net8.0,x64 on' pool: vmImage: $(imageName) steps: - template: '.build/azure-templates/run-tests-on-os.yml' parameters: osName: $(osName) - framework: 'net7.0' + framework: 'net8.0' vsTestPlatform: 'x64' testBinariesArtifactName: '$(TestBinariesArtifactName)' nugetArtifactName: '$(NuGetArtifactName)' @@ -360,7 +360,7 @@ stages: maximumAllowedFailures: $(maximumAllowedFailures) dotNetSdkVersion: '$(DotNetSDKVersion)' - - job: Test_net7_0_x86 # Only run Nightly or if explicitly enabled with RunX86Tests + - job: Test_net8_0_x86 # Only run Nightly or if explicitly enabled with RunX86Tests condition: and(succeeded(), ne(variables['RunTests'], 'false'), or(eq(variables['IsNightly'], 'true'), eq(variables['RunX86Tests'], 'true'))) strategy: matrix: @@ -369,14 +369,14 @@ stages: imageName: 'windows-latest' maximumParallelJobs: 8 maximumAllowedFailures: 0 # Maximum allowed failures for a successful build - displayName: 'Test net7.0,x86 on' + displayName: 'Test net8.0,x86 on' pool: vmImage: $(imageName) steps: - template: '.build/azure-templates/run-tests-on-os.yml' parameters: osName: $(osName) - framework: 'net7.0' + framework: 'net8.0' vsTestPlatform: 'x86' testBinariesArtifactName: '$(TestBinariesArtifactName)' nugetArtifactName: '$(NuGetArtifactName)' @@ -617,7 +617,7 @@ stages: targetPath: '$(System.DefaultWorkingDirectory)/$(VersionArtifactName)' # For debugging this pipeline - #- pwsh: | + #- pwsh: | # Get-ChildItem -Path $(System.DefaultWorkingDirectory) # Get-ChildItem -Path '$(VersionArtifactName)' @@ -665,7 +665,7 @@ stages: inputs: artifactName: '$(VersionArtifactName)' targetPath: '$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)' - + - template: '.build/azure-templates/show-all-files.yml' # Uncomment for debugging # NOTE: We are setting Build.BuildNumber here to the NuGet package version to work around the limitation that @@ -744,4 +744,4 @@ stages: inputs: targetPath: '$(Build.ArtifactStagingDirectory)/$(ReleaseArtifactName)' artifact: '$(ReleaseArtifactName)' - publishLocation: 'pipeline' \ No newline at end of file + publishLocation: 'pipeline' diff --git a/src/Lucene.Net.Analysis.OpenNLP/overview.md b/src/Lucene.Net.Analysis.OpenNLP/overview.md index 882ddff08c..1667c7f52e 100644 --- a/src/Lucene.Net.Analysis.OpenNLP/overview.md +++ b/src/Lucene.Net.Analysis.OpenNLP/overview.md @@ -57,7 +57,7 @@ Here's a basic outline of how you might extend an existing Lucene.NET analyzer t ```xml - net7.0 + net8.0 @@ -119,4 +119,4 @@ In the above example, `CustomOpenNLPAnalyzer` extends `OpenNLPTokenizerFactory` > [!NOTE] > IKVM (and ``) does not support Java SE higher than version 8. So it will not be possible to add a `` to OpenNLP 2.x until support is added for it in IKVM. -For a more complete example, see the [lucenenet-opennlp-mavenreference-demo](https://github.com/NightOwl888/lucenenet-opennlp-mavenreference-demo). \ No newline at end of file +For a more complete example, see the [lucenenet-opennlp-mavenreference-demo](https://github.com/NightOwl888/lucenenet-opennlp-mavenreference-demo). diff --git a/src/Lucene.Net.Benchmark/ByTask/Utils/Format.cs b/src/Lucene.Net.Benchmark/ByTask/Utils/Format.cs index e9903df490..4161488f76 100644 --- a/src/Lucene.Net.Benchmark/ByTask/Utils/Format.cs +++ b/src/Lucene.Net.Benchmark/ByTask/Utils/Format.cs @@ -25,15 +25,15 @@ namespace Lucene.Net.Benchmarks.ByTask.Utils public static class Formatter // LUCENENET specific - renamed from Format because of method name collision, CA1052 Static holder types should be Static or NotInheritable { private static readonly string[] numFormat = { - "N0", - "N1", - "N2" + "{0:N0}", + "{0:N1}", + "{0:N2}" }; private const string padd = " "; /// - /// Padd a number from left. + /// Pad a number from left. /// /// Number of digits in fraction part - must be 0 or 1 or 2. /// Number to be formatted. diff --git a/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj b/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj index d584846dd7..9d721ac034 100644 --- a/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj +++ b/src/Lucene.Net.Replicator/Lucene.Net.Replicator.csproj @@ -28,7 +28,7 @@ - + net6.0;netstandard2.1;netstandard2.0;net462 @@ -38,7 +38,7 @@ $(NoWarn);1591;1573 - + diff --git a/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj b/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj index 92056ba0ab..8e92713782 100644 --- a/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj +++ b/src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj @@ -33,7 +33,7 @@ - + $(SetTargetFramework) @@ -118,7 +118,7 @@ - + diff --git a/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj b/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj index d880584623..d68830caeb 100644 --- a/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj +++ b/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj @@ -25,9 +25,9 @@ - net7.0;net6.0 + net8.0;net6.0 $(TargetFrameworks);net48 - + Lucene.Net.Tests.Analysis.OpenNLP Lucene.Net.Analysis.OpenNlp @@ -37,7 +37,7 @@ false false - net7.0 + net8.0 net48 diff --git a/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj b/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj index 9e9a0105ae..012c8326ee 100644 --- a/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj +++ b/src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj @@ -18,14 +18,14 @@ specific language governing permissions and limitations under the License. ---> +--> - net7.0;net6.0 + net8.0;net6.0 Lucene.Net.Tests.Cli @@ -34,7 +34,7 @@ false false - net7.0 + net8.0 diff --git a/src/dotnet/tools/lucene-cli/.gitignore b/src/dotnet/tools/lucene-cli/.gitignore new file mode 100644 index 0000000000..49fa42319a --- /dev/null +++ b/src/dotnet/tools/lucene-cli/.gitignore @@ -0,0 +1,2 @@ +work/ + diff --git a/src/dotnet/tools/lucene-cli/lucene-cli.csproj b/src/dotnet/tools/lucene-cli/lucene-cli.csproj index a648450719..21b398da86 100644 --- a/src/dotnet/tools/lucene-cli/lucene-cli.csproj +++ b/src/dotnet/tools/lucene-cli/lucene-cli.csproj @@ -24,14 +24,14 @@ - net7.0;net6.0 - Major + net8.0;net6.0 + Major true false true lucene - + lucene-cli Exe lucene-cli @@ -39,7 +39,7 @@ $(PackageTags);maintenance;utility readme.md bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml - + $(NoWarn);1591;1573 $(NoWarn);CA1034 $(NoWarn);IDE0060 From 813ecd0c3aa08d54219e1e5925c6f486428ce367 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Tue, 12 Mar 2024 21:45:25 -0600 Subject: [PATCH 02/24] Upgrade GitHub actions tests to net8.0 --- .github/workflows/Generate-TestWorkflows.ps1 | 30 +++++++++---------- .../Lucene-Net-Tests-AllProjects.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-Common.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-Kuromoji.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-Morfologik.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-OpenNLP.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-Phonetic.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-SmartCn.yml | 6 ++-- .../Lucene-Net-Tests-Analysis-Stempel.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Benchmark.yml | 6 ++-- .../Lucene-Net-Tests-Classification.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Cli.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Codecs.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Demo.yml | 6 ++-- .../Lucene-Net-Tests-Expressions.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Facet.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Grouping.yml | 6 ++-- .../Lucene-Net-Tests-Highlighter.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-ICU.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Join.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Memory.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-Misc.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Queries.yml | 6 ++-- .../Lucene-Net-Tests-QueryParser.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Replicator.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Sandbox.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Spatial.yml | 6 ++-- .../workflows/Lucene-Net-Tests-Suggest.yml | 6 ++-- ...ests-TestFramework-DependencyInjection.yml | 6 ++-- .../Lucene-Net-Tests-TestFramework.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-_A-D.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-_E-I.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-_I-J.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-_J-S.yml | 6 ++-- .github/workflows/Lucene-Net-Tests-_T-Z.yml | 6 ++-- 35 files changed, 117 insertions(+), 117 deletions(-) diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1 index ef18995db1..9534f8c6d4 100644 --- a/.github/workflows/Generate-TestWorkflows.ps1 +++ b/.github/workflows/Generate-TestWorkflows.ps1 @@ -51,9 +51,9 @@ .PARAMETER Configurations A string array of build configurations to run the tests on. The default is @('Release'). - .PARAMETER DotNet7SDKVersion - The SDK version of .NET 7.x to install on the build agent to be used for building and - testing. This SDK is always installed on the build agent. The default is 7.0.100. + .PARAMETER DotNet8SDKVersion + The SDK version of .NET 8.x to install on the build agent to be used for building and + testing. This SDK is always installed on the build agent. The default is 8.0.202. .PARAMETER DotNet6SDKVersion The SDK version of .NET 6.x to install on the build agent to be used for building and @@ -68,7 +68,7 @@ param( [string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)), - [string[]]$TestFrameworks = @('net7.0', 'net5.0','net461','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net462 + [string[]]$TestFrameworks = @('net8.0', 'net5.0','net461','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net462 [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'), @@ -76,7 +76,7 @@ param( [string[]]$Configurations = @('Release'), - [string]$DotNet7SDKVersion = '7.0.100', + [string]$DotNet8SDKVersion = '8.0.202', [string]$DotNet6SDKVersion = '6.0.403', @@ -160,7 +160,7 @@ function Write-TestWorkflow( [string[]]$TestFrameworks = @('net5.0', 'net48'), [string[]]$TestPlatforms = @('x64'), [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest', 'macos-latest'), - [string]$DotNet7SDKVersion = $DotNet7SDKVersion, + [string]$DotNet8SDKVersion = $DotNet8SDKVersion, [string]$DotNet6SDKVersion = $DotNet6SDKVersion, [string]$DotNet5SDKVersion = $DotNet5SDKVersion) { @@ -200,7 +200,7 @@ function Write-TestWorkflow( $directoryBuildPaths += " - '$path'" + [System.Environment]::NewLine } - + $fileText = "#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 @@ -212,9 +212,9 @@ function Write-TestWorkflow( # to you under the Apache License, Version 2.0 (the # `"License`"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # `"AS IS`" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -294,10 +294,10 @@ jobs: dotnet-version: '$DotNet6SDKVersion' if: `${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '$DotNet7SDKVersion' + dotnet-version: '$DotNet8SDKVersion' - name: Setup Environment Variables run: | @@ -356,13 +356,13 @@ try { Pop-Location } -#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet7SDKVersion $DotNet7SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion -DotNet5SDKVersion $DotNet5SDKVersion +#Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $projectPath -RelativeRoot $repoRoot -TestFrameworks @('net5.0') -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion -DotNet5SDKVersion $DotNet5SDKVersion #Write-Host $TestProjects foreach ($testProject in $TestProjects) { $projectName = [System.IO.Path]::GetFileNameWithoutExtension($testProject) - + # Call the target to get the configured test frameworks for this project. We only read the first line because MSBuild adds extra output. $frameworksString = $(dotnet build "$testProject" --verbosity minimal --nologo --no-restore /t:PrintTargetFrameworks /p:TestProjectsOnly=true /p:TestFrameworks=true)[0].Trim() @@ -383,5 +383,5 @@ foreach ($testProject in $TestProjects) { Write-Host "Frameworks To Test for ${projectName}: $($frameworks -join ';')" -ForegroundColor Cyan #Write-Host "Project: $projectName" - Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet7SDKVersion $DotNet7SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion -DotNet5SDKVersion $DotNet5SDKVersion -} \ No newline at end of file + Write-TestWorkflow -OutputDirectory $OutputDirectory -ProjectPath $testProject -RelativeRoot $RepoRoot -TestFrameworks $frameworks -OperatingSystems $OperatingSystems -TestPlatforms $TestPlatforms -Configurations $Configurations -DotNet8SDKVersion $DotNet8SDKVersion -DotNet6SDKVersion $DotNet6SDKVersion -DotNet5SDKVersion $DotNet5SDKVersion +} diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml index 600a2039c6..682b842bc9 100644 --- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml +++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -72,7 +72,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml index f3ffcbf1ab..c69ef5ebbc 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml index cd17419c4a..4d265c3585 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml index 7100bd30e5..c89375ffd1 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml index ca1236afc5..cdd58b7c1d 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net48] + framework: [net8.0, net48] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml index 4cfe7adee3..0dbd8d6000 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml index 96025d2663..e58e32e8ac 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml index d1bc4924c5..2493f969c4 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml index 6c06c9c3d1..18f1b1a32a 100644 --- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml +++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -63,7 +63,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml index b1df8b4179..a4e839091a 100644 --- a/.github/workflows/Lucene-Net-Tests-Classification.yml +++ b/.github/workflows/Lucene-Net-Tests-Classification.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml index e3ad2b1918..0b213853a8 100644 --- a/.github/workflows/Lucene-Net-Tests-Cli.yml +++ b/.github/workflows/Lucene-Net-Tests-Cli.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -70,7 +70,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0] + framework: [net8.0] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml index f20da85022..51730ac4b4 100644 --- a/.github/workflows/Lucene-Net-Tests-Codecs.yml +++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -49,7 +49,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml index b426913e98..008a126330 100644 --- a/.github/workflows/Lucene-Net-Tests-Demo.yml +++ b/.github/workflows/Lucene-Net-Tests-Demo.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -58,7 +58,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml index af2d181924..b083e3e664 100644 --- a/.github/workflows/Lucene-Net-Tests-Expressions.yml +++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml index fd6ff5a8ac..b296e923f7 100644 --- a/.github/workflows/Lucene-Net-Tests-Facet.yml +++ b/.github/workflows/Lucene-Net-Tests-Facet.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml index bda59dcd4d..15e1120bfd 100644 --- a/.github/workflows/Lucene-Net-Tests-Grouping.yml +++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml index 12dc69b62f..23586b1ba0 100644 --- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml +++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml index adbd507796..a78845e892 100644 --- a/.github/workflows/Lucene-Net-Tests-ICU.yml +++ b/.github/workflows/Lucene-Net-Tests-ICU.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -66,7 +66,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml index 9d0b67c067..ff62603b3f 100644 --- a/.github/workflows/Lucene-Net-Tests-Join.yml +++ b/.github/workflows/Lucene-Net-Tests-Join.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml index 019dbfc087..f13da07555 100644 --- a/.github/workflows/Lucene-Net-Tests-Memory.yml +++ b/.github/workflows/Lucene-Net-Tests-Memory.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -54,7 +54,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml index 05488db00a..4dbe67c744 100644 --- a/.github/workflows/Lucene-Net-Tests-Misc.yml +++ b/.github/workflows/Lucene-Net-Tests-Misc.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml index cb2bdf3f4b..2e56bcd3d5 100644 --- a/.github/workflows/Lucene-Net-Tests-Queries.yml +++ b/.github/workflows/Lucene-Net-Tests-Queries.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml index 8e33eef43d..eb5c0fbce8 100644 --- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml +++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -56,7 +56,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml index 6e41a5e039..9dcce0d0b6 100644 --- a/.github/workflows/Lucene-Net-Tests-Replicator.yml +++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -55,7 +55,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml index b688b3af8e..6ff2d37fe6 100644 --- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml +++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml index 2ef1b9118e..fcf510c56a 100644 --- a/.github/workflows/Lucene-Net-Tests-Spatial.yml +++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -52,7 +52,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml index 6040146f25..0b764ebcfa 100644 --- a/.github/workflows/Lucene-Net-Tests-Suggest.yml +++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -53,7 +53,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml index c2ac7241d6..54689bc4ad 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -49,7 +49,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml index a8b2a854e2..f209d02cb6 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -51,7 +51,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml index a4c0878cfc..8964bf7e71 100644 --- a/.github/workflows/Lucene-Net-Tests-_A-D.yml +++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -60,7 +60,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml index ee961b9593..43fb8376cf 100644 --- a/.github/workflows/Lucene-Net-Tests-_E-I.yml +++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -70,7 +70,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml index 5253ca8ec9..bb6b0eea9d 100644 --- a/.github/workflows/Lucene-Net-Tests-_I-J.yml +++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -75,7 +75,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml index a79f1f0b42..1850a096b8 100644 --- a/.github/workflows/Lucene-Net-Tests-_J-S.yml +++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -62,7 +62,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml index aae97771d3..7a04c63418 100644 --- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml +++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -57,7 +57,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net7.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net461] platform: [x64] configuration: [Release] exclude: From f511c09dd4b3dd4995660505ce693fde65707286 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Wed, 13 Mar 2024 09:12:42 -0600 Subject: [PATCH 03/24] Update ADO build scripts/files for net8 test run --- .build/azure-templates/run-tests-on-os.yml | 46 +++++++++++++--------- .build/runbuild.ps1 | 32 +++++++-------- azure-pipelines.yml | 2 +- 3 files changed, 44 insertions(+), 36 deletions(-) diff --git a/.build/azure-templates/run-tests-on-os.yml b/.build/azure-templates/run-tests-on-os.yml index 146a798355..7a3bce777a 100644 --- a/.build/azure-templates/run-tests-on-os.yml +++ b/.build/azure-templates/run-tests-on-os.yml @@ -5,9 +5,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -34,7 +34,7 @@ parameters: maximumAllowedFailures: 0 where: '' # A test filter expression, as defined by dotnet test dotNetSdkVersion: '' # The .NET SDK version to install - + steps: - checkout: none # self represents the repo where the initial Pipelines YAML file was found @@ -108,10 +108,18 @@ steps: displayName: 'Use .NET sdk 6.0.403' inputs: packageType: 'sdk' - version: '5.0.403' + version: '6.0.403' performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' condition: and(succeeded(), contains('${{ parameters.framework }}', 'net6.')) +- task: UseDotNet@2 + displayName: 'Use .NET sdk 8.0.202' + inputs: + packageType: 'sdk' + version: '8.0.202' + performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net8.')) + #- template: 'show-all-files.yml' # Uncomment for debugging - pwsh: | $framework = '${{ parameters.framework }}' @@ -126,7 +134,7 @@ steps: $tempDirectory = "$(Agent.TempDirectory)" $isNightly = if ($env:ISNIGHTLY -eq 'true') { 'true' } else { 'false' } $isWeekly = if ($env:ISWEEKLY -eq 'true') { 'true' } else { 'false' } - + function IsSupportedFramework([string]$framework) { if ($IsWindows -eq $null) { $IsWindows = $env:OS.StartsWith('Win') @@ -136,15 +144,15 @@ steps: } return $true } - + function RunTests([string]$framework, [string]$fileRegexPattern) { if (!(IsSupportedFramework($framework))) { continue } - + $testBinaries = Get-ChildItem -Path "$testBinaryRootDirectory" -File -Recurse | Where-Object {$_.FullName -match "$framework" -and $_.FullName -match "$fileRegexPattern" -and !$_.Name.EndsWith('.resources.dll') } | Sort-Object -Property FullName Write-Host $testBinaries foreach ($testBinary in $testBinaries) { $testName = [System.IO.Path]::GetFileNameWithoutExtension($testBinary.FullName) - + if ($maximumParalellJobs -gt 1) { # Pause if we have queued too many parallel jobs $running = @(Get-Job | Where-Object { $_.State -eq 'Running' }) @@ -155,7 +163,7 @@ steps: $running | Wait-Job -Any | Out-Null } } - + $testResultDirectory = "$testResultsArtifactDirectory/$testOSName/$framework/$testPlatform/$testName" if (!(Test-Path "$testResultDirectory")) { New-Item "$testResultDirectory" -ItemType Directory -Force @@ -186,32 +194,32 @@ steps: if (![string]::IsNullOrEmpty($where)) { $testExpression = "$testExpression --filter ""$where""" } - + $testExpression = "$testExpression -- RunConfiguration.TargetPlatform=$testPlatform" - + Write-Host "Testing '$($testBinary.FullName)' on framework '$framework' and outputting test results to '$testResultDirectory/$testResultsFileName'..." Write-Host $testExpression -ForegroundColor Magenta if ($maximumParalellJobs -le 1) { Invoke-Expression $testExpression # For running in the foreground } else { - + $testExpression += " > ""$testResultDirectory/dotnet-test.log"" 2> ""$testResultDirectory/dotnet-test-error.log""" $scriptBlock = { param([string]$testExpression) Invoke-Expression $testExpression } - + # Avoid dotnet test collisions by delaying for 500ms Start-Sleep -Milliseconds 500 - + # Execute the jobs in parallel Start-Job -Name "$testName,$framework,$testPlatform" -ScriptBlock $scriptBlock -ArgumentList $testExpression } } } - + RunTests -Framework "$framework" -FileRegexPattern "$testBinaryFilesPattern" - + if ($maximumParalellJobs -gt 1) { # Wait for it all to complete do { @@ -229,7 +237,7 @@ steps: } } until ($running.Count -eq 0) } - + $global:LASTEXITCODE = 0 # Force the script to continue on error displayName: 'dotnet test ${{ parameters.framework }},${{ parameters.vsTestPlatform }}' ignoreLASTEXITCODE: true @@ -247,7 +255,7 @@ steps: # it would be a ton of work to make a replacement for the # Publish Test Results task or the (deprecated) TfsPublisher # our only other option is to make a task for every supported -# platform and project and update it whenever a new platform +# platform and project and update it whenever a new platform # is targeted or test project is created in Lucene.Net. - template: 'publish-test-results-for-test-projects.yml' @@ -270,4 +278,4 @@ steps: } if ($failed) { Write-Host "##vso[task.complete result=Failed;]" - } \ No newline at end of file + } diff --git a/.build/runbuild.ps1 b/.build/runbuild.ps1 index d8d1c0a10e..346eec14f8 100644 --- a/.build/runbuild.ps1 +++ b/.build/runbuild.ps1 @@ -6,9 +6,9 @@ # The ASF licenses this file to You under the Apache License, Version 2.0 # (the ""License""); you may not use this file except in compliance with # the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an ""AS IS"" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -27,7 +27,7 @@ properties { [string]$testResultsDirectory = "$artifactsDirectory/TestResults" [string]$publishDirectory = "$artifactsDirectory/Publish" [string]$solutionFile = "$baseDirectory/Lucene.Net.sln" - [string]$minimumSdkVersion = "7.0.100" + [string]$minimumSdkVersion = "8.0.202" [string]$globalJsonFile = "$baseDirectory/global.json" [string]$versionPropsFile = "$baseDirectory/version.props" [string]$luceneReadmeFile = "$baseDirectory/src/Lucene.Net/readme-nuget.md" @@ -48,7 +48,7 @@ properties { [string]$publishedArtifactZipFileName = "artifact.zip" [int]$maximumParallelJobs = 8 - + #test parameters #The build uses Lucene.Net.Tests.Analysis.Common to determine all of the targets for the solution: [string]$projectWithAllTestFrameworks = "$baseDirectory/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj" @@ -116,7 +116,7 @@ task Init -depends CheckSDK, UpdateLocalSDKVersion -description "This task makes task Restore -description "This task restores the dependencies" { Write-Host "##teamcity[progressMessage 'Restoring']" Write-Host "##vso[task.setprogress]'Restoring'" - Exec { + Exec { & dotnet restore $solutionFile --no-dependencies /p:TestFrameworks=true } } @@ -195,13 +195,13 @@ task Publish -depends Compile -description "This task uses dotnet publish to pac try { $frameworksToTest = Get-FrameworksToTest - + if ($zipPublishedArtifacts) { $outDirectory = New-TemporaryDirectory } else { $outDirectory = $publishDirectory } - + foreach ($framework in $frameworksToTest) { # Pause if we have queued too many parallel jobs @@ -215,7 +215,7 @@ task Publish -depends Compile -description "This task uses dotnet publish to pac # Do this first so there is no conflict Ensure-Directory-Exists $outputPath - + Write-Host "Configuration: $configuration" $expression = "dotnet publish `"$solutionFile`" --configuration `"$configuration`" --framework `"$framework`" --output `"$outputPath`"" @@ -271,7 +271,7 @@ task Test -depends CheckSDK, UpdateLocalSDKVersion, Restore -description "This t popd $testProjects = $testProjects | Sort-Object -Property FullName - + $frameworksToTest = Get-FrameworksToTest [int]$totalProjects = $testProjects.Length * $frameworksToTest.Length @@ -281,7 +281,7 @@ task Test -depends CheckSDK, UpdateLocalSDKVersion, Restore -description "This t foreach ($testProject in $testProjects) { $testName = $testProject.Directory.Name - + # Call the target to get the configured test frameworks for this project. We only read the first line because MSBuild adds extra output. $frameworksString = $(dotnet build "$testProject" --verbosity minimal --nologo --no-restore /t:PrintTargetFrameworks /p:TestProjectsOnly=true /p:TestFrameworks=true)[0].Trim() @@ -296,7 +296,7 @@ task Test -depends CheckSDK, UpdateLocalSDKVersion, Restore -description "This t $frameworks = [System.Collections.Generic.HashSet[string]]::new($frameworksString -split '\s*;\s*') foreach ($framework in $frameworksToTest) { - + # If the framework is not valid for this configuration, we need to adjust our # initial estimate and skip the combination. if (-not $frameworks.Contains($framework)) { @@ -304,7 +304,7 @@ task Test -depends CheckSDK, UpdateLocalSDKVersion, Restore -description "This t $remainingProjects-- continue } - + Write-Host "" Write-Host " Next Project in Queue: $testName, Framework: $framework" -ForegroundColor Yellow @@ -336,7 +336,7 @@ task Test -depends CheckSDK, UpdateLocalSDKVersion, Restore -description "This t # Also log to a file in TRX format, so we have a build artifact both when # doing release inspection and on the CI server. $testExpression = "$testExpression --logger:""trx;LogFileName=TestResults.trx""" - + if (![string]::IsNullOrEmpty($where)) { $testExpression = "$testExpression --TestCaseFilter:""$where""" } @@ -580,7 +580,7 @@ function Summarize-Test-Results([string[]]$frameworksToTest) { $_.FullName } popd - + [int]$totalCountForFramework = 0 [int]$executedCountForFramework = 0 [int]$passedCountForFramework = 0 @@ -604,7 +604,7 @@ function Summarize-Test-Results([string[]]$frameworksToTest) { $reader = [System.Xml.XmlReader]::Create($testReport) try { while ($reader.Read()) { - + if ($reader.NodeType -eq [System.Xml.XmlNodeType]::Element -and $reader.Name -eq 'ResultSummary') { $outcome = $reader.GetAttribute('outcome') if ($outcomeForFramework -eq 'Completed') { @@ -751,4 +751,4 @@ function New-TemporaryDirectory { function Normalize-FileSystemSlashes([string]$path) { $sep = [System.IO.Path]::DirectorySeparatorChar return $($path -replace '/',$sep -replace '\\',$sep) -} \ No newline at end of file +} diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 84de7f7162..fff38cde76 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -55,7 +55,7 @@ variables: - name: BuildCounter value: $[counter(variables['VersionSuffix'],coalesce(variables['BuildCounterSeed'], 1250))] - name: DotNetSDKVersion - value: '7.0.100' + value: '8.0.202' - name: DocumentationArtifactName value: 'docs' - name: DocumentationArtifactZipFileName From a01c0f4036f4287f9801247371e3962f1019eec0 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Wed, 13 Mar 2024 10:10:08 -0600 Subject: [PATCH 04/24] Remove net7.0 comment from TestTargetFramework.props --- TestTargetFramework.props | 1 - 1 file changed, 1 deletion(-) diff --git a/TestTargetFramework.props b/TestTargetFramework.props index 0e499e9667..014f84d17f 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -30,7 +30,6 @@ - net8.0 - $(DefineConstants);FEATURE_SPANFORMATTABLE $(DefineConstants);FEATURE_RANDOM_NEXTINT64_NEXTSINGLE + $(DefineConstants);FEATURE_SPANFORMATTABLE diff --git a/TestTargetFramework.props b/TestTargetFramework.props index 014f84d17f..6bb22df5ea 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -63,9 +63,12 @@ true - + false + + + $(NoWarn);CA1034 $(NoWarn);CA1802 From 72a7ab070f0c33b3b023d0f9ea199179f3685dee Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Thu, 28 Mar 2024 17:23:17 -0600 Subject: [PATCH 06/24] Add notes about .NET roll-forward strategy to cli docs --- src/dotnet/tools/lucene-cli/docs/index.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/dotnet/tools/lucene-cli/docs/index.md b/src/dotnet/tools/lucene-cli/docs/index.md index 7f9703a380..8cf65c05f3 100644 --- a/src/dotnet/tools/lucene-cli/docs/index.md +++ b/src/dotnet/tools/lucene-cli/docs/index.md @@ -4,7 +4,7 @@ The Lucene.NET command line interface (CLI) is a new cross-platform toolchain wi ## Prerequisites -- [.NET 6.0 Runtime or Higher](https://dotnet.microsoft.com/en-us/download/dotnet) +- [.NET 6.0 Runtime or Higher](https://dotnet.microsoft.com/en-us/download/dotnet) (.NET 8.0 recommended) ## Installation @@ -19,6 +19,14 @@ dotnet tool install lucene-cli -g --version 4.8.0-beta00016 You may then use the lucene-cli tool to analyze and update Lucene.NET indexes and use its demos. +The CLI is configured to [roll-forward](https://learn.microsoft.com/en-us/dotnet/core/versions/selection#control-roll-forward-behavior) +to the next available major version of .NET installed on your machine, if only a newer one than .NET 8 is found. +You can control this behavior by setting the `DOTNET_ROLL_FORWARD` environment variable or `--roll-forward` +command-line argument to `Disable` to prevent rolling forward, or `LatestMajor` to always use the latest +available major version, before running the CLI tool. + + + ## CLI Commands The following commands are installed: From 51eb65176dbb8ff7c7a6f7f3e8cfc71f258fba02 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Thu, 28 Mar 2024 17:29:00 -0600 Subject: [PATCH 07/24] Move net5.0 warning suppression to combined group --- TestTargetFramework.props | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/TestTargetFramework.props b/TestTargetFramework.props index 6bb22df5ea..3b863803db 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -63,13 +63,11 @@ true - - - false - - + + false + $(NoWarn);CA1034 $(NoWarn);CA1802 $(NoWarn);CA1806 From 1222bd1d1d67804a227090962d5d85f6f169e97e Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Fri, 29 Mar 2024 08:45:36 -0600 Subject: [PATCH 08/24] Remove duplicate .NET 8 SDK install --- .build/azure-templates/run-tests-on-os.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.build/azure-templates/run-tests-on-os.yml b/.build/azure-templates/run-tests-on-os.yml index 7a3bce777a..7607fc2dd8 100644 --- a/.build/azure-templates/run-tests-on-os.yml +++ b/.build/azure-templates/run-tests-on-os.yml @@ -112,13 +112,7 @@ steps: performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' condition: and(succeeded(), contains('${{ parameters.framework }}', 'net6.')) -- task: UseDotNet@2 - displayName: 'Use .NET sdk 8.0.202' - inputs: - packageType: 'sdk' - version: '8.0.202' - performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' - condition: and(succeeded(), contains('${{ parameters.framework }}', 'net8.')) +# NOTE: .NET 8 is not needed here as it is installed in the install-dotnet-sdk.yml template above #- template: 'show-all-files.yml' # Uncomment for debugging - pwsh: | From 358fc123d986d4cbce47cef2c870dae32ee78df9 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Fri, 29 Mar 2024 19:19:05 -0600 Subject: [PATCH 09/24] Regenerate GitHub build scripts --- .github/workflows/Lucene-Net-Tests-AllProjects.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Analysis-Common.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-Morfologik.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-Phonetic.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-SmartCn.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-Stempel.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Benchmark.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Classification.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Cli.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-CodeAnalysis.yml | 10 +++++----- .github/workflows/Lucene-Net-Tests-Codecs.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Demo.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Expressions.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Facet.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Grouping.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Highlighter.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-ICU.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Join.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Memory.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Misc.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Queries.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-QueryParser.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Replicator.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Sandbox.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Spatial.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Suggest.yml | 6 +++--- ...ene-Net-Tests-TestFramework-DependencyInjection.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-TestFramework.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_A-D.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_E-I.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_I-J.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_J-S.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_T-Z.yml | 6 +++--- 35 files changed, 107 insertions(+), 107 deletions(-) diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml index 682b842bc9..c508aea082 100644 --- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml +++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -112,10 +112,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml index c69ef5ebbc..c7d102ac2d 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -96,10 +96,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml index 4d265c3585..f7f7db477a 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -93,10 +93,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml index c89375ffd1..17e534128e 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -93,10 +93,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml index cdd58b7c1d..cc18937e85 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -96,10 +96,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml index 0dbd8d6000..8b34929107 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -90,10 +90,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml index e58e32e8ac..e5653e97f1 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -94,10 +94,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml index 2493f969c4..68c5188543 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,10 +91,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml index 18f1b1a32a..52c82107ed 100644 --- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml +++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -103,10 +103,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml index a4e839091a..b286c11b90 100644 --- a/.github/workflows/Lucene-Net-Tests-Classification.yml +++ b/.github/workflows/Lucene-Net-Tests-Classification.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,10 +91,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml index 0b213853a8..09a05659e0 100644 --- a/.github/workflows/Lucene-Net-Tests-Cli.yml +++ b/.github/workflows/Lucene-Net-Tests-Cli.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -111,10 +111,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml index 8ccb12cf56..6f7ac27e92 100644 --- a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml +++ b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -8,9 +8,9 @@ # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at -# +# # http://www.apache.org/licenses/LICENSE-2.0 -# +# # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -89,10 +89,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml index 51730ac4b4..424146fc27 100644 --- a/.github/workflows/Lucene-Net-Tests-Codecs.yml +++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -89,10 +89,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml index 008a126330..6b462f1016 100644 --- a/.github/workflows/Lucene-Net-Tests-Demo.yml +++ b/.github/workflows/Lucene-Net-Tests-Demo.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -98,10 +98,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml index b083e3e664..693e46dcd0 100644 --- a/.github/workflows/Lucene-Net-Tests-Expressions.yml +++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,10 +91,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml index b296e923f7..b4dcbdb2a0 100644 --- a/.github/workflows/Lucene-Net-Tests-Facet.yml +++ b/.github/workflows/Lucene-Net-Tests-Facet.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -93,10 +93,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml index 15e1120bfd..2cee33ab3a 100644 --- a/.github/workflows/Lucene-Net-Tests-Grouping.yml +++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,10 +91,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml index 23586b1ba0..9703ea89ba 100644 --- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml +++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -93,10 +93,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml index a78845e892..5d5579c6ac 100644 --- a/.github/workflows/Lucene-Net-Tests-ICU.yml +++ b/.github/workflows/Lucene-Net-Tests-ICU.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -106,10 +106,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml index ff62603b3f..0bbb7cf67e 100644 --- a/.github/workflows/Lucene-Net-Tests-Join.yml +++ b/.github/workflows/Lucene-Net-Tests-Join.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -92,10 +92,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml index f13da07555..b66495f598 100644 --- a/.github/workflows/Lucene-Net-Tests-Memory.yml +++ b/.github/workflows/Lucene-Net-Tests-Memory.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -94,10 +94,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml index 4dbe67c744..92a167066e 100644 --- a/.github/workflows/Lucene-Net-Tests-Misc.yml +++ b/.github/workflows/Lucene-Net-Tests-Misc.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -90,10 +90,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml index 2e56bcd3d5..0f47836ead 100644 --- a/.github/workflows/Lucene-Net-Tests-Queries.yml +++ b/.github/workflows/Lucene-Net-Tests-Queries.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -90,10 +90,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml index eb5c0fbce8..9211df749a 100644 --- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml +++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -96,10 +96,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml index 9dcce0d0b6..c07caeb2f8 100644 --- a/.github/workflows/Lucene-Net-Tests-Replicator.yml +++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -95,10 +95,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml index 6ff2d37fe6..380be7c950 100644 --- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml +++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,10 +91,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml index fcf510c56a..e45d4b9c46 100644 --- a/.github/workflows/Lucene-Net-Tests-Spatial.yml +++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -92,10 +92,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml index 0b764ebcfa..4ba5fe222d 100644 --- a/.github/workflows/Lucene-Net-Tests-Suggest.yml +++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -93,10 +93,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml index 54689bc4ad..5620348bba 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -89,10 +89,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml index f209d02cb6..2d02d7ed55 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,10 +91,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml index 8964bf7e71..cd629cdb2c 100644 --- a/.github/workflows/Lucene-Net-Tests-_A-D.yml +++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -100,10 +100,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml index 43fb8376cf..924fa0978c 100644 --- a/.github/workflows/Lucene-Net-Tests-_E-I.yml +++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -110,10 +110,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml index bb6b0eea9d..cc43b240cb 100644 --- a/.github/workflows/Lucene-Net-Tests-_I-J.yml +++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -115,10 +115,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml index 1850a096b8..43224279b9 100644 --- a/.github/workflows/Lucene-Net-Tests-_J-S.yml +++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -102,10 +102,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml index 7a04c63418..2a10d2baca 100644 --- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml +++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -97,10 +97,10 @@ jobs: dotnet-version: '6.0.403' if: ${{ startswith(matrix.framework, 'net6.') }} - - name: Setup .NET 7 SDK + - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '7.0.100' + dotnet-version: '8.0.202' - name: Setup Environment Variables run: | From 0e9a4002e05dac724d31d7792f080071fa0ce19e Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Sat, 27 Apr 2024 16:02:18 +0000 Subject: [PATCH 10/24] Lower .NET 8 min SDK version to 8.0.101 for testing purposes --- .build/runbuild.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/runbuild.ps1 b/.build/runbuild.ps1 index 346eec14f8..957d1b19aa 100644 --- a/.build/runbuild.ps1 +++ b/.build/runbuild.ps1 @@ -27,7 +27,7 @@ properties { [string]$testResultsDirectory = "$artifactsDirectory/TestResults" [string]$publishDirectory = "$artifactsDirectory/Publish" [string]$solutionFile = "$baseDirectory/Lucene.Net.sln" - [string]$minimumSdkVersion = "8.0.202" + [string]$minimumSdkVersion = "8.0.101" [string]$globalJsonFile = "$baseDirectory/global.json" [string]$versionPropsFile = "$baseDirectory/version.props" [string]$luceneReadmeFile = "$baseDirectory/src/Lucene.Net/readme-nuget.md" From 6be044073e21056cc7418b97d29a4231b4cd422e Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Sat, 27 Apr 2024 15:46:11 -0600 Subject: [PATCH 11/24] Remove git hash from informational version --- Directory.Build.targets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Directory.Build.targets b/Directory.Build.targets index c0b906ecc4..6c2fb219db 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -150,6 +150,10 @@ portable + + false + + From 36db76ac77b3584271ac39c8a038cdae7474ec24 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 17:54:25 +0700 Subject: [PATCH 12/24] Directory.Build.props: Moved IncludeSourceRevisionInInformationalVersion from Directory.Build.targets so it is with other version properties. --- Directory.Build.props | 5 ++++- Directory.Build.targets | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 413c2aa3c2..6e4d7ab265 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -43,6 +43,9 @@ 4.0.0 + + + false @@ -88,4 +91,4 @@ in Version.props, if it exists and the PrepareForBuild argument passed into build.ps1 is 'false'. --> - \ No newline at end of file + diff --git a/Directory.Build.targets b/Directory.Build.targets index 6c2fb219db..c0b906ecc4 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -150,10 +150,6 @@ portable - - false - - From 8a89fdd875a959d7e377c98748c8cb46511ed151 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 17:55:44 +0700 Subject: [PATCH 13/24] publish-test-results.yml: Added additional error messages to fail the build with --- .build/azure-templates/publish-test-results.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.build/azure-templates/publish-test-results.yml b/.build/azure-templates/publish-test-results.yml index 28f4281362..1a71be0ee9 100644 --- a/.build/azure-templates/publish-test-results.yml +++ b/.build/azure-templates/publish-test-results.yml @@ -76,7 +76,11 @@ steps: if ($inRunInfos -and !$crashed -and $reader.Name -eq 'Text') { $innerXml = $reader.ReadInnerXml() # Test for specific error messages - we may need to adjust this, as needed - if ($innerXml -and ($innerXml.Contains('Test host process crashed') -or $innerXml.Contains('Could not load file or assembly'))) { + if ($innerXml -and ($innerXml.Contains('Test host process crashed') ` + -or $innerXml.Contains('Could not load file or assembly') ` + -or $innerXml.Contains("Could not find `'dotnet.exe`' host") ` + -or $innerXml.Contains('No test is available') ` + -or $innerXml.Contains('exited with error'))) { Write-Host "##vso[task.setvariable variable=HostCrashed;]true" # Report all of the test projects that crashed $crashedRuns = "$env:CRASHEDRUNS,$testProjectName".TrimStart(',') @@ -104,4 +108,4 @@ steps: testResultsFormat: ${{ parameters.testResultsFormat }} testResultsFiles: '$(Build.ArtifactStagingDirectory)/${{ parameters.testResultsArtifactName }}/${{ parameters.osName }}/${{ parameters.framework }}/${{ parameters.vsTestPlatform }}/${{ parameters.testProjectName }}/${{ parameters.testResultsFileName }}' testRunTitle: '${{ parameters.testProjectName }} - ${{ parameters.framework }} - ${{ parameters.vsTestPlatform }} - ${{ parameters.osName }} | $(TestResults)' - condition: and(succeeded(), eq(variables['TestResultsFileExists'], 'true')) \ No newline at end of file + condition: and(succeeded(), eq(variables['TestResultsFileExists'], 'true')) From 10bfe1236732e76265c08ce6bf0c8f36cc44e3b8 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 18:00:36 +0700 Subject: [PATCH 14/24] azure-pipelines.yml: Changed DotNetSDKVersion to 8.0.204 (8.0.202 isn't a valid version) --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fff38cde76..074e8861e0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -55,7 +55,7 @@ variables: - name: BuildCounter value: $[counter(variables['VersionSuffix'],coalesce(variables['BuildCounterSeed'], 1250))] - name: DotNetSDKVersion - value: '8.0.202' + value: '8.0.204' - name: DocumentationArtifactName value: 'docs' - name: DocumentationArtifactZipFileName @@ -366,7 +366,7 @@ stages: matrix: Windows: osName: 'Windows' - imageName: 'windows-latest' + imageName: 'windows-2019' maximumParallelJobs: 8 maximumAllowedFailures: 0 # Maximum allowed failures for a successful build displayName: 'Test net8.0,x86 on' From c46c88320af0ae478781d9595d444d6dcaa3525c Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 18:01:18 +0700 Subject: [PATCH 15/24] install-dotnet-sdk.yml: Added parameter validation and displayName for bash script --- .build/azure-templates/install-dotnet-sdk.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.build/azure-templates/install-dotnet-sdk.yml b/.build/azure-templates/install-dotnet-sdk.yml index ec0e1219e4..f499709559 100644 --- a/.build/azure-templates/install-dotnet-sdk.yml +++ b/.build/azure-templates/install-dotnet-sdk.yml @@ -30,15 +30,17 @@ steps: } } EnsureNotNullOrEmpty('${{ parameters.sdkVersion }}', 'sdkVersion') + EnsureNotNullOrEmpty('${{ parameters.performMultiLevelLookup }}', 'performMultiLevelLookup') displayName: 'Validate Template Parameters' - bash: | echo "##vso[task.setvariable variable=DOTNET_NOLOGO;]1" echo "##vso[task.setvariable variable=DOTNET_CLI_TELEMETRY_OPTOUT;]1" + displayName: Disable Telemetry - task: UseDotNet@2 displayName: 'Use .NET SDK ${{ parameters.sdkVersion }}' inputs: packageType: 'sdk' version: '${{ parameters.sdkVersion }}' - performMultiLevelLookup: '${{ parameters.performMultiLevelLookup }}' \ No newline at end of file + performMultiLevelLookup: '${{ parameters.performMultiLevelLookup }}' From dd16dce1c91fe58863cf44bf1c6f97ba43e2b7f4 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 18:03:04 +0700 Subject: [PATCH 16/24] .build/dependencies.props: Upgraded Microsoft.NET.Test.Sdk from 16.6.1 to 17.9.0 and NUnit3TestAdapter from 3.17.0 to 4.5.0 --- .build/dependencies.props | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.build/dependencies.props b/.build/dependencies.props index 22d4e0e23c..0c25d5729e 100644 --- a/.build/dependencies.props +++ b/.build/dependencies.props @@ -60,7 +60,7 @@ $(MicrosoftExtensionsDependencyInjectionAbstractionsPackageVersion) 2.0.0 1.0.2 - 16.6.1 + 17.9.0 1.1.1 $(MicrosoftSourceLinkAzureReposGitPackageReferenceVersion) 2.1.7 @@ -68,7 +68,7 @@ $(MorfologikFsaPackageVersion) 2.0.3 13.0.1 - 3.17.0 + 4.5.0 3.13.1 2.7.8 1.4.2 @@ -89,4 +89,4 @@ 1.9.1 4.2.0 - \ No newline at end of file + From dfe4f0eefcbd86acb98f73ebce5e17ed588fea21 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 18:03:43 +0700 Subject: [PATCH 17/24] run-tests-on-os.yml: Added special cases for installing x86 SDKs, since they no longer function on .NET 8 with a default install. --- .build/azure-templates/run-tests-on-os.yml | 72 +++++++++++++++++----- 1 file changed, 58 insertions(+), 14 deletions(-) diff --git a/.build/azure-templates/run-tests-on-os.yml b/.build/azure-templates/run-tests-on-os.yml index 7607fc2dd8..e7096694ce 100644 --- a/.build/azure-templates/run-tests-on-os.yml +++ b/.build/azure-templates/run-tests-on-os.yml @@ -77,42 +77,86 @@ steps: - pwsh: | $testPlatform = '${{ parameters.vsTestPlatform }}' + $framework = '${{ parameters.framework }}' if ($IsWindows -eq $null) { $IsWindows = $env:OS.StartsWith('Win') } $performMulitLevelLookup = if ($IsWindows -and $testPlatform.Equals('x86')) { 'true' } else { 'false' } Write-Host "##vso[task.setvariable variable=PerformMultiLevelLookup;]$performMulitLevelLookup" +#- template: 'show-all-environment-variables.yml' # Uncomment for debugging + - template: 'install-dotnet-sdk.yml' parameters: sdkVersion: '${{ parameters.dotNetSdkVersion }}' performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' -- task: UseDotNet@2 - displayName: 'Use .NET Core sdk 3.1.412' - inputs: - packageType: 'sdk' - version: '3.1.412' - performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' - condition: and(succeeded(), contains('${{ parameters.framework }}', 'netcoreapp3.')) + # Hack: .NET 8 no longer installs the x86 bits and they must be installed separately. However, it is not + # trivial to get it into the path and to get it to pass the minimum SDK version check in runbuild.ps1. + # So, we install it afterward and set the environment variable so the above SDK can delegate to it. + # This code only works on Windows. +- pwsh: | + $sdkVersion = '${{ parameters.dotNetSdkVersion }}' + $architecture = '${{ parameters.vsTestPlatform }}' + $installScriptPath = "${env:AGENT_TEMPDIRECTORY}/dotnet-install.ps1" + $installScriptUrl = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1" + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + Invoke-WebRequest $installScriptUrl -OutFile $installScriptPath -TimeoutSec 60 + $installPath = "${env:ProgramFiles(x86)}/dotnet" + & $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath + Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath" + displayName: 'Use .NET SDK ${{ parameters.dotNetSdkVersion }} (x86)' + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net8.'), eq('${{ parameters.vsTestPlatform }}', 'x86')) - task: UseDotNet@2 - displayName: 'Use .NET sdk 5.0.400' + displayName: 'Use .NET SDK 6.0.421' inputs: packageType: 'sdk' - version: '5.0.400' + version: '6.0.421' performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' - condition: and(succeeded(), contains('${{ parameters.framework }}', 'net5.')) + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net6.')) + + # Hack: .NET 8 no longer installs the x86 bits and they must be installed separately. However, it is not + # trivial to get it into the path and to get it to pass the minimum SDK version check in runbuild.ps1. + # So, we install it afterward and set the environment variable so the above SDK can delegate to it. + # This code only works on Windows. +- pwsh: | + $sdkVersion = '6.0.421' + $architecture = '${{ parameters.vsTestPlatform }}' + $installScriptPath = "${env:AGENT_TEMPDIRECTORY}/dotnet-install.ps1" + $installScriptUrl = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1" + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + Invoke-WebRequest $installScriptUrl -OutFile $installScriptPath -TimeoutSec 60 + $installPath = "${env:ProgramFiles(x86)}/dotnet" + & $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath + Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath" + displayName: 'Use .NET SDK 6.0.421 (x86)' + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net6.'), eq('${{ parameters.vsTestPlatform }}', 'x86')) - task: UseDotNet@2 - displayName: 'Use .NET sdk 6.0.403' + displayName: 'Use .NET SDK 5.0.408' inputs: packageType: 'sdk' - version: '6.0.403' + version: '5.0.408' performMultiLevelLookup: '${{ variables.PerformMultiLevelLookup }}' - condition: and(succeeded(), contains('${{ parameters.framework }}', 'net6.')) + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net5.')) -# NOTE: .NET 8 is not needed here as it is installed in the install-dotnet-sdk.yml template above + # Hack: .NET 8 no longer installs the x86 bits and they must be installed separately. However, it is not + # trivial to get it into the path and to get it to pass the minimum SDK version check in runbuild.ps1. + # So, we install it afterward and set the environment variable so the above SDK can delegate to it. + # This code only works on Windows. +- pwsh: | + $sdkVersion = '5.0.408' + $architecture = '${{ parameters.vsTestPlatform }}' + $installScriptPath = "${env:AGENT_TEMPDIRECTORY}/dotnet-install.ps1" + $installScriptUrl = "https://raw.githubusercontent.com/dotnet/install-scripts/main/src/dotnet-install.ps1" + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + Invoke-WebRequest $installScriptUrl -OutFile $installScriptPath -TimeoutSec 60 + $installPath = "${env:ProgramFiles(x86)}/dotnet" + & $installScriptPath -Version $sdkVersion -Architecture $architecture -InstallDir $installPath + Write-Host "##vso[task.setvariable variable=DOTNET_ROOT_X86;]$installPath" + displayName: 'Use .NET SDK 5.0.408 (x86)' + condition: and(succeeded(), contains('${{ parameters.framework }}', 'net5.'), eq('${{ parameters.vsTestPlatform }}', 'x86')) #- template: 'show-all-files.yml' # Uncomment for debugging - pwsh: | From 170c60d5d9b6f4ea7f9ac050e3923f5925b0108b Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 18:46:34 +0700 Subject: [PATCH 18/24] .github/workflows/Generate-TestWorkflows.ps1: Use the latest version of each .NET SDK --- .github/workflows/Generate-TestWorkflows.ps1 | 12 +- ...ne - Backup-Net-Tests-Analysis-OpenNLP.yml | 129 ++++++++++++++++++ .../Lucene-Net-Tests-AllProjects.yml | 8 +- .../Lucene-Net-Tests-Analysis-Common.yml | 8 +- .../Lucene-Net-Tests-Analysis-Kuromoji.yml | 8 +- .../Lucene-Net-Tests-Analysis-Morfologik.yml | 8 +- .../Lucene-Net-Tests-Analysis-OpenNLP.yml | 8 +- .../Lucene-Net-Tests-Analysis-Phonetic.yml | 8 +- .../Lucene-Net-Tests-Analysis-SmartCn.yml | 8 +- .../Lucene-Net-Tests-Analysis-Stempel.yml | 8 +- .../workflows/Lucene-Net-Tests-Benchmark.yml | 8 +- .../Lucene-Net-Tests-Classification.yml | 8 +- .github/workflows/Lucene-Net-Tests-Cli.yml | 8 +- .../Lucene-Net-Tests-CodeAnalysis.yml | 8 +- .github/workflows/Lucene-Net-Tests-Codecs.yml | 8 +- .github/workflows/Lucene-Net-Tests-Demo.yml | 8 +- .../Lucene-Net-Tests-Expressions.yml | 8 +- .github/workflows/Lucene-Net-Tests-Facet.yml | 8 +- .../workflows/Lucene-Net-Tests-Grouping.yml | 8 +- .../Lucene-Net-Tests-Highlighter.yml | 8 +- .github/workflows/Lucene-Net-Tests-ICU.yml | 8 +- .github/workflows/Lucene-Net-Tests-Join.yml | 8 +- .github/workflows/Lucene-Net-Tests-Memory.yml | 8 +- .github/workflows/Lucene-Net-Tests-Misc.yml | 8 +- .../workflows/Lucene-Net-Tests-Queries.yml | 8 +- .../Lucene-Net-Tests-QueryParser.yml | 8 +- .../workflows/Lucene-Net-Tests-Replicator.yml | 8 +- .../workflows/Lucene-Net-Tests-Sandbox.yml | 8 +- .../workflows/Lucene-Net-Tests-Spatial.yml | 8 +- .../workflows/Lucene-Net-Tests-Suggest.yml | 8 +- ...ests-TestFramework-DependencyInjection.yml | 8 +- .../Lucene-Net-Tests-TestFramework.yml | 8 +- .github/workflows/Lucene-Net-Tests-_A-D.yml | 8 +- .github/workflows/Lucene-Net-Tests-_E-I.yml | 8 +- .github/workflows/Lucene-Net-Tests-_I-J.yml | 8 +- .github/workflows/Lucene-Net-Tests-_J-S.yml | 8 +- .github/workflows/Lucene-Net-Tests-_T-Z.yml | 8 +- 37 files changed, 275 insertions(+), 146 deletions(-) create mode 100644 .github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1 index 9534f8c6d4..64c12acae2 100644 --- a/.github/workflows/Generate-TestWorkflows.ps1 +++ b/.github/workflows/Generate-TestWorkflows.ps1 @@ -53,15 +53,15 @@ .PARAMETER DotNet8SDKVersion The SDK version of .NET 8.x to install on the build agent to be used for building and - testing. This SDK is always installed on the build agent. The default is 8.0.202. + testing. This SDK is always installed on the build agent. The default is 8.0.x. .PARAMETER DotNet6SDKVersion The SDK version of .NET 6.x to install on the build agent to be used for building and - testing. This SDK is always installed on the build agent. The default is 6.0.403. + testing. This SDK is always installed on the build agent. The default is 6.0.x. .PARAMETER DotNet5SDKVersion The SDK version of .NET 5.x to install on the build agent to be used for building and - testing. This SDK is always installed on the build agent. The default is 5.0.400. + testing. This SDK is always installed on the build agent. The default is 5.0.x. #> param( [string]$OutputDirectory = $PSScriptRoot, @@ -76,11 +76,11 @@ param( [string[]]$Configurations = @('Release'), - [string]$DotNet8SDKVersion = '8.0.202', + [string]$DotNet8SDKVersion = '8.0.x', - [string]$DotNet6SDKVersion = '6.0.403', + [string]$DotNet6SDKVersion = '6.0.x', - [string]$DotNet5SDKVersion = '5.0.400' + [string]$DotNet5SDKVersion = '5.0.x' ) diff --git a/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml new file mode 100644 index 0000000000..51eb4ffd0b --- /dev/null +++ b/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml @@ -0,0 +1,129 @@ +#################################################################################### +# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 +#################################################################################### +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: 'Lucene - Backup.Net.Tests.Analysis.OpenNLP' + +on: + workflow_dispatch: + pull_request: + paths: + - 'src/Lucene.Net.Tests.Analysis.OpenNLP/**/*' + - '.build/dependencies.props' + - '.build/TestReferences.Common.*' + - 'TestTargetFrameworks.*' + - '*.sln' + - 'src/Lucene.Net.Tests.Analysis.OpenNLP/Directory.Build.*' + - 'src/Directory.Build.*' + - 'Directory.Build.*' + - 'src/Lucene.Net.Tests.Analysis.OpenNLP/**/*.dict' + - 'src/Lucene.Net.Tests.Analysis.OpenNLP/**/*.bin' + + # Dependencies + - 'src/Lucene.Net/**/*' + - 'src/Lucene.Net.Analysis.Common/**/*' + - 'src/Lucene.Net.Memory/**/*' + - 'src/Lucene.Net.Queries/**/*' + - 'src/Lucene.Net.Highlighter/**/*' + - 'src/dotnet/Lucene.Net.ICU/**/*' + - 'src/Lucene.Net.Analysis.OpenNLP/**/*' + - 'src/Lucene.Net.Codecs/**/*' + - 'src/Lucene.Net.TestFramework/**/*' + + - '!**/*.md' + +jobs: + + Test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [windows-latest, ubuntu-latest] + framework: [net48] + platform: [x64] + configuration: [Release] + exclude: + - os: ubuntu-latest + framework: net48 + - os: ubuntu-latest + framework: net461 + - os: macos-latest + framework: net48 + - os: macos-latest + framework: net461 + env: + project_path: './src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj' + run_slow_tests: 'false' + trx_file_name: 'TestResults.trx' + md_file_name: 'TestResults.md' # Report file name for LiquidTestReports.Markdown + + steps: + - name: Checkout Source Code + uses: actions/checkout@v3 + + - name: Disable .NET SDK Telemetry and Logo + run: | + echo "DOTNET_NOLOGO=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + shell: pwsh + + - name: Setup .NET 5 SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '5.0.x' + if: ${{ startswith(matrix.framework, 'net5.') }} + + - name: Setup .NET 6 SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' + if: ${{ startswith(matrix.framework, 'net6.') }} + + - name: Setup .NET 8 SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Setup Environment Variables + run: | + $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) + $test_results_artifact_name = "testresults_${{matrix.os}}_${{matrix.framework}}_${{matrix.platform}}_${{matrix.configuration}}" + $working_directory = "$env:GITHUB_WORKSPACE" + Write-Host "Project Name: $project_name" + Write-Host "Results Artifact Name: $test_results_artifact_name" + Write-Host "Working Directory: $working_directory" + echo "project_name=$project_name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + echo "test_results_artifact_name=$test_results_artifact_name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + # Set the Azure DevOps default working directory env variable, so our tests only need to deal with a single env variable + echo "SYSTEM_DEFAULTWORKINGDIRECTORY=$working_directory" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + # Title for LiquidTestReports.Markdown + echo "title=Test Run for $project_name - ${{matrix.framework}} - ${{matrix.platform}} - ${{matrix.os}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + shell: pwsh + - run: dotnet build ${{env.project_path}} --configuration ${{matrix.configuration}} --framework ${{matrix.framework}} /p:TestFrameworks=true + - run: dotnet test ${{env.project_path}} --configuration ${{matrix.configuration}} --framework ${{matrix.framework}} --no-build --no-restore --blame-hang --blame-hang-dump-type mini --blame-hang-timeout 20minutes --logger:"console;verbosity=normal" --logger:"trx;LogFileName=${{env.trx_file_name}}" --logger:"liquid.md;LogFileName=${{env.md_file_name}};Title=${{env.title}};" --results-directory:"${{github.workspace}}/${{env.test_results_artifact_name}}/${{env.project_name}}" -- RunConfiguration.TargetPlatform=${{matrix.platform}} TestRunParameters.Parameter\(name=\"tests:slow\",\ value=\"\${{env.run_slow_tests}}\"\) + shell: bash + # upload reports as build artifacts + - name: Upload a Build Artifact + uses: actions/upload-artifact@v3 + if: ${{always()}} + with: + name: '${{env.test_results_artifact_name}}' + path: '${{github.workspace}}/${{env.test_results_artifact_name}}' + diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml index c508aea082..a75c33f53f 100644 --- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml +++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -103,19 +103,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml index c7d102ac2d..22cbf16fec 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -87,19 +87,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml index f7f7db477a..b059207c72 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -84,19 +84,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml index 17e534128e..ddafa6852a 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -84,19 +84,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml index cc18937e85..e8f0617e01 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -87,19 +87,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml index 8b34929107..acec3a345d 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -81,19 +81,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml index e5653e97f1..e28ce5f3be 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -85,19 +85,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml index 68c5188543..f2abe2e6df 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -82,19 +82,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml index 52c82107ed..5aa33e2cfb 100644 --- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml +++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -94,19 +94,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml index b286c11b90..2d432006af 100644 --- a/.github/workflows/Lucene-Net-Tests-Classification.yml +++ b/.github/workflows/Lucene-Net-Tests-Classification.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -82,19 +82,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml index 09a05659e0..3f82b73144 100644 --- a/.github/workflows/Lucene-Net-Tests-Cli.yml +++ b/.github/workflows/Lucene-Net-Tests-Cli.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -102,19 +102,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml index 6f7ac27e92..821e7ef425 100644 --- a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml +++ b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -80,19 +80,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml index 424146fc27..b9cd99e23b 100644 --- a/.github/workflows/Lucene-Net-Tests-Codecs.yml +++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -80,19 +80,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml index 6b462f1016..c34659f8f5 100644 --- a/.github/workflows/Lucene-Net-Tests-Demo.yml +++ b/.github/workflows/Lucene-Net-Tests-Demo.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -89,19 +89,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml index 693e46dcd0..4821700c09 100644 --- a/.github/workflows/Lucene-Net-Tests-Expressions.yml +++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -82,19 +82,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml index b4dcbdb2a0..d1cd95e113 100644 --- a/.github/workflows/Lucene-Net-Tests-Facet.yml +++ b/.github/workflows/Lucene-Net-Tests-Facet.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -84,19 +84,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml index 2cee33ab3a..29cfa0098e 100644 --- a/.github/workflows/Lucene-Net-Tests-Grouping.yml +++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -82,19 +82,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml index 9703ea89ba..90abcb78b1 100644 --- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml +++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -84,19 +84,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml index 5d5579c6ac..297f243147 100644 --- a/.github/workflows/Lucene-Net-Tests-ICU.yml +++ b/.github/workflows/Lucene-Net-Tests-ICU.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -97,19 +97,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml index 0bbb7cf67e..2ef3c5abf1 100644 --- a/.github/workflows/Lucene-Net-Tests-Join.yml +++ b/.github/workflows/Lucene-Net-Tests-Join.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -83,19 +83,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml index b66495f598..5167bc3575 100644 --- a/.github/workflows/Lucene-Net-Tests-Memory.yml +++ b/.github/workflows/Lucene-Net-Tests-Memory.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -85,19 +85,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml index 92a167066e..d804bc795b 100644 --- a/.github/workflows/Lucene-Net-Tests-Misc.yml +++ b/.github/workflows/Lucene-Net-Tests-Misc.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -81,19 +81,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml index 0f47836ead..c34a1cb197 100644 --- a/.github/workflows/Lucene-Net-Tests-Queries.yml +++ b/.github/workflows/Lucene-Net-Tests-Queries.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -81,19 +81,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml index 9211df749a..f56c8ab1e9 100644 --- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml +++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -87,19 +87,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml index c07caeb2f8..e613b5ae23 100644 --- a/.github/workflows/Lucene-Net-Tests-Replicator.yml +++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -86,19 +86,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml index 380be7c950..b4571a0fd2 100644 --- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml +++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -82,19 +82,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml index e45d4b9c46..51b90a028d 100644 --- a/.github/workflows/Lucene-Net-Tests-Spatial.yml +++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -83,19 +83,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml index 4ba5fe222d..f4decc1ed0 100644 --- a/.github/workflows/Lucene-Net-Tests-Suggest.yml +++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -84,19 +84,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml index 5620348bba..1cb70bdd17 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -80,19 +80,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml index 2d02d7ed55..dc653ee48d 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -82,19 +82,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml index cd629cdb2c..16536f7ee9 100644 --- a/.github/workflows/Lucene-Net-Tests-_A-D.yml +++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -91,19 +91,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml index 924fa0978c..a3607c46e6 100644 --- a/.github/workflows/Lucene-Net-Tests-_E-I.yml +++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -101,19 +101,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml index cc43b240cb..e5f8e8647f 100644 --- a/.github/workflows/Lucene-Net-Tests-_I-J.yml +++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -106,19 +106,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml index 43224279b9..c3e3d28e72 100644 --- a/.github/workflows/Lucene-Net-Tests-_J-S.yml +++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -93,19 +93,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml index 2a10d2baca..2c245aeaf0 100644 --- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml +++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml @@ -1,4 +1,4 @@ -#################################################################################### +#################################################################################### # DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 #################################################################################### # Licensed to the Apache Software Foundation (ASF) under one @@ -88,19 +88,19 @@ jobs: - name: Setup .NET 5 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '5.0.400' + dotnet-version: '5.0.x' if: ${{ startswith(matrix.framework, 'net5.') }} - name: Setup .NET 6 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.403' + dotnet-version: '6.0.x' if: ${{ startswith(matrix.framework, 'net6.') }} - name: Setup .NET 8 SDK uses: actions/setup-dotnet@v3 with: - dotnet-version: '8.0.202' + dotnet-version: '8.0.x' - name: Setup Environment Variables run: | From a1b3c5dc52ea5e98ac2a83ccf4d7a4b881278189 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 17:45:50 +0700 Subject: [PATCH 19/24] SWEEP: Upgraded .NET Standard 2.0 test target from net461 to net472. Apparently NUnit3TestAdapter 4.5.0 doesn't support net461. --- .build/dependencies.props | 2 +- .github/workflows/Generate-TestWorkflows.ps1 | 6 +++--- .../Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml | 4 ++-- .github/workflows/Lucene-Net-Tests-AllProjects.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Analysis-Common.yml | 6 +++--- .../Lucene-Net-Tests-Analysis-Kuromoji.yml | 6 +++--- .../Lucene-Net-Tests-Analysis-Morfologik.yml | 6 +++--- .../Lucene-Net-Tests-Analysis-OpenNLP.yml | 4 ++-- .../Lucene-Net-Tests-Analysis-Phonetic.yml | 6 +++--- .../Lucene-Net-Tests-Analysis-SmartCn.yml | 6 +++--- .../Lucene-Net-Tests-Analysis-Stempel.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Benchmark.yml | 6 +++--- .../workflows/Lucene-Net-Tests-Classification.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Cli.yml | 4 ++-- .../workflows/Lucene-Net-Tests-CodeAnalysis.yml | 4 ++-- .github/workflows/Lucene-Net-Tests-Codecs.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Demo.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Expressions.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Facet.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Grouping.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Highlighter.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-ICU.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Join.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Memory.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Misc.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Queries.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-QueryParser.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Replicator.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Sandbox.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Spatial.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-Suggest.yml | 6 +++--- ...Net-Tests-TestFramework-DependencyInjection.yml | 6 +++--- .../workflows/Lucene-Net-Tests-TestFramework.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_A-D.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_E-I.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_I-J.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_J-S.yml | 6 +++--- .github/workflows/Lucene-Net-Tests-_T-Z.yml | 6 +++--- Directory.Build.targets | 4 ++-- TestTargetFramework.props | 8 ++++---- azure-pipelines.yml | 14 +++++++------- .../Lucene.Net.Tests.Analysis.Common.csproj | 2 +- .../Lucene.Net.Tests.Analysis.Kuromoji.csproj | 2 +- .../Lucene.Net.Tests.Analysis.OpenNLP.csproj | 5 +++-- .../Lucene.Net.Tests.Analysis.SmartCn.csproj | 2 +- .../Lucene.Net.Tests.Benchmark.csproj | 2 +- .../Lucene.Net.Tests._J-S.csproj | 2 +- .../Lucene.Net.Tests._T-Z.csproj | 2 +- .../Lucene.Net.Replicator.AspNetCore.csproj | 2 +- .../Lucene.Net.Tests.ICU.csproj | 2 +- 50 files changed, 132 insertions(+), 131 deletions(-) diff --git a/.build/dependencies.props b/.build/dependencies.props index 0c25d5729e..091543206e 100644 --- a/.build/dependencies.props +++ b/.build/dependencies.props @@ -81,7 +81,7 @@ 4.3.0 6.0.1 4.3.0 - 5.0.0 + 5.0.0 6.0.6 6.1.0 diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1 index 64c12acae2..6d3bdf64fd 100644 --- a/.github/workflows/Generate-TestWorkflows.ps1 +++ b/.github/workflows/Generate-TestWorkflows.ps1 @@ -68,7 +68,7 @@ param( [string]$RepoRoot = (Split-Path (Split-Path $PSScriptRoot)), - [string[]]$TestFrameworks = @('net8.0', 'net5.0','net461','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net462 + [string[]]$TestFrameworks = @('net8.0', 'net5.0','net472','net48'), # targets under test: net6.0, netstandard2.1, netstanard2.0, net462 [string[]]$OperatingSystems = @('windows-latest', 'ubuntu-latest'), @@ -251,11 +251,11 @@ jobs: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: '$projectRelativePath'" diff --git a/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml index 51eb4ffd0b..e414578071 100644 --- a/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml +++ b/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml @@ -63,11 +63,11 @@ jobs: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-AllProjects.yml b/.github/workflows/Lucene-Net-Tests-AllProjects.yml index a75c33f53f..63c6780863 100644 --- a/.github/workflows/Lucene-Net-Tests-AllProjects.yml +++ b/.github/workflows/Lucene-Net-Tests-AllProjects.yml @@ -72,18 +72,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.AllProjects/Lucene.Net.Tests.AllProjects.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml index 22cbf16fec..696e3e3fe7 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Common.yml @@ -56,18 +56,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml index b059207c72..f496463591 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Kuromoji.yml @@ -53,18 +53,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml index ddafa6852a..9d15552a41 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Morfologik.yml @@ -53,18 +53,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.Morfologik/Lucene.Net.Tests.Analysis.Morfologik.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml index e8f0617e01..e05c686501 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-OpenNLP.yml @@ -63,11 +63,11 @@ jobs: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml index acec3a345d..b4d206efb8 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Phonetic.yml @@ -50,18 +50,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.Phonetic/Lucene.Net.Tests.Analysis.Phonetic.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml index e28ce5f3be..91f289e032 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-SmartCn.yml @@ -54,18 +54,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml index f2abe2e6df..30830529b1 100644 --- a/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml +++ b/.github/workflows/Lucene-Net-Tests-Analysis-Stempel.yml @@ -51,18 +51,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Analysis.Stempel/Lucene.Net.Tests.Analysis.Stempel.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Benchmark.yml b/.github/workflows/Lucene-Net-Tests-Benchmark.yml index 5aa33e2cfb..196e9dde79 100644 --- a/.github/workflows/Lucene-Net-Tests-Benchmark.yml +++ b/.github/workflows/Lucene-Net-Tests-Benchmark.yml @@ -63,18 +63,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Classification.yml b/.github/workflows/Lucene-Net-Tests-Classification.yml index 2d432006af..babf81d9ff 100644 --- a/.github/workflows/Lucene-Net-Tests-Classification.yml +++ b/.github/workflows/Lucene-Net-Tests-Classification.yml @@ -51,18 +51,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Classification/Lucene.Net.Tests.Classification.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Cli.yml b/.github/workflows/Lucene-Net-Tests-Cli.yml index 3f82b73144..3bb4dd59b6 100644 --- a/.github/workflows/Lucene-Net-Tests-Cli.yml +++ b/.github/workflows/Lucene-Net-Tests-Cli.yml @@ -77,11 +77,11 @@ jobs: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/dotnet/tools/Lucene.Net.Tests.Cli/Lucene.Net.Tests.Cli.csproj' project_under_test_path: './src/dotnet/tools/lucene-cli/lucene-cli.csproj' diff --git a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml index 821e7ef425..886a49b90d 100644 --- a/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml +++ b/.github/workflows/Lucene-Net-Tests-CodeAnalysis.yml @@ -56,11 +56,11 @@ jobs: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/dotnet/Lucene.Net.Tests.CodeAnalysis/Lucene.Net.Tests.CodeAnalysis.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Codecs.yml b/.github/workflows/Lucene-Net-Tests-Codecs.yml index b9cd99e23b..1d00f94f1f 100644 --- a/.github/workflows/Lucene-Net-Tests-Codecs.yml +++ b/.github/workflows/Lucene-Net-Tests-Codecs.yml @@ -49,18 +49,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Codecs/Lucene.Net.Tests.Codecs.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Demo.yml b/.github/workflows/Lucene-Net-Tests-Demo.yml index c34659f8f5..7cf76b9ebd 100644 --- a/.github/workflows/Lucene-Net-Tests-Demo.yml +++ b/.github/workflows/Lucene-Net-Tests-Demo.yml @@ -58,18 +58,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Demo/Lucene.Net.Tests.Demo.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Expressions.yml b/.github/workflows/Lucene-Net-Tests-Expressions.yml index 4821700c09..b35efd4ccf 100644 --- a/.github/workflows/Lucene-Net-Tests-Expressions.yml +++ b/.github/workflows/Lucene-Net-Tests-Expressions.yml @@ -51,18 +51,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Expressions/Lucene.Net.Tests.Expressions.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Facet.yml b/.github/workflows/Lucene-Net-Tests-Facet.yml index d1cd95e113..3fdb6b2be7 100644 --- a/.github/workflows/Lucene-Net-Tests-Facet.yml +++ b/.github/workflows/Lucene-Net-Tests-Facet.yml @@ -53,18 +53,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Facet/Lucene.Net.Tests.Facet.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Grouping.yml b/.github/workflows/Lucene-Net-Tests-Grouping.yml index 29cfa0098e..02d5bfed6b 100644 --- a/.github/workflows/Lucene-Net-Tests-Grouping.yml +++ b/.github/workflows/Lucene-Net-Tests-Grouping.yml @@ -51,18 +51,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Grouping/Lucene.Net.Tests.Grouping.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Highlighter.yml b/.github/workflows/Lucene-Net-Tests-Highlighter.yml index 90abcb78b1..b28f01fee5 100644 --- a/.github/workflows/Lucene-Net-Tests-Highlighter.yml +++ b/.github/workflows/Lucene-Net-Tests-Highlighter.yml @@ -53,18 +53,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Highlighter/Lucene.Net.Tests.Highlighter.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-ICU.yml b/.github/workflows/Lucene-Net-Tests-ICU.yml index 297f243147..81d1bffff5 100644 --- a/.github/workflows/Lucene-Net-Tests-ICU.yml +++ b/.github/workflows/Lucene-Net-Tests-ICU.yml @@ -66,18 +66,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Join.yml b/.github/workflows/Lucene-Net-Tests-Join.yml index 2ef3c5abf1..494294b135 100644 --- a/.github/workflows/Lucene-Net-Tests-Join.yml +++ b/.github/workflows/Lucene-Net-Tests-Join.yml @@ -52,18 +52,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Join/Lucene.Net.Tests.Join.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Memory.yml b/.github/workflows/Lucene-Net-Tests-Memory.yml index 5167bc3575..6f8bf21de9 100644 --- a/.github/workflows/Lucene-Net-Tests-Memory.yml +++ b/.github/workflows/Lucene-Net-Tests-Memory.yml @@ -54,18 +54,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Memory/Lucene.Net.Tests.Memory.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Misc.yml b/.github/workflows/Lucene-Net-Tests-Misc.yml index d804bc795b..ba0ac9796a 100644 --- a/.github/workflows/Lucene-Net-Tests-Misc.yml +++ b/.github/workflows/Lucene-Net-Tests-Misc.yml @@ -50,18 +50,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Misc/Lucene.Net.Tests.Misc.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Queries.yml b/.github/workflows/Lucene-Net-Tests-Queries.yml index c34a1cb197..e0e98a11c7 100644 --- a/.github/workflows/Lucene-Net-Tests-Queries.yml +++ b/.github/workflows/Lucene-Net-Tests-Queries.yml @@ -50,18 +50,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Queries/Lucene.Net.Tests.Queries.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-QueryParser.yml b/.github/workflows/Lucene-Net-Tests-QueryParser.yml index f56c8ab1e9..7e63026fb7 100644 --- a/.github/workflows/Lucene-Net-Tests-QueryParser.yml +++ b/.github/workflows/Lucene-Net-Tests-QueryParser.yml @@ -56,18 +56,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.QueryParser/Lucene.Net.Tests.QueryParser.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Replicator.yml b/.github/workflows/Lucene-Net-Tests-Replicator.yml index e613b5ae23..849a20bfd2 100644 --- a/.github/workflows/Lucene-Net-Tests-Replicator.yml +++ b/.github/workflows/Lucene-Net-Tests-Replicator.yml @@ -55,18 +55,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Replicator/Lucene.Net.Tests.Replicator.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Sandbox.yml b/.github/workflows/Lucene-Net-Tests-Sandbox.yml index b4571a0fd2..434fd5c3e5 100644 --- a/.github/workflows/Lucene-Net-Tests-Sandbox.yml +++ b/.github/workflows/Lucene-Net-Tests-Sandbox.yml @@ -51,18 +51,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Sandbox/Lucene.Net.Tests.Sandbox.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Spatial.yml b/.github/workflows/Lucene-Net-Tests-Spatial.yml index 51b90a028d..be51aac267 100644 --- a/.github/workflows/Lucene-Net-Tests-Spatial.yml +++ b/.github/workflows/Lucene-Net-Tests-Spatial.yml @@ -52,18 +52,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Spatial/Lucene.Net.Tests.Spatial.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-Suggest.yml b/.github/workflows/Lucene-Net-Tests-Suggest.yml index f4decc1ed0..2483301516 100644 --- a/.github/workflows/Lucene-Net-Tests-Suggest.yml +++ b/.github/workflows/Lucene-Net-Tests-Suggest.yml @@ -53,18 +53,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.Suggest/Lucene.Net.Tests.Suggest.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml index 1cb70bdd17..eeda1abd12 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework-DependencyInjection.yml @@ -49,18 +49,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.TestFramework.DependencyInjection/Lucene.Net.Tests.TestFramework.DependencyInjection.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-TestFramework.yml b/.github/workflows/Lucene-Net-Tests-TestFramework.yml index dc653ee48d..b9be141b8e 100644 --- a/.github/workflows/Lucene-Net-Tests-TestFramework.yml +++ b/.github/workflows/Lucene-Net-Tests-TestFramework.yml @@ -51,18 +51,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests.TestFramework/Lucene.Net.Tests.TestFramework.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-_A-D.yml b/.github/workflows/Lucene-Net-Tests-_A-D.yml index 16536f7ee9..f647a03377 100644 --- a/.github/workflows/Lucene-Net-Tests-_A-D.yml +++ b/.github/workflows/Lucene-Net-Tests-_A-D.yml @@ -60,18 +60,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests._A-D/Lucene.Net.Tests._A-D.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-_E-I.yml b/.github/workflows/Lucene-Net-Tests-_E-I.yml index a3607c46e6..7ee39f46e4 100644 --- a/.github/workflows/Lucene-Net-Tests-_E-I.yml +++ b/.github/workflows/Lucene-Net-Tests-_E-I.yml @@ -70,18 +70,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests._E-I/Lucene.Net.Tests._E-I.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-_I-J.yml b/.github/workflows/Lucene-Net-Tests-_I-J.yml index e5f8e8647f..0e92f32d0c 100644 --- a/.github/workflows/Lucene-Net-Tests-_I-J.yml +++ b/.github/workflows/Lucene-Net-Tests-_I-J.yml @@ -75,18 +75,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests._I-J/Lucene.Net.Tests._I-J.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-_J-S.yml b/.github/workflows/Lucene-Net-Tests-_J-S.yml index c3e3d28e72..d2684149b0 100644 --- a/.github/workflows/Lucene-Net-Tests-_J-S.yml +++ b/.github/workflows/Lucene-Net-Tests-_J-S.yml @@ -62,18 +62,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests._J-S/Lucene.Net.Tests._J-S.csproj' run_slow_tests: 'false' diff --git a/.github/workflows/Lucene-Net-Tests-_T-Z.yml b/.github/workflows/Lucene-Net-Tests-_T-Z.yml index 2c245aeaf0..e3229466d1 100644 --- a/.github/workflows/Lucene-Net-Tests-_T-Z.yml +++ b/.github/workflows/Lucene-Net-Tests-_T-Z.yml @@ -57,18 +57,18 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest] - framework: [net8.0, net5.0, net48, net461] + framework: [net8.0, net5.0, net48, net472] platform: [x64] configuration: [Release] exclude: - os: ubuntu-latest framework: net48 - os: ubuntu-latest - framework: net461 + framework: net472 - os: macos-latest framework: net48 - os: macos-latest - framework: net461 + framework: net472 env: project_path: './src/Lucene.Net.Tests._T-Z/Lucene.Net.Tests._T-Z.csproj' run_slow_tests: 'false' diff --git a/Directory.Build.targets b/Directory.Build.targets index c0b906ecc4..2e25939523 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -136,8 +136,8 @@ - - + + $(DefineConstants);FEATURE_OPENNLP diff --git a/TestTargetFramework.props b/TestTargetFramework.props index 3b863803db..023e64dc36 100644 --- a/TestTargetFramework.props +++ b/TestTargetFramework.props @@ -26,7 +26,7 @@ - + @@ -42,17 +42,17 @@ net6.0 | net6.0 net5.0 | netstandard2.1 net48 | net462 - net461 | netstandard2.0 + net472 | netstandard2.0 --> net8.0;net6.0;net5.0 - $(TargetFrameworks);net48;net461 + $(TargetFrameworks);net48;net472 - TargetFramework=netstandard2.0 + TargetFramework=netstandard2.0 diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 074e8861e0..28ad38afa8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -253,7 +253,7 @@ stages: - template: '.build/azure-templates/publish-test-binaries.yml' parameters: publishDirectory: $(PublishTempDirectory) - framework: 'net461' + framework: 'net472' binaryArtifactName: '$(BinaryArtifactName)' testSettingsFilePath: '$(Build.ArtifactStagingDirectory)/$(TestSettingsFileName)' @@ -505,7 +505,7 @@ stages: maximumAllowedFailures: $(maximumAllowedFailures) dotNetSdkVersion: '$(DotNetSDKVersion)' - - job: Test_net461_x64 + - job: Test_net472_x64 condition: and(succeeded(), ne(variables['RunTests'], 'false')) strategy: matrix: @@ -514,14 +514,14 @@ stages: imageName: 'windows-2019' maximumParallelJobs: 8 maximumAllowedFailures: 0 # Maximum allowed failures for a successful build - displayName: 'Test net461,x64 on' + displayName: 'Test net472,x64 on' pool: vmImage: $(imageName) steps: - template: '.build/azure-templates/run-tests-on-os.yml' parameters: osName: $(osName) - framework: 'net461' + framework: 'net472' vsTestPlatform: 'x64' testBinariesArtifactName: '$(TestBinariesArtifactName)' nugetArtifactName: '$(NuGetArtifactName)' @@ -530,7 +530,7 @@ stages: maximumAllowedFailures: $(maximumAllowedFailures) dotNetSdkVersion: '$(DotNetSDKVersion)' - - job: Test_net461_x86 # Only run Nightly or if explicitly enabled with RunX86Tests + - job: Test_net472_x86 # Only run Nightly or if explicitly enabled with RunX86Tests condition: and(succeeded(), ne(variables['RunTests'], 'false'), or(eq(variables['IsNightly'], 'true'), eq(variables['RunX86Tests'], 'true'))) strategy: matrix: @@ -539,14 +539,14 @@ stages: imageName: 'windows-2019' maximumParallelJobs: 8 maximumAllowedFailures: 0 # Maximum allowed failures for a successful build - displayName: 'Test net461,x86 on' + displayName: 'Test net472,x86 on' pool: vmImage: $(imageName) steps: - template: '.build/azure-templates/run-tests-on-os.yml' parameters: osName: $(osName) - framework: 'net461' + framework: 'net472' vsTestPlatform: 'x86' testBinariesArtifactName: '$(TestBinariesArtifactName)' nugetArtifactName: '$(NuGetArtifactName)' diff --git a/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj b/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj index 7e9dc8f820..189bb7e168 100644 --- a/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj +++ b/src/Lucene.Net.Tests.Analysis.Common/Lucene.Net.Tests.Analysis.Common.csproj @@ -61,7 +61,7 @@ - + diff --git a/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj b/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj index 671c0424a8..77e03862da 100644 --- a/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj +++ b/src/Lucene.Net.Tests.Analysis.Kuromoji/Lucene.Net.Tests.Analysis.Kuromoji.csproj @@ -53,7 +53,7 @@ - + diff --git a/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj b/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj index d68830caeb..1ebe908be9 100644 --- a/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj +++ b/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene.Net.Tests.Analysis.OpenNLP.csproj @@ -32,13 +32,14 @@ Lucene.Net.Analysis.OpenNlp - + + false false net8.0 - net48 + net48 diff --git a/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj b/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj index 0a455525ff..79d6f9a7ae 100644 --- a/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj +++ b/src/Lucene.Net.Tests.Analysis.SmartCn/Lucene.Net.Tests.Analysis.SmartCn.csproj @@ -63,7 +63,7 @@ - + diff --git a/src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj b/src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj index 3763508ed4..afca29a4b9 100644 --- a/src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj +++ b/src/Lucene.Net.Tests.Benchmark/Lucene.Net.Tests.Benchmark.csproj @@ -91,7 +91,7 @@ - + diff --git a/src/Lucene.Net.Tests._J-S/Lucene.Net.Tests._J-S.csproj b/src/Lucene.Net.Tests._J-S/Lucene.Net.Tests._J-S.csproj index 581118541d..22b6666d5b 100644 --- a/src/Lucene.Net.Tests._J-S/Lucene.Net.Tests._J-S.csproj +++ b/src/Lucene.Net.Tests._J-S/Lucene.Net.Tests._J-S.csproj @@ -77,7 +77,7 @@ - + diff --git a/src/Lucene.Net.Tests._T-Z/Lucene.Net.Tests._T-Z.csproj b/src/Lucene.Net.Tests._T-Z/Lucene.Net.Tests._T-Z.csproj index b52b2e0613..8075f02e80 100644 --- a/src/Lucene.Net.Tests._T-Z/Lucene.Net.Tests._T-Z.csproj +++ b/src/Lucene.Net.Tests._T-Z/Lucene.Net.Tests._T-Z.csproj @@ -77,7 +77,7 @@ - + diff --git a/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj b/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj index 17fd672a46..946defd1e3 100644 --- a/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj +++ b/src/dotnet/Lucene.Net.Replicator.AspNetCore/Lucene.Net.Replicator.AspNetCore.csproj @@ -25,7 +25,7 @@ - net6.0;netstandard2.1;netstandard2.0;net461 + net6.0;netstandard2.1;netstandard2.0;net462 Lucene.Net.Replicator.AspNetCore AspNetCore integration of Lucene.Net.Replicator for the Lucene.Net full-text search engine library from The Apache Software Foundation. diff --git a/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj b/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj index 14d951cdf0..94873e7db8 100644 --- a/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj +++ b/src/dotnet/Lucene.Net.Tests.ICU/Lucene.Net.Tests.ICU.csproj @@ -88,7 +88,7 @@ - + From 59b7966374b00d2657b101a9735608da66c64de0 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 21:08:46 +0700 Subject: [PATCH 20/24] .build/runbuild.ps1: Changed minimum supported version to 8.0.100. We want users to be able to build with any .NET 8 SDK. --- .build/runbuild.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.build/runbuild.ps1 b/.build/runbuild.ps1 index 957d1b19aa..35f5abe667 100644 --- a/.build/runbuild.ps1 +++ b/.build/runbuild.ps1 @@ -27,7 +27,7 @@ properties { [string]$testResultsDirectory = "$artifactsDirectory/TestResults" [string]$publishDirectory = "$artifactsDirectory/Publish" [string]$solutionFile = "$baseDirectory/Lucene.Net.sln" - [string]$minimumSdkVersion = "8.0.101" + [string]$minimumSdkVersion = "8.0.100" [string]$globalJsonFile = "$baseDirectory/global.json" [string]$versionPropsFile = "$baseDirectory/version.props" [string]$luceneReadmeFile = "$baseDirectory/src/Lucene.Net/readme-nuget.md" From 64e0e809cc34ad3437757ab135d6d524c496bbc9 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 21:15:09 +0700 Subject: [PATCH 21/24] README.md: Updated prerequisites for build instructions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4ebe83f61e..6b3e6c90ab 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Welcome to Apache Lucene.NET +# Welcome to Apache Lucene.NET [![Nuget](https://img.shields.io/nuget/dt/Lucene.Net)](https://www.nuget.org/packages/Lucene.Net) [![Azure DevOps builds (master)](https://img.shields.io/azure-devops/build/lucene-net/6ba240c9-9598-47e7-a793-0ed8a4ba2f8b/3/master)](https://dev.azure.com/lucene-net/Lucene.NET/_build?definitionId=3&_a=summary) @@ -178,7 +178,7 @@ Before you start working on a pull request, please read our [Contributing](https ##### Prerequisites 1. [PowerShell](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell) 5.0 or higher (see [this question](http://stackoverflow.com/questions/1825585/determine-installed-powershell-version) to check your PowerShell version) -2. [.NET 7.0 SDK or higher](https://dotnet.microsoft.com/download/visual-studio-sdks) +2. [.NET 8.0 SDK or higher](https://dotnet.microsoft.com/download/visual-studio-sdks) ##### Execution @@ -277,7 +277,7 @@ Then all you need to do is choose the `Lucene.Net Local Packages` feed from the #### Prerequisites 1. Visual Studio 2022 or higher -2. [.NET 7.0 SDK or higher](https://dotnet.microsoft.com/download/visual-studio-sdks) +2. [.NET 8.0 SDK or higher](https://dotnet.microsoft.com/download/visual-studio-sdks) #### Execution From e6a18c5f783d1a3cd5e2c36aee081593dda767cd Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 21:49:33 +0700 Subject: [PATCH 22/24] Deleted backup files that were accidentally committed --- ...ne - Backup-Net-Tests-Analysis-OpenNLP.yml | 129 ------------------ ...- Backup.Net.Tests.Analysis.OpenNLP.csproj | 58 -------- 2 files changed, 187 deletions(-) delete mode 100644 .github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml delete mode 100644 src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj diff --git a/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml b/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml deleted file mode 100644 index e414578071..0000000000 --- a/.github/workflows/Lucene - Backup-Net-Tests-Analysis-OpenNLP.yml +++ /dev/null @@ -1,129 +0,0 @@ -#################################################################################### -# DO NOT EDIT: This file was automatically generated by Generate-TestWorkflows.ps1 -#################################################################################### -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -name: 'Lucene - Backup.Net.Tests.Analysis.OpenNLP' - -on: - workflow_dispatch: - pull_request: - paths: - - 'src/Lucene.Net.Tests.Analysis.OpenNLP/**/*' - - '.build/dependencies.props' - - '.build/TestReferences.Common.*' - - 'TestTargetFrameworks.*' - - '*.sln' - - 'src/Lucene.Net.Tests.Analysis.OpenNLP/Directory.Build.*' - - 'src/Directory.Build.*' - - 'Directory.Build.*' - - 'src/Lucene.Net.Tests.Analysis.OpenNLP/**/*.dict' - - 'src/Lucene.Net.Tests.Analysis.OpenNLP/**/*.bin' - - # Dependencies - - 'src/Lucene.Net/**/*' - - 'src/Lucene.Net.Analysis.Common/**/*' - - 'src/Lucene.Net.Memory/**/*' - - 'src/Lucene.Net.Queries/**/*' - - 'src/Lucene.Net.Highlighter/**/*' - - 'src/dotnet/Lucene.Net.ICU/**/*' - - 'src/Lucene.Net.Analysis.OpenNLP/**/*' - - 'src/Lucene.Net.Codecs/**/*' - - 'src/Lucene.Net.TestFramework/**/*' - - - '!**/*.md' - -jobs: - - Test: - runs-on: ${{ matrix.os }} - strategy: - fail-fast: false - matrix: - os: [windows-latest, ubuntu-latest] - framework: [net48] - platform: [x64] - configuration: [Release] - exclude: - - os: ubuntu-latest - framework: net48 - - os: ubuntu-latest - framework: net472 - - os: macos-latest - framework: net48 - - os: macos-latest - framework: net472 - env: - project_path: './src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj' - run_slow_tests: 'false' - trx_file_name: 'TestResults.trx' - md_file_name: 'TestResults.md' # Report file name for LiquidTestReports.Markdown - - steps: - - name: Checkout Source Code - uses: actions/checkout@v3 - - - name: Disable .NET SDK Telemetry and Logo - run: | - echo "DOTNET_NOLOGO=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - echo "DOTNET_CLI_TELEMETRY_OPTOUT=1" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - shell: pwsh - - - name: Setup .NET 5 SDK - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '5.0.x' - if: ${{ startswith(matrix.framework, 'net5.') }} - - - name: Setup .NET 6 SDK - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '6.0.x' - if: ${{ startswith(matrix.framework, 'net6.') }} - - - name: Setup .NET 8 SDK - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '8.0.x' - - - name: Setup Environment Variables - run: | - $project_name = [System.IO.Path]::GetFileNameWithoutExtension($env:project_path) - $test_results_artifact_name = "testresults_${{matrix.os}}_${{matrix.framework}}_${{matrix.platform}}_${{matrix.configuration}}" - $working_directory = "$env:GITHUB_WORKSPACE" - Write-Host "Project Name: $project_name" - Write-Host "Results Artifact Name: $test_results_artifact_name" - Write-Host "Working Directory: $working_directory" - echo "project_name=$project_name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - echo "test_results_artifact_name=$test_results_artifact_name" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - # Set the Azure DevOps default working directory env variable, so our tests only need to deal with a single env variable - echo "SYSTEM_DEFAULTWORKINGDIRECTORY=$working_directory" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - # Title for LiquidTestReports.Markdown - echo "title=Test Run for $project_name - ${{matrix.framework}} - ${{matrix.platform}} - ${{matrix.os}}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append - shell: pwsh - - run: dotnet build ${{env.project_path}} --configuration ${{matrix.configuration}} --framework ${{matrix.framework}} /p:TestFrameworks=true - - run: dotnet test ${{env.project_path}} --configuration ${{matrix.configuration}} --framework ${{matrix.framework}} --no-build --no-restore --blame-hang --blame-hang-dump-type mini --blame-hang-timeout 20minutes --logger:"console;verbosity=normal" --logger:"trx;LogFileName=${{env.trx_file_name}}" --logger:"liquid.md;LogFileName=${{env.md_file_name}};Title=${{env.title}};" --results-directory:"${{github.workspace}}/${{env.test_results_artifact_name}}/${{env.project_name}}" -- RunConfiguration.TargetPlatform=${{matrix.platform}} TestRunParameters.Parameter\(name=\"tests:slow\",\ value=\"\${{env.run_slow_tests}}\"\) - shell: bash - # upload reports as build artifacts - - name: Upload a Build Artifact - uses: actions/upload-artifact@v3 - if: ${{always()}} - with: - name: '${{env.test_results_artifact_name}}' - path: '${{github.workspace}}/${{env.test_results_artifact_name}}' - diff --git a/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj b/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj deleted file mode 100644 index d880584623..0000000000 --- a/src/Lucene.Net.Tests.Analysis.OpenNLP/Lucene - Backup.Net.Tests.Analysis.OpenNLP.csproj +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - net7.0;net6.0 - $(TargetFrameworks);net48 - - Lucene.Net.Tests.Analysis.OpenNLP - Lucene.Net.Analysis.OpenNlp - - - - - false - false - - net7.0 - net48 - - - - - - - - - - - - - - - - - From 54cae62aa41251ce5ba7195b97fcff79a85c6b2c Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 22:50:36 +0700 Subject: [PATCH 23/24] run-tests-on-os.yml: Removed unused $framework variable --- .build/azure-templates/run-tests-on-os.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.build/azure-templates/run-tests-on-os.yml b/.build/azure-templates/run-tests-on-os.yml index e7096694ce..a6d771d800 100644 --- a/.build/azure-templates/run-tests-on-os.yml +++ b/.build/azure-templates/run-tests-on-os.yml @@ -77,7 +77,6 @@ steps: - pwsh: | $testPlatform = '${{ parameters.vsTestPlatform }}' - $framework = '${{ parameters.framework }}' if ($IsWindows -eq $null) { $IsWindows = $env:OS.StartsWith('Win') } From 8d553ed4ae08d97d77cf61b9f10c77a19ee3600e Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 30 Apr 2024 23:00:52 +0700 Subject: [PATCH 24/24] .github/workflows/Generate-TestWorkflows.ps1: Updated documentation for TestFrameworks parameter to reflect the new default value --- .github/workflows/Generate-TestWorkflows.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Generate-TestWorkflows.ps1 b/.github/workflows/Generate-TestWorkflows.ps1 index 6d3bdf64fd..3b97afa0eb 100644 --- a/.github/workflows/Generate-TestWorkflows.ps1 +++ b/.github/workflows/Generate-TestWorkflows.ps1 @@ -38,7 +38,7 @@ .PARAMETER TestFrameworks A string array of Dotnet target framework monikers to run the tests on. The default is - @('net6.0', 'net5.0','net461','net48'). + @('net6.0', 'net5.0','net472','net48'). .PARAMETER OperatingSystems A string array of Github Actions operating system monikers to run the tests on.