OpenMRS Core Master

Build: #2199 failed

Job: Integration Test failed

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Test results

  • 53 tests in total
  • 10 tests failed
  • 10 failures are new
  • 3 tests were quarantined / skipped
  • 2 minutes taken in total.

Build 2,199 has the following 10 errors: 10 new failure(s) occurred since the previous build.

New test failures 10
Status Test Duration
Collapse Failed Database1_9_7UpgradeIT shouldAddTheNecessaryPrivilegesAndAssignThemToSpecificRoles History
14 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldAddTheNecessaryPrivilegesAndAssignThemToSpecificRoles(Database1_9_7UpgradeIT.java:498)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldConcatenateDoseStrengthAndUnits History
13 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldConcatenateDoseStrengthAndUnits(Database1_9_7UpgradeIT.java:337)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldConvertOrderersToBeingProvidersInsteadOfUsers History
14 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldConvertOrderersToBeingProvidersInsteadOfUsers(Database1_9_7UpgradeIT.java:304)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldCreateDiscontinuationOrderForStoppedOrders History
13 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldCreateDiscontinuationOrderForStoppedOrders(Database1_9_7UpgradeIT.java:416)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldMigrateDrugOrders History
13 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldMigrateDrugOrders(Database1_9_7UpgradeIT.java:197)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts History
12 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts(Database1_9_7UpgradeIT.java:275)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldPassIfThereAreAnyOrderTypesInTheDatabaseOtherThanDrugOrderTypeAndTheNewColumnsExist History
12 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldPassIfThereAreAnyOrderTypesInTheDatabaseOtherThanDrugOrderTypeAndTheNewColumnsExist(Database1_9_7UpgradeIT.java:402)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldSetValuesToNullIfUnitsOrFrequencyBlank History
12 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldSetValuesToNullIfUnitsOrFrequencyBlank(Database1_9_7UpgradeIT.java:456)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldUpgradeFromClean1_9To1_10 History
14 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldUpgradeFromClean1_9To1_10(Database1_9_7UpgradeIT.java:149)
(13 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldUpgradeLiquibase History
11 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
java.io.IOException: 
liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::TRUNK-5728-2020-04-15::samuel34:
     Reason: liquibase.exception.DatabaseException: Constraint "ENCOUNTER_ID_FK" already exists; SQL statement:
ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id) [90045-199] [Failed SQL: (90045) ALTER TABLE PUBLIC.conditions ADD CONSTRAINT encounter_id_fk FOREIGN KEY (encounter_id) REFERENCES PUBLIC.encounter (encounter_id)]
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldUpgradeLiquibase(Database1_9_7UpgradeIT.java:514)
(13 more lines...)