uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Eckart de Castilho (Jira)" <...@uima.apache.org>
Subject [jira] [Resolved] (UIMA-6233) Failing unit tests depending on test execution order
Date Fri, 15 May 2020 15:04:00 GMT

     [ https://issues.apache.org/jira/browse/UIMA-6233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard Eckart de Castilho resolved UIMA-6233.
----------------------------------------------
    Resolution: Fixed

> Failing unit tests depending on test execution order
> ----------------------------------------------------
>
>                 Key: UIMA-6233
>                 URL: https://issues.apache.org/jira/browse/UIMA-6233
>             Project: UIMA
>          Issue Type: Improvement
>          Components: Ruta
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>            Priority: Major
>             Fix For: 2.8.2ruta, 3.0.2ruta
>
>
> There are two tests which fail on some systems but not on all (most):
> *org.apache.uima.ruta.NewCASPipelineTest.test*
> {code}
> 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)
> {code}
> *org.apache.uima.ruta.ConflictingTypeTest.test*
> {code}
> 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)
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message