Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-6565

Teleporter: Improve bundle names to prevent conflicts in case of uninstall failures

    XMLWordPrintableJSON

Details

    Description

      Currently each test bundle gets a unique symbolic name (https://github.com/apache/sling/blob/trunk/testing/junit/teleporter/src/main/java/org/apache/sling/testing/teleporter/client/ClientSideTeleporter.java#L245). That means that in case of uninstallation failures there might be multiple bundles on the same server providing the same JUnit tests. Since it is then not deterministic which bundle is used for executing the test the bundle names should be always the same for the same test class.

      The only thing one needs to prevent is parallel execution of those JUnit tests, because each bundle is deployed separately for each test method. If this happens in parallel it may be that one bundle is just uninstalled, while still being in use by he next test. This is a problem already with the current approach, as you cannot tell which bundle is used for executing the test.

      Attachments

        Activity

          People

            kwin Konrad Windszus
            kwin Konrad Windszus
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: