-
Notifications
You must be signed in to change notification settings - Fork 196
docker: Run tests in parallel #1257
docker: Run tests in parallel #1257
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chavafg - nice find!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
🤞
/test |
81d719a
to
ab9f028
Compare
/test |
ab9f028
to
93ffb32
Compare
/test |
👍 |
Got 1 failure on the fedora-vsocks job:
And lot of failures on the firecracker job. |
93ffb32
to
b1dd498
Compare
/test |
b1dd498
to
08e55eb
Compare
/test |
08e55eb
to
9aad83a
Compare
/test |
So I needed to decrease the number of parallel ginkgo processes to run the docker tests to I currently see errors on the ARM CI:
Any idea @Pennyzct ? |
Hi~ @chavafg I have been working on this for a while. Briefly speaking, when using virtio-blk representing guest rootfs, not NVDIMM, only one container could be launched simultaneously. |
@chavafg - do you know why you need Maybe it is to do with launching multiple containers in parallel and over-subscribing the vCPUs or similar - but I think we need to know a little detail. |
Thanks @Pennyzct :) @grahamwhaley hard to tell, I don't get failures all the time, but when I got them, they are because we are hitting the 60s timeout of each test, without errors on the kata-runtime log. I also got this error once on the CI:
but haven't been able to reproduce locally. anyway using |
Most of our docker tests can be executed in parallel. Use the `ginkgo -nodes` option to achieve this. The ones that cannot be run in parallel are now tagged in the test name as [Serial Test] to run them after we run the tests that can be run in parallel. After running several tests locally on different distros, the number of processes that we can spawn in parallel for these tests is `$(nproc) - 2`. If using `$(nproc)` or `$(nproc -1)`, some jobs become unstable. For firecracker, run all tests serialized. Fixes: kata-containers#1256. Signed-off-by: Salvador Fuentes <[email protected]>
9aad83a
to
a59331a
Compare
/test |
it's green - OK @chavafg , if you are happy that running in parallel will not make the tests less stable (and tbh, if they are, it is probably you who will end up chasing it down ;-) ), then let's merge it! |
Most of our docker tests can be executed in parallel.
Use the
ginkgo -p
option to achieve this.The ones that cannot be run in parallel are now tagged in
the test name as [Serial Test] to run them after we run
the tests that can be run in parallel.
This should reduce at least 10 minutes of CI time.
Fixes: #1256.
Signed-off-by: Salvador Fuentes [email protected]