[
https://issues.apache.org/jira/browse/LUCENE-6955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Steve Rowe resolved LUCENE-6955.
--------------------------------
Resolution: Fixed
Committed to trunk, branch_5x, lucene_solr_5_4, lucene_solr_5_3,
lucene_solr_5_2, lucene_solr_5_1, lucene_solr_5_0, and lucene_solr_4_10.
FYI, on the lucene_solr_4_10 branch, {{smokeTestRelease.py}} had rough support
for ignoring future versions (versions starting with '5.'), but this apparently
got removed with the first 5.x releases.
> The release smoke tester inappropriately requires back compat index testing
> for versions not less than the one being smoke tested
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: LUCENE-6955
> URL: https://issues.apache.org/jira/browse/LUCENE-6955
> Project: Lucene - Core
> Issue Type: Bug
> Components: general/test
> Affects Versions: 5.3.2
> Reporter: Steve Rowe
> Assignee: Steve Rowe
> Priority: Blocker
> Fix For: 5.3.2
>
> Attachments: LUCENE-6955.patch, LUCENE-6955.patch
>
>
> I ran {{ant nightly-smoke}} on my laptop against the lucene_solr_5_3 branch
> and got the following error:
> {noformat}
> [smoker] Verify...
> [smoker] confirm all releases have coverage in TestBackwardsCompatibility
> [smoker] find all past Lucene releases...
> [smoker] run TestBackwardsCompatibility..
> [smoker] Releases that don't seem to be tested:
> [smoker] 5.4.0
> [smoker] Traceback (most recent call last):
> [smoker] File
> "/Users/sarowe/svn/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRele
> [smoker] ase.py", line 1449, in <module>
> [smoker] main()
> [smoker] File
> "/Users/sarowe/svn/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py",
> line 1394, in main
> [smoker] smokeTest(c.java, c.url, c.revision, c.version, c.tmp_dir,
> c.is_signed, ' '.join(c.test_args))
> [smoker] File
> "/Users/sarowe/svn/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py",
> line 1432, in smokeTest
> [smoker] unpackAndVerify(java, 'lucene', tmpDir, 'lucene-%s-src.tgz' %
> version, svnRevision, version, testArgs, baseURL)
> [smoker] File
> "/Users/sarowe/svn/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py",
> line 583, in unpackAndVerify
> [smoker] verifyUnpacked(java, project, artifact, unpackPath,
> svnRevision, version, testArgs, tmpDir, baseURL)
> [smoker] File
> "/Users/sarowe/svn/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py",
> line 762, in verifyUnpacked
> [smoker] confirmAllReleasesAreTestedForBackCompat(unpackPath)
> [smoker] File
> "/Users/sarowe/svn/lucene/dev/branches/lucene_solr_5_3/dev-tools/scripts/smokeTestRelease.py",
> line 1387, in confirmAllReleasesAreTestedForBackCompat
> [smoker] raise RuntimeError('some releases are not tested by
> TestBackwardsCompatibility?')
> [smoker] RuntimeError: some releases are not tested by
> TestBackwardsCompatibility?
> {noformat}
> Here's the relevant section of {{smokeTestRelease.py}} -
> {{getAllLuceneReleases()}} fetches all dotted-version entries in the file
> listing page returned by the web server at
> https://archive.apache.org/dist/lucene/java/:
> {code}
> def confirmAllReleasesAreTestedForBackCompat(unpackPath):
> print(' find all past Lucene releases...')
> allReleases = getAllLuceneReleases()
> [...]
> 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'):
> # Exempt the dark ages indices
> continue
> notTested.append(x)
> if len(notTested) > 0:
> notTested.sort()
> print('Releases that don\'t seem to be tested:')
> failed = True
> for x in notTested:
> print(' %s' % '.'.join(str(y) for y in x))
> raise RuntimeError('some releases are not tested by
> TestBackwardsCompatibility?')
> {code}
> I think the code above should allow/ignore versions greater than the version
> being smoke tested.
> AFAIK, version 5.3.2 will be the first release where a greater version has
> been released in the past since full back compat testing started being
> checked for by the smoke tester. (The last time this happened was when 4.9.1
> was released after 4.10.0.)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]