Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-390

JDBC runtime tests break all branch builds.

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • None
    • None
    • All
    • Small

    Description

      Some tests in jdbc-runtime require the jdbc-runtime-0.x.0.jar to be present in the maven repository before they can succeed.

      This causes builds to break on "clean" branches the first time they are built (since the module is not installed until after the tests succeed).

      This causes wrong behaviour on "non-clean" branches like master since the tests are run against the "old" jdbc-runtime.jar present in nexus instead of the module currently under test.

      Some possible solutions have been discussed:

      • Add a maven-invoker-plugin to create another nexus for integration testing within the module,
      • Move these runtime tests to a separate module that should be executed afterwards ('jdbc-integration-test` to be run after `jdbc-runtime`),
      • Add a "warm-up" step to branch builds that run mvn clean install -DskipTests -DskipITs before running the actual build, thus ensuring that the current branch's modules are already present in the branch maven before the tests are run.

      Attachments

        Issue Links

          Activity

            People

              pteyssier pierre teyssier
              rskraba Ryan Skraba
              CHEN Bin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: