You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2016/01/10 21:03:39 UTC
svn commit: r1723964 - in /lucene/dev/branches/lucene_solr_4_10: ./
dev-tools/ dev-tools/scripts/smokeTestRelease.py
Author: sarowe
Date: Sun Jan 10 20:03:39 2016
New Revision: 1723964
URL: http://svn.apache.org/viewvc?rev=1723964&view=rev
Log:
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)
Modified:
lucene/dev/branches/lucene_solr_4_10/ (props changed)
lucene/dev/branches/lucene_solr_4_10/dev-tools/ (props changed)
lucene/dev/branches/lucene_solr_4_10/dev-tools/scripts/smokeTestRelease.py
Modified: lucene/dev/branches/lucene_solr_4_10/dev-tools/scripts/smokeTestRelease.py
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_4_10/dev-tools/scripts/smokeTestRelease.py?rev=1723964&r1=1723963&r2=1723964&view=diff
==============================================================================
--- lucene/dev/branches/lucene_solr_4_10/dev-tools/scripts/smokeTestRelease.py (original)
+++ lucene/dev/branches/lucene_solr_4_10/dev-tools/scripts/smokeTestRelease.py Sun Jan 10 20:03:39 2016
@@ -786,7 +786,7 @@ def verifyUnpacked(project, artifact, un
if project == 'lucene' and isSrc:
print(' confirm all releases have coverage in TestBackwardsCompatibility/3x')
- confirmAllReleasesAreTestedForBackCompat(unpackPath)
+ confirmAllReleasesAreTestedForBackCompat(version, unpackPath)
def testNotice(unpackPath):
solrNotice = open('%s/NOTICE.txt' % unpackPath, encoding='UTF-8').read()
@@ -1330,7 +1330,7 @@ def getAllLuceneReleases():
l.sort()
return l
-def confirmAllReleasesAreTestedForBackCompat(unpackPath):
+def confirmAllReleasesAreTestedForBackCompat(smokeVersion, unpackPath):
print(' find all past Lucene releases...')
allReleases = getAllLuceneReleases()
@@ -1395,12 +1395,14 @@ def confirmAllReleasesAreTestedForBackCo
notTested = []
for x in allReleases:
if x not in testedIndices:
- version = '.'.join(str(y) for y in x)
- if version 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 version.startswith('5.'):
- # 4.10.x only!: exempt the future indices
+ 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)