You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by nk...@apache.org on 2016/02/08 23:35:56 UTC

[21/50] [abbrv] lucene-solr git commit: LUCENE-6955: The release smoke tester inappropriately requires back compat index testing for versions not less than the one being smoke tested (merged trunk r1723956)

LUCENE-6955: The release smoke tester inappropriately requires back compat index testing for versions not less than the one being smoke tested (merged trunk r1723956)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_5_4@1723959 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/3edd73f4
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/3edd73f4
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/3edd73f4

Branch: refs/heads/branch_5_4
Commit: 3edd73f45a993f7b8e73b73c32538fc64af14488
Parents: b2566c5
Author: Steven Rowe <sa...@apache.org>
Authored: Sun Jan 10 19:49:31 2016 +0000
Committer: Steven Rowe <sa...@apache.org>
Committed: Sun Jan 10 19:49:31 2016 +0000

----------------------------------------------------------------------
 dev-tools/scripts/smokeTestRelease.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/3edd73f4/dev-tools/scripts/smokeTestRelease.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index 5a4cdfd..161281c 100644
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -764,7 +764,7 @@ def verifyUnpacked(java, project, artifact, unpackPath, svnRevision, version, te
 
   if project == 'lucene' and isSrc:
     print('  confirm all releases have coverage in TestBackwardsCompatibility')
-    confirmAllReleasesAreTestedForBackCompat(unpackPath)
+    confirmAllReleasesAreTestedForBackCompat(version, unpackPath)
 
 
 def testNotice(unpackPath):
@@ -1318,7 +1318,7 @@ def getAllLuceneReleases():
   l.sort()
   return l
 
-def confirmAllReleasesAreTestedForBackCompat(unpackPath):
+def confirmAllReleasesAreTestedForBackCompat(smokeVersion, unpackPath):
 
   print('    find all past Lucene releases...')
   allReleases = getAllLuceneReleases()
@@ -1378,9 +1378,15 @@ def confirmAllReleasesAreTestedForBackCompat(unpackPath):
   notTested = []
   for x in allReleases:
     if x not in testedIndices:
-      if '.'.join(str(y) for y in x) in ('1.4.3', '1.9.1', '2.3.1', '2.3.2'):
+      releaseVersion = '.'.join(str(y) for y in x)
+      if releaseVersion in ('1.4.3', '1.9.1', '2.3.1', '2.3.2'):
         # Exempt the dark ages indices
         continue
+      if x >= tuple(int(y) for y in smokeVersion.split('.')):
+        # Exempt versions not less than the one being smoke tested
+        print('      Backcompat testing not required for release %s because it\'s not less than %s'
+              % (releaseVersion, smokeVersion))
+        continue
       notTested.append(x)
 
   if len(notTested) > 0: