-
Notifications
You must be signed in to change notification settings - Fork 97
Add local cache images layer for docker images on build #514
Comments
See also: #512 (comment) |
@sleipnir CI just happend to work, by accident, as I restarted the jobs two times in europe daytime timezone: I agree on the fs-layer timeouts happen because of some probably highly fetched layers. One I saw multiple times is |
@sleipnir I'm surprised by the persistence of this timeout, excacly for this image. Also travis documentation states: I'm not sure how to progress with that. |
Hi @marcellanz "Docker images are not cached, because we provide a new virtual machine for each build." And this is exactly what we need, I explain: When a job is launched Travis creates a virtual machine, installs everything he needs and runs the tasks defined in the CI file. What happens in our case is that our tasks execute the tests and it is the tests that download the images, this affects the test execution time itself which leads to timeout errors. We are not interested, yet, in speeding up build times. We are interested primarily that they perform without errors orthogonal to the tests themselves. That said, what we need Travis to do is: When a job is launched Travis creates a virtual machine, install everything you need and run the tasks defined in the CI file. One of these tasks would be to download the images to the virtual machine before running the tests via sbt. The key here is to get images from the local disk at the time of the test instead of the network. If you look at the job logs that gave errors you will see that in the end all layers of the images are successfully downloaded, unfortunately this occurs after the test is aborted with a Timeout error. Bringing the image to the disk (no matter how long it lasts before running the test) will solve the problem. I think that would be it. What do you think? |
We should be able to just change the command to |
See discussion here #512
Proposals to resolve this issue:
Add calls to docker pull in the travis script before running tests via sbt.
Increase TCK test timeout times
The text was updated successfully, but these errors were encountered: