You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2015/12/31 20:06:39 UTC

[jira] [Created] (LUCENE-6955) The release smoke tester inappropriately requires back compat index testing for versions greater than the one being smoke tested

Steve Rowe created LUCENE-6955:
----------------------------------

             Summary: The release smoke tester inappropriately requires back compat index testing for versions greater 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


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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org