Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-6233

Failing unit tests depending on test execution order

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0ruta, 3.1.0ruta
    • Ruta
    • None

    Description

      There are two tests which fail on some systems but not on all (most):

      org.apache.uima.ruta.NewCASPipelineTest.test

      org.apache.uima.UIMARuntimeException: 
      Illegal adding of additional MetaData after CASes have been defined.
        file:/var/lib/jenkins/jobs/EntwicklerTeam/jobs/content/jobs/uima/jobs/ruta-v2-default-build/workspace/ruta-core/target/classes/org/apache/uima/ruta/engine/BasicEngine.xml
        Likely cause is the reuse of a Resource Manager object for a different pipeline, after it has already been initialized.
      	at org.apache.uima.ruta.NewCASPipelineTest.createAE(NewCASPipelineTest.java:63)
      	at org.apache.uima.ruta.NewCASPipelineTest.test(NewCASPipelineTest.java:70)
      

      org.apache.uima.ruta.ConflictingTypeTest.test

      org.apache.uima.UIMARuntimeException: 
      Illegal adding of additional MetaData after CASes have been defined.
        file:/var/lib/jenkins/jobs/EntwicklerTeam/jobs/content/jobs/uima/jobs/ruta-v2-default-build/workspace/ruta-core/target/classes/org/apache/uima/ruta/engine/BasicEngine.xml
        Likely cause is the reuse of a Resource Manager object for a different pipeline, after it has already been initialized.
      	at org.apache.uima.ruta.ConflictingTypeTest.createAE(ConflictingTypeTest.java:56)
      	at org.apache.uima.ruta.ConflictingTypeTest.test(ConflictingTypeTest.java:63)
      

      My guess: some test sets a ResourceManagerCreator to create a singleton resource manager and depending on the order in which the tests are executed, this sometimes causes tests to fail and other times not.

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: