OpenMRS Core Master

Build: #1857 failed Changes by Brian Njenga <bkuriakb@gmail.com>

Stages & jobs

  1. Build and Test

  2. Deploy

  3. Release

    Requires a user to start manually

Build result summary

Details

Completed
Queue duration
1 second
Duration
48 minutes
Labels
None
Revisions
openmrs-core
1477f73c283762ab367637991a6fbcd8983d4139 1477f73c283762ab367637991a6fbcd8983d4139
openmrs-standalone
5b99613f0bffb1ab3ffd50123096c7aa265d6620 5b99613f0bffb1ab3ffd50123096c7aa265d6620
Release scripts
5b416af0a90e6a162755d06d53b81d906ec4ef36 5b416af0a90e6a162755d06d53b81d906ec4ef36
Total tests
3909
Fixed in
#1859 (Changes by dkayiwa <kayiwadaniel@gmail.com>)

Tests

Responsible

No one has taken responsibility for this failure

Code commits

openmrs-core
Author Commit Message Commit date
Brian Njenga <bkuriakb@gmail.com> Brian Njenga <bkuriakb@gmail.com> 1477f73c283762ab367637991a6fbcd8983d4139 1477f73c283762ab367637991a6fbcd8983d4139 Add patient program changes (#2559)
Add program workflow dao and program workflow service changes

Add hibernate config mappings

Add unit test for program work flow implementation

Add patient program attribute

Add patient program attribute types

Add program service validator implementation

Add program service validator

Add coveredratio config to jacoco

Code clean up - add license header to all files, remove commented code

Add liquibase file for update 2.2

move programserviceImpl tests into separate file

add programserviceImpl tests file

Add dataset file for program attributes

Add doctype tag for hibernate config

Update hibernate mappings

Move autowired notation to proper position

Fix hibernate mapping for patient program

Rename class instance to use camel case

Remove unused comment

Restore security.java to default state

Remove unnecessary code

Update tests to include _should in statement

Add missing license header to all files

Fix codacy errors

Fix codacy issue

Remove unused imports and comment

Reduce scope to only changed parts

restore file to default state

Add missing comment to method body

Change variable name to a reasonable name

Add retired_by column to patient_program_attribute table

Remove voided columns

Add public modifier to methods in programworkflow service

Add public access modifier to methods in programworkflow dao

Change query to refer to patient_program table

Remove unused implementation class

Change priveleges for View to Get

Save attributes before saving patientprogram

Change from retired to voided

Add missing attributes for patient program

Remove package name from class name

Remove space

Pass patientprogram recieved from parameter

Change priveleges

Add assertion to check if attribute is dropped after purging

Remove unused code

Remove unused import

Fix indentation

Revert changes for unit test

Pass in a newly created object

Revert changes causing error

Configuration changes

Some of the jobs or stages referenced by this result no longer exist.

Restarting failed/incomplete builds only is not possible as some of the affected jobs no longer exist.

Tests

New test failures 10
Status Test View job Duration
Collapse Failed Database1_9_7UpgradeIT shouldMigrateDrugOrders History
Integration Test 6 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldAddTheNecessaryPrivilegesAndAssignThemToSpecificRoles History
Integration Test 10 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldPassIfAllExistingDrugOrderUnitsAndFrequenciesAreMappedToConcepts History
Integration Test 6 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldUpgradeFromClean1_9To1_10 History
Integration Test 10 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldUpgradeLiquibase History
Integration Test 7 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(20 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldSetValuesToNullIfUnitsOrFrequencyBlank History
Integration Test 17 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldPassIfThereAreAnyOrderTypesInTheDatabaseOtherThanDrugOrderTypeAndTheNewColumnsExist History
Integration Test 7 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldCreateDiscontinuationOrderForStoppedOrders History
Integration Test 14 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldConcatenateDoseStrengthAndUnits History
Integration Test 6 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)
Collapse Failed Database1_9_7UpgradeIT shouldConvertOrderersToBeingProvidersInsteadOfUsers History
Integration Test 11 secs
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::20151218-1530::Rahul,Swathi:
     Reason: liquibase.exception.DatabaseException: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Error executing SQL ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id): Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]:
          Caused By: Table "PROGRAM_ATTRIBUTE_TYPE" not found; SQL statement:
ALTER TABLE patient_program_attribute ADD CONSTRAINT patient_program_attribute_attributetype_fk FOREIGN KEY (attribute_type_id) REFERENCES program_attribute_type (program_attribute_type_id) [42102-196]
	at org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
(21 more lines...)