google/exposure-notifications-verification-server

Modeler tests have different results on ARM

mikehelmick opened this issue · 2 comments

TL;DR

One of the modeler tests has a different results on ARM (Apple M1) vs Intel processors.

--- FAIL: TestRebuildAbusePreventionModel (4.95s)
    modeler_test.go:160: expected 21 to be 22

Expected behavior

Math works the same everywhere

Observed behavior

Math doesn't work the same everywhere

Reproduction

go test ./...

Environment

Mac OS, M1 Pro processor

Interestingly, this returns 21 even in Rosetta (ARM operating in Intel mode):

arch && go test -run TestRebuildAbusePreventionModel ./pkg/controller/modeler/...
i386

--- FAIL: TestRebuildAbusePreventionModel (0.68s)
    modeler_test.go:160: expected 21 to be 22
FAIL
FAIL	github.com/google/exposure-notifications-verification-server/pkg/controller/modeler	5.919s
FAIL