Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5475

Formalize use of old Derby distributions in tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 10.9.1.0
    • None
    • Test
    • None

    Description

      Some types of tests need old Derby distributions to perform the required actions. Currently this includes the upgrade test and the compatibility test.
      Instead of each test dealing with this in their own way, there should be support for accessing old Derby distributions in the test framework.

      I propose to add a Derby distribution repository in the test framework, with the following guidelines and changes:
      o keep it as simple as possible, which suggests it is the users responsibility to keep the repository updated
      o compatibility with the existing derbyTesting.oldReleasePath property
      o make the tests requiring old distributions fail if there are no distributions available
      o establish a default location where the test framework will look for old distributions if derbyTesting.oldReleasePath is unspecified
      o the repository should not incur any costs when not used by the test(s) being run

      In favor of simplicity the repository will not download releases itself. The user has to keep the repository contents up-to-date, which is as simple as running 'svn up' each time a new Derby release is published. It is unclear if, and what, the repository and/or relevant tests should do if the repository is outdated. It seems useful to allow the user to make available only a subset of the distributions, but maybe printing a warning is helpful to remind developers that their repository is stale.

      Another related issue, which will only be relevant some time in the future, is whether a test framework of version X should make available distributions of version X+n. Currently I'm leaning towards not doing that, but haven't really looked into it.

      See also thread on derby-dev: http://db.markmail.org/thread/44uyusa726cwjuk2

      Attachments

        1. derby-5475-1a-DerbyVersion.diff
          21 kB
          Kristian Waagan
        2. derby-5475-1b-DerbyVersion.diff
          23 kB
          Kristian Waagan
        3. derby-5475-2a-rename_and_cleanup.diff
          7 kB
          Kristian Waagan
        4. derby-5475-2a-rename_and_cleanup.stat
          0.3 kB
          Kristian Waagan
        5. derby-5475-3a-repository.diff
          23 kB
          Kristian Waagan
        6. derby-5475-4a-less_exceptions_and_expose.diff
          6 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              kristwaa Kristian Waagan
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: