lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [lucenenet] 10/13: run-tests-on-os.yml, azure-pipelines.yml: Added test expression to filter tests, filtered netcoreapp1.1 tests so long running tests are excluded. Changed VM image to vs2017-win2016 because .NET Core support has been dropped from the windows-2019 image.
Date Sat, 26 Oct 2019 18:52:05 GMT
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit f93597b44b2e2a25b2277698e3ecf7023c2f7dbd
Author: Shad Storhaug <shad@shadstorhaug.com>
AuthorDate: Sat Oct 26 00:14:36 2019 +0700

    run-tests-on-os.yml, azure-pipelines.yml: Added test expression to filter tests, filtered
netcoreapp1.1 tests so long running tests are excluded. Changed VM image to vs2017-win2016
because .NET Core support has been dropped from the windows-2019 image.
---
 azure-pipelines.yml                       | 5 +++--
 build/azure-templates/run-tests-on-os.yml | 6 ++++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 4fd21d2..fc0b895 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -230,7 +230,7 @@ stages:
       matrix:
         Windows:
           osName: 'Windows'
-          imageName: 'windows-2019'
+          imageName: 'vs2017-win2016'
           maximumAllowedFailures: 4 # Maximum allowed failures for a successful build
         Linux:
           osName: 'Linux'
@@ -252,8 +252,9 @@ stages:
         publishedArtifactZipFileName: '$(PublishedArtifactZipFileName)'
         maximumParallelJobs: 7
         maximumAllowedFailures: $(maximumAllowedFailures)
+        where: 'TestCategory!=LongRunningTest' # Skip long running tests on .NET Core 1.1
 
-  - job: Test_net451
+  - job: Test_net451_Windows
     condition: and(succeeded(), ne(variables['RunTests'], 'false'))
     displayName: 'Test net451 on Windows'
     pool:
diff --git a/build/azure-templates/run-tests-on-os.yml b/build/azure-templates/run-tests-on-os.yml
index 875cfdf..351c1cf 100644
--- a/build/azure-templates/run-tests-on-os.yml
+++ b/build/azure-templates/run-tests-on-os.yml
@@ -30,6 +30,7 @@ parameters:
   publishedArtifactZipFileName: 'published.zip' # The name of the zip file (within the Azure
DevOps build artifact binaryArtifactName) where the published test binaries can be extracted
from. Default 'published.zip'.
   maximumParallelJobs: 8
   maximumAllowedFailures: 0
+  where: '' # A test filter expression, as defined by dotnet vstest
 
 steps:
 - powershell: |
@@ -75,6 +76,7 @@ steps:
     $testBinaryFilesPattern = '${{ parameters.testBinaryFilesPattern }}'
     $testResultsFileName = '${{ parameters.testResultsFileName }}'
     $maximumParalellJobs = '${{ parameters.maximumParallelJobs }}'
+    $where = '${{ parameters.where }}'
     $testTargetFrameworks = $testTargetFrameworksString.Split([char]',',[char]';')
     
     function SeparateVersionDigits([string]$digits) {
@@ -145,6 +147,10 @@ steps:
                 " --logger:""console;verbosity=normal"" --logger:""trx;LogFileName=$testResultsFileName"""
+ `
                 " --ResultsDirectory:""$testResultDirectory"" --Blame"
     
+            if (![string]::IsNullOrEmpty($where)) {
+                $testExpression = "$testExpression --TestCaseFilter:""$where"""
+            }
+    
             Write-Host "Testing '$($testBinary.FullName)' on framework '$fwork' and outputting
test results to '$testResultDirectory/$testResultsFileName'..."
             Write-Host $testExpression -ForegroundColor Magenta
             if ($maximumParalellJobs -le 1) {


Mime
View raw message