hawkbit-extensions
hawkbit-extensions copied to clipboard
Mongo extension tests fail on aarch64 (aka arm64)
Trying to build the extension on aarch64 system like the Apple M* family of SoCs fails as de.flapdoodle.embed.mongo
dependency seems to download mnogo binary and it assumes to run on an x86 system.
A typical mvn
failure log looks like this:
#15 9.303 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'embeddedMongoServer' defined in class path resource [org/springframework/boot/autoconfigure/mongo/embedded/EmbeddedMongoAutoConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [de.flapdoodle.embed.mongo.MongodExecutable]: Factory method 'embeddedMongoServer' threw exception; nested exception is de.flapdoodle.embed.process.exceptions.DistributionException: prepare executable
This causes failures of:
#15 9.414 [ERROR] Errors:
#15 9.414 [ERROR] MongoDBArtifactStoreTest.deleteArtifactBySHA1Hash ? IllegalState Failed to load ApplicationContext
#15 9.414 [ERROR] MongoDBArtifactStoreTest.deleteTenant ? IllegalState Failed to load ApplicationContext
#15 9.415 [ERROR] MongoDBArtifactStoreTest.findArtifactBySHA1Hash ? IllegalState Failed to load ApplicationContext
#15 9.415 [ERROR] MongoDBArtifactStoreTest.storeSameArtifactMultipleTimes ? IllegalState Failed to load ApplicationContext
The issue persists even with updated test dependency (I've tried 4.4.0). This seems related to https://github.com/flapdoodle-oss/de.flapdoodle.embed.mongo/issues/427 (here x86 vs x86_64 misdirection occurs).