[[email protected]] `tenant_domain_with_a_global_acme_provider_is_migrated` test fails on `aarch64-darwin` using `oss` variant

Your question

I am building stalwart-migrate (oss variant with excludes enterprise and foundation build features) from source, and I have noticed tenant_domain_with_a_global_acme_provider_is_migrated test never succeeds on aarch64-darwin. It’s been recurrent since it was introduced in v1.0.1. The same test on x86_64-linux passes. Additionally, the default variant has no build or e2e test integration failures.

...
failures:

---- tenant_domain_with_a_global_acme_provider_is_migrated stdout ----

thread 'tenant_domain_with_a_global_acme_provider_is_migrated' (32543431) panicked at crates/migrate/tests/e2e.rs:3140:5:
[RegistryRecord { key: RegistryKey { object: "x:Domain", id: Id(5) }, json: Object {"aliases": Object {}, "allowRelaying": Bool(false), "catchAllAddress": Null, "certificateManagement": Object {"@type": String("Automatic"), "acmeProviderId": String("iq23htewaaqa"), "subjectAlternativeNames": Object {}}, "createdAt": String("2026-10-27T23:41:50Z"), "description": Null, "dkimManagement": Object {"@type": String("Automatic"), "algorithms": Object {"Dkim1Ed25519Sha256": Bool(true), "Dkim1RsaSha256": Bool(true)}, "deleteAfter": Number(2592000000), "retireAfter": Number(604800000), "rotateAfter": Number(7776000000), "selectorTemplate": String("v{version}-{algorithm}-{date-%Y%m%d}")}, "dnsManagement": Object {"@type": String("Manual")}, "enable": Bool(true), "name": String("example.org"), "reportAddressUri": String("mailto:postmaster"), "subAddressing": Object {"@type": String("Enabled")}} }]
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Help explain the purpose of this test and help me determine if this is a false positive.


edit: update target platform that it was failing on from aarch64-linux to aarch64-darwin

I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.

on

This isn’t covered in the current docs. A community member or staff member will follow up.

This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.

It’s a false positive, and it has nothing to do with aarch64-darwin. The test only makes sense with the enterprise feature, and it was missing the #[cfg(feature = "enterprise")] gate the other enterprise-only tests in e2e.rs have. Your x86_64-linux pass was most likely a default build; I get the same failure on any platform once enterprise is off.

The test covers tenant scoping. Stalwart 1.0 refuses a reference from an object in one tenant to an object outside it, so when a 0.16 domain belongs to a tenant and points at an ACME provider that belongs to no tenant, the migration has to deal with that reference or v1 rejects the domain. The test seeds exactly that and checks the result.

Without enterprise there are no tenants at all: memberTenantId is dropped from the domain, the reference to the provider is valid, and the domain keeps Automatic certificate management with its acmeProviderId. That’s the record in your panic output, and it’s the correct result for that build. The assertion just expected the tenant behaviour.

I’ve added the gate, so the next stalwart-migrate release skips this test when enterprise is off. The rest of the e2e suite passes in that configuration.

One note on the build itself: the variant without enterprise is meant for Stalwart servers that were also compiled without the enterprise feature. If your server is a regular release build, use the default stalwart-migrate build.