Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zyga opened this issue Feb 1, 2023 · 0 comments
Open

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

zyga opened this issue Feb 1, 2023 · 0 comments

Comments

@zyga
Copy link

zyga commented Feb 1, 2023

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).

zyga added a commit to zyga/hawkbit-extensions that referenced this issue Feb 1, 2023
This is known to pass, today, on x86_64 and fail on aarch64 due to
eclipse#84

Since the goal is to test unreleased HawkBit + unreleased HawkBit extensions,
both are built in sequence to satisfy dependencies that are not available
through maven as releases.

HawkBit tests are skipped to speed up the build process.

Signed-off-by: Zygmunt Krynicki <me@zygoon.pl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant