fluent-kit
fluent-kit copied to clipboard
Tests failing on trunk


Steps to reproduce
- Checkout branch main on 2b3ac0556740ea8d68f8616917daf64338d54c1b
- Run all tests
Environment
- M1 chipset
- macOS 12.3.1
- swift-driver version: 1.45.2 Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
- Xcode Version 13.3 (13E113)
- Target platform - macOS
It looks like the ordering of parameters in FluentKit is not consistent on macOS - on Linux we seem to have no issues and CI is always fine.
cc @gwynne
This works in CI because we set SWIFT_DETERMINISTIC_HASHING
in the environment; it's just blind luck if it works on Linux without that. At this time, setting the env var is considered a requirement to ensure that tests pass, since fixing it in Fluent proper would introduce performance regressions (due to excess sorting), and working around it in the tests is not always practical.