Looking at Github Actions and CI, it looks green but when building the openmrs-core locally two tests are failing and from the logs seems like a class in the hibernate configuration named MedicationDispense isn’t found during the plan .
INFO] Running org.openmrs.api.MedicationDispenseServiceTest
[ERROR] Tests run: 14, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.649 s <<< FAILURE! - in org.openmrs.api.MedicationDispenseServiceTest
[ERROR] saveMedicationDispense_shouldUpdateExistingMedicationDispense Time elapsed: 0.185 s <<< ERROR!
org.openmrs.api.APIException: Couldn't find a class in the hibernate configuration named: org.openmrs.MedicationDispense
at org.openmrs.api.MedicationDispenseServiceTest.saveMedicationDispense_shouldUpdateExistingMedicationDispense(MedicationDispenseServiceTest.java:173)
[ERROR] saveMedicationDispense_shouldSaveNewMedicationDispense Time elapsed: 0.159 s <<< ERROR!
org.openmrs.api.APIException: Couldn't find a class in the hibernate configuration named: org.openmrs.MedicationDispense
at org.openmrs.api.MedicationDispenseServiceTest.saveMedicationDispense_shouldSaveNewMedicationDispense(MedicationDispenseServiceTest.java:160)
Am failing to understand why the MedicationDispense class is failing to be found during the local build plan. Upstream(Actions and Bamboo) things are green.
@dkayiwa is MedicationDispense a special class that holds some metadata sources? and why was the build failing only on the local scale but upstream plans were green?