Sonar metrics for OpenMRS Core Master

Build: #469 failed Manual run by Rafal Korytkowski

Test results

  • 3,389 tests in total
  • 5 tests failed
  • 5 failures are new
  • 32 tests were quarantined / skipped
  • 10 minutes taken in total.
New test failures 5
Status Test View job Duration
Collapse Failed SchedulerFormControllerTest onSubmit_shouldNotRescheduleAnExecutingTask History
Sonar Full Analysis < 1 sec
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "CONSTRAINT_INDEX_24 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('29754c38-6711-11e0-9d74-18a905e044dc', 22)"; SQL statement: insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-183]
org.h2.jdbc.JdbcSQLException: Unique index or primary key violation: "CONSTRAINT_INDEX_24 ON PUBLIC.SCHEDULER_TASK_CONFIG(UUID) VALUES ('29754c38-6711-11e0-9d74-18a905e044dc', 22)"; SQL statement:
insert into SCHEDULER_TASK_CONFIG (TASK_CONFIG_ID, NAME, DESCRIPTION, SCHEDULABLE_CLASS, REPEAT_INTERVAL, STARTED, START_ON_STARTUP, UUID, CREATED_BY, DATE_CREATED) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [23505-183]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
	at org.h2.message.DbException.get(DbException.java:179)
	at org.h2.message.DbException.get(DbException.java:155)
	at org.h2.index.BaseIndex.getDuplicateKeyException(BaseIndex.java:102)
	at org.h2.mvstore.db.MVSecondaryIndex.add(MVSecondaryIndex.java:203)
(49 more lines...)
Collapse Failed TaskHelperTest getScheduledTaskDefinition_shouldReturnATaskThatHasBeenStarted History
Sonar Full Analysis < 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
	at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(64 more lines...)
Collapse Failed TaskHelperTest waitUntilTaskIsExecuting_shouldWaitUntilTaskIsExecuting History
Sonar Full Analysis < 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
	at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(64 more lines...)
Collapse Failed TaskHelperTest getUnscheduledTaskDefinition_shouldReturnATaskThatHasNotBeenStarted History
Sonar Full Analysis < 1 sec
org.hibernate.NonUniqueResultException: query did not return a unique result: 2
	at org.hibernate.impl.AbstractQueryImpl.uniqueElement(AbstractQueryImpl.java:899)
	at org.hibernate.impl.CriteriaImpl.uniqueResult(CriteriaImpl.java:369)
	at org.openmrs.scheduler.db.hibernate.HibernateSchedulerDAO.getTaskByName(HibernateSchedulerDAO.java:93)
	at org.openmrs.scheduler.timer.TimerSchedulerServiceImpl.getTaskByName(TimerSchedulerServiceImpl.java:390)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
(64 more lines...)
Collapse Failed TaskHelperTest waitUntilTaskIsExecuting_shouldRaiseATimeoutExceptionWhenTheTimeoutIsExceeded History
Sonar Full Analysis < 1 sec
java.lang.Exception: Unexpected exception, expected<java.util.concurrent.TimeoutException> but was<org.hibernate.NonUniqueResultException>
	at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:28)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:73)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
	at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:73)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
(68 more lines...)
Quarantined tests 1
Status Test Failing since Quarantined by View job Duration
Successful ModuleActivatorTest shouldStopDependantModulesOnStopModule History
Failing since build #468 (Manual run by Rafal Korytkowski) Rafal Korytkowski Rafal Korytkowski
Sonar Full Analysis 7 secs
Skipped tests 31
Status Test Failing since View job
Skipped AdministrationServiceTest setImplementationId_shouldOverwriteImplementationIdInDatabaseIfExists History
Sonar Full Analysis
Skipped AdministrationServiceTest setImplementationId_shouldSetUuidOnImplementationIdGlobalProperty History
Sonar Full Analysis
Skipped AdministrationServiceTest getPresentationLocales_shouldReturnAtLeastOneLocaleIfNoLocalesDefinedInDatabaseYet History
Sonar Full Analysis
Skipped AdministrationServiceTest setImplementationId_shouldCreateImplementationIdInDatabase History
Sonar Full Analysis
Skipped ConceptServiceTest saveConcept_shouldNotSetAuditInfoIfTheConceptIsNotEdited History
Sonar Full Analysis
Skipped EncounterServiceTest getEncounters_shouldNotReturnVoidedEncountersIfIncludeVoidedIsSetToTrue History
Sonar Full Analysis
Skipped EncounterServiceTest saveEncounter_shouldVoidAndCreateNewObsWhenSavingEncounter History
Sonar Full Analysis
Skipped EncounterServiceTest getEncounters_shouldGetAllTheUniqueEncountersThatMatchTheSpecifiedParameterValues History
Sonar Full Analysis
Skipped NoteServiceTest org.openmrs.api.NoteServiceTest History
Sonar Full Analysis
Skipped OpenmrsServiceTest shouldCheckThatAMethodIsNotRolledBackInCaseOfAnErrorInAnotherInvokedInsideIt History
Sonar Full Analysis
Skipped PatientServiceTest voidPatient_shouldReturnNullWhenPatientIsNull History
Sonar Full Analysis
Skipped PatientServiceTest checkPatientIdentifiers_shouldThrowErrorWhenPatientHasIdenticalIdentifiers History
Sonar Full Analysis
Skipped ProviderServiceTest getCountOfProviders_shouldIncludeRetiredProvidersIfIncludeRetiredIsSetToTrue History
Sonar Full Analysis
Skipped ProviderServiceTest getCountOfProviders_shouldExcludeRetiredProviders History
Sonar Full Analysis
Skipped UserServiceTest changeQuestionAnswer_shouldChangeTheSecretQuestionAndAnswerForGivenUser History
Sonar Full Analysis
Skipped ConceptDAOTest getConcepts_shouldReturnCorrectResultsIfAConceptNameContainsSameWordMoreThanOnce History
Sonar Full Analysis
Skipped ConceptDAOTest getConcepts_shouldReturnCorrectResultsForConceptWithNamesThatContainsWordsWithMoreWeight History
Sonar Full Analysis
Skipped ArdenServiceTest compileFile_shouldGetAndParseMlms History
Sonar Full Analysis
Skipped HL7ServiceTest processHL7InQueue_shouldParseOruR01MessageUsingOverriddenParserProvidedByAModule History
Sonar Full Analysis
Skipped HL7ServiceTest processHL7Message_shouldParseMessageTypeSuppliedByModule History
Sonar Full Analysis
Skipped SchedulerServiceTest org.openmrs.scheduler.SchedulerServiceTest History
Sonar Full Analysis
Skipped SchedulerFormControllerTest onSubmit_shouldNotRescheduleATaskIfTheStartTimeHasPassed History
Sonar Full Analysis
Skipped ConceptReferenceTermValidatorTest validate_shouldFailIfTheNameIsNull History
Sonar Full Analysis
Skipped ConceptReferenceTermValidatorTest validate_shouldFailIfTheNameIsAWhiteSpaceCharacter History
Sonar Full Analysis
Skipped ConceptReferenceTermValidatorTest validate_shouldFailIfTheNameIsAnEmptyString History
Sonar Full Analysis
Skipped VisitValidatorTest validate_shouldFailIfAnAttributeIsBad History
Sonar Full Analysis
Skipped DWRPatientServiceTest findPatients_shouldGetResultsForPatientsThatHaveEditedThemselves History
Sonar Full Analysis
Skipped DWRPatientServiceTest findPatients_shouldLoggedInUserShouldLoadTheirOwnPatientObject History
Sonar Full Analysis
Skipped DWRProviderServiceTest findProviderCountAndProvider_shouldReturnTheCountOfAllProvidersMatchingTheSearchedNameAlongWithProviderList History
Sonar Full Analysis
Skipped FilterUtilTest storeLocale_shouldRestoreLocale History
Sonar Full Analysis
Skipped FilterUtilTest storeLocale_shouldStoreLocale History
Sonar Full Analysis