Skip to content

Mongo extension tests fail on aarch64 (aka arm64) #84

Open
@zyga

Description

@zyga

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 flapdoodle-oss/de.flapdoodle.embed.mongo#427 (here x86 vs x86_64 misdirection occurs).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions