Skip to content

Tests are failing when running on M1 Mac #57

Closed
@onobc

Description

@onobc

Steps to reproduce: Run gradle clean build on an M1 Mac.

Possible cause: Pulsar image running super slow because of M1 Mac?

Workaround: Modify the image used in https://github.com/spring-projects-experimental/spring-pulsar/blob/749f2dbb5e386f77e842af2ece547fbdc0e8f84f/spring-pulsar/src/test/java/org/springframework/pulsar/core/AbstractContainerBaseTests.java#L24
with

static final DockerImageName PULSAR_IMAGE = DockerImageName.parse("kezhenxu94/pulsar").asCompatibleSubstituteFor("apachepulsar/pulsar");

Work items

  1. Understand what the root cause is. What is in the alternative image that makes it work? Is there some other change we should be considering or is this just the "M1 support in general is still catching up" category?
  2. Temporary stop-gap so that other users do not run into this, we could implement the above workaround automatically via Junit5 @EnabledOnOs annotation (one for M1 and one for all others).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions