Skip to content

Conversation

@adlio
Copy link
Owner

@adlio adlio commented Mar 25, 2022

A timezone handling issue and a lack of support for ARM64 architecture in the MySQL container were causing tests to fail when run on M1 Macs. This PR fixes that and prepares a mechanism to skip certain database tests on certain architectures.

adlio added 2 commits March 25, 2022 11:55
The library/mysql container doesn't support arm64/v8,
which caused the tests to not be runnable on M1 Macs.

This commit adds two ways to solve this:

1. TestDB now has a SkippedArchs property, which
allows certain Docker containers to be tagged to
not support certain runtime.GOARCH strings. These
cause a skipped test when used.
2. The MySQL test container was switched from
libary/mysql to mysql/mysql-server (the one produced
directly by the MySQL team), which *does* support
arm64/v8, but only on the latest MySQL 8 version.
@adlio adlio merged commit 1aa7823 into main Mar 25, 2022
@adlio adlio deleted the m1-testing branch March 25, 2022 19:01
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

Successfully merging this pull request may close these issues.

2 participants