-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature]: fast make unit
on Apple M1
#7084
Comments
How long does it take for you? As is, afaict, it actually runs all the tests serially, to ensure that it's testing all the internal packages and migrations, etc. If you do a normal My time locally for the parallel command above:
|
Hmm, that command is similar for me, 10:47.56 total What I had been running and didn't work for me was |
In my laptop (linux 5.15, 8 core AMD 5850U , 32Gb RAM), running
|
Yes, that is roughly what I am seeing on an AMD ryzen machine too. On M1, it times out though. Unless I run in docker. |
This is a relevant thread too: https://twitter.com/marcan42/status/1494213862970707969?lang=en It almost looks like running code in a docker on macos bypasses a proper fsync. And this makes unit tests fast :( More on mac docker and syncing: docker/for-mac#668 |
It seems that
make unit
is unworkably slow on Apple M1 machines. Potentially because of etcd-io/bbolt#149.What fixes it for me is to run
make unit
inside a simple docker container.This issue is about adding a new make target for
unit-in-container
to make fast unit tests easy.The text was updated successfully, but these errors were encountered: