-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Reduce build duration #1149
Comments
This seems to have absolutely nothing to do with the number of images that we publish. We just added 2 new images and optimised the publishing time. Publishing time is now at 7min for linux as seen in https://trusted.ci.jenkins.io:1443/blue/organizations/jenkins/Containers%2FCore%20Release%20Containers/detail/master/5872/pipeline/22/, and 6 seconds when the image is already published. There's something wrong in the windows scripts which means windows builds are building new images every time the script is run, the build time you're looking at is all the windows build time. I'm not sure if there's much we can do about that? Do you consider 7 minutes too long or should this issue be re-scoped to be looking at the windows images / scripts? cc @slide |
Testing takes a long time on windows, as does the cleanup step at the end. We could reduce the tests or look at why cleanup takes so long |
Master build doesn’t run the tests so that shouldn’t matter? |
I've enabled timestamper so we can see where it's taking so long. Is it because we build two images one after another?
|
#1150 should make it go somewhat faster. Script needs looking at to see why it runs every time unlike the others |
7 minutes are great, assuming that's the time for all the things happening ❤️ (I usually care about the worst case, which is LTS + weekly at the same time). (Honestly 20 minutes would be great already for all the things; but we've been at 50 minutes before. Unfortunately I didn't check the June 30 build before it got rotated due to other stuff going on at the same time.) |
Removing one Windows image took it down to 12 minutes. Enabling timestamper has shown that it takes 10minutes to pull the windows upstream base image and 2minutes to build our image and push it. @slide is this some windows docker known issue or is the upstream image just huge (it's 2.57GB)? It may be this issue: moby/moby#39832 |
If that's the upper bound even for security releases, this issue can be closed. |
The 1809 images are definitely the biggest, MS had reduced the size of need images, though the server core images are still over a gig usually. |
Took 33 minutes today 😭 Up from 20 minutes in Jan 2020. |
Some facts to help:
2 actions for the "publish" build time
|
the fix is really image staging, security team shouldn't care that the build is slow. Jenkins core takes ~2->2.5 hours to release, while yes this was slow and good ideas for improvement thanks Damien :), it's not long unless you are watching it. I've created a placeholder issue for it #1228 please feel free to add requirements, design or suggestions to it (or implementation :D ) |
Yep, we do this a few days earlier and I don't care. Packages are painful at 17-20 minutes each too, and I've requested staging there forever 😢 So, yes, staging here would be great. We have Docker repos on repo.jenkins-ci.org which can probably support that. |
The average build time, as for today, are:
Closing this issue as the next steps are staging releases |
We now have a dozen different Docker images, despite us consistently being terrible at actually maintaining them.
I understand that my position of not catering to everyone who shows up and wants their favorite niche distro supported (to externalize the costs of maintaining the image to someone else) is not one that'll gain traction here…
But could we at least reduce the build duration? The build duration when there is nothing to do is now at 20 minutes. I expect we're probably at more than an hour now for security updates, and that's completely unreasonable.
The text was updated successfully, but these errors were encountered: