Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-26227

Extra JARs without version are resolved with the version of the test module when it doesn't depend on them

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      When a Docker-based functional test declares an extra JAR without version (the extraJARs parameter of @UITest) and that artifact is not among the dependencies of the test module, the test framework resolves it with the version of the test module itself. This is only correct when the artifact is released with the same version as the test module. XWiki Commons, XWiki Rendering and XWiki Platform artifacts have their own version, held by the commons.version, rendering.version and platform.version properties, which can differ from the version of the test module:

      • in an extension with its own version (e.g. a contrib extension), for any XWiki Commons, XWiki Rendering or XWiki Platform extra JAR
      • in a branch of XWiki Platform built with a version of its own, such as a feature-deploy-* branch built without matching XWiki Commons and XWiki Rendering branches, for XWiki Commons and XWiki Rendering extra JARs

      STEPS TO REPRODUCE:

      • In the Docker test module of an extension in version 2.3.1-SNAPSHOT, add org.xwiki.platform:xwiki-platform-mailsender to extraJARs without depending on it
      • Run the test

      EXPECTED RESULTS:
      The extra JAR is resolved with platform.version.

      ACTUAL RESULTS:
      The test setup fails with Could not find artifact org.xwiki.platform:xwiki-platform-mailsender:jar:2.3.1-SNAPSHOT.

      The same happens for ExtensionIT, LinkCheckerIT and RepositoryIT on a feature-deploy-* branch of XWiki Platform only, built on ci.xwiki.org with the version 19.0.0-<branch>SNAPSHOT: Could not find artifact org.xwiki.commons:xwiki-commons-extension-repository-xwiki:jar:19.0.0<branch>-SNAPSHOT (same for xwiki-commons-extension-repository-maven and xwiki-rendering-transformation-linkchecker).

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: