The Allergy API plan. More details of the release in https://wiki.openmrs.org/x/i4DTAw

Build: #22 failed

Job: Default Job failed

Stages & jobs

  1. Default Stage

  2. Release to maven

    Requires a user to start manually

Job result summary

Completed
Duration
31 seconds
Revision
874ce4124d133c9a4ba40c2c370b7f773a9d3590 874ce4124d133c9a4ba40c2c370b7f773a9d3590
Total tests
21
Fixed in
#23 (Code changes detected)

Tests

  • 21 tests in total
  • 8 tests failed
  • 8 failures are new
  • 17 seconds taken in total.
New test failures 8
Status Test Duration
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithAddedReactions History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(72 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithEditedCodedAllergen History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(72 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithEditedComment History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(70 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithEditedNonCodedAllergen History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(70 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithEditedReactionCoded History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(72 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithEditedReactionNonCoded History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(70 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithEditedSeverity History
< 1 sec
org.hibernate.HibernateException: Don't change the reference to a collection with cascade="all-delete-orphan": org.openmrs.module.allergyapi.Allergy.reactions
	at org.hibernate.engine.Collections.prepareCollectionForUpdate(Collections.java:248)
	at org.hibernate.engine.Collections.processReachableCollection(Collections.java:207)
	at org.hibernate.event.def.FlushVisitor.processCollection(FlushVisitor.java:60)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:122)
	at org.hibernate.event.def.AbstractVisitor.processValue(AbstractVisitor.java:83)
	at org.hibernate.event.def.AbstractVisitor.processEntityPropertyValues(AbstractVisitor.java:77)
	at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:165)
(70 more lines...)
Collapse Failed AllergyServiceTest setAllergies_shouldVoidAllergiesWithRemovedReactions History
< 1 sec
org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [org.openmrs.module.allergyapi.AllergyReaction#1]
	at org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:638)
	at org.hibernate.event.def.DefaultDeleteEventListener.onDelete(DefaultDeleteEventListener.java:120)
	at org.hibernate.impl.SessionImpl.fireDelete(SessionImpl.java:965)
	at org.hibernate.impl.SessionImpl.delete(SessionImpl.java:948)
	at org.hibernate.engine.Cascade.deleteOrphans(Cascade.java:486)
	at org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:455)
	at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:362)
(81 more lines...)