You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I'm thinking about the tagging issue...what if we had just two Jenkinsfiles:
Jenkinsfile.fetch
Jenkinsfile.build
And rdgo, treecompose, cloud were folded underneath build. Having them asynchronous is somewhat helpful for development, but I am starting to conclude it's not quite worth it. Building a qcow2 just takes 3 minutes.
(The slowest part is AWS upload at 15-20 mins...we may want to consider splitting that off)
The advantage of this (for tagging) is that we can more easily "bind" together our various artifacts. An oscontainer is only pushed if a VM image is built - we can use the same version numbering.
Another major advantage of this is that we can drop some of the hacks in Jenkinsfile.cloud to try to sync up the ostree version; if they're unified we actually have the oscontainer version handy there.
To keep this ultra-simple to start we could just have Jenkinsfile to start (i.e. fold fetch/build). But the advantage of splitting those two is one doesn't need to wade through lots of "no changes" jobs.
So effectively build would be rdgo->treecompose->cloud, with some parallel? And have the aws upload/test split out in the current aws-test job?
I agree that its an easier way to handle the artifact syncing. Only minor concern is that errors in say, cloud would fail the whole build job, which causes minor de-syncs and makes it slightly harder to pinpoint exact issues. But I guess we have that issue with our async builds anyways, so that's probably fine.
I don't think we can parallelize anything that isn't parallelized today. The more I think about this the more I feel historically I was wrong (and I argued this a lot) that treecompose should be async from image builds. But...building the images just isn't that slow if done right.
I'm down to give it a try. We also did mention at some point to add the ability to create scratch directories for pipeline testing. It might be nice to add that in as well while we're overhauling the builds.
Offhand...my proposal is that you take a look at doing a smaller-scale change like going back and tagging the oscontainer after VM tests have passed, and while you're reading the code and planning changes for that - think about whether it'd be easier to do this.
If so, be sure to announce it as anyone else doing pipeline changes will conflict.
I like the idea of binding the whole artifact generation process together (rdgo->treecompose->image); it should be easier to trace the build process that way. And we get the benefit of being able to more easily tag all the artifacts at the same time. Maybe we can even divorce the push of the artifacts from the test/tagging into a separate job, too.
@yuqi-zhang I'd say go with @cgwalters proposal about implementing tagging and we can continue to think about how to break apart the jobs into the right pieces.
I believe @arithx had mentioned the multiple jobs jenkins-os used on the CL side. Perhaps he has ideas around this, too.
jenkins-os does multiple stages for each platform. Once the image has been built for the various versions it splits off into the prerelease jobs if they exist for the platform, which will handle uploading the images; next the individual kola jobs are ran.
Is part of this about pivoting from coreos-assembler:alpha to coreos-assembler:latest? I.e. Jenkinsfile.fetch does coreos-assembler fetch and Jenkinsfile.build does coreos-assembler build?
Is part of this about pivoting from coreos-assembler:alpha to coreos-assembler:latest? I.e. Jenkinsfile.fetch does coreos-assembler fetch and Jenkinsfile.build does coreos-assembler build?
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Activity
cgwalters commentedon Sep 6, 2018
To keep this ultra-simple to start we could just have
Jenkinsfileto start (i.e. fold fetch/build). But the advantage of splitting those two is one doesn't need to wade through lots of "no changes" jobs.yuqi-zhang commentedon Sep 6, 2018
So effectively build would be rdgo->treecompose->cloud, with some parallel? And have the aws upload/test split out in the current aws-test job?
I agree that its an easier way to handle the artifact syncing. Only minor concern is that errors in say,
cloudwould fail the wholebuildjob, which causes minor de-syncs and makes it slightly harder to pinpoint exact issues. But I guess we have that issue with our async builds anyways, so that's probably fine.cgwalters commentedon Sep 6, 2018
I don't think we can parallelize anything that isn't parallelized today. The more I think about this the more I feel historically I was wrong (and I argued this a lot) that treecompose should be async from image builds. But...building the images just isn't that slow if done right.
yuqi-zhang commentedon Sep 6, 2018
I'm down to give it a try. We also did mention at some point to add the ability to create scratch directories for pipeline testing. It might be nice to add that in as well while we're overhauling the builds.
Tagging @miabbott for his thoughts.
cgwalters commentedon Sep 6, 2018
Offhand...my proposal is that you take a look at doing a smaller-scale change like going back and tagging the oscontainer after VM tests have passed, and while you're reading the code and planning changes for that - think about whether it'd be easier to do this.
If so, be sure to announce it as anyone else doing pipeline changes will conflict.
cgwalters commentedon Sep 6, 2018
(And if you decide to jump on this I'd be happy to try to split up the work or collaborate on bjns, etc.)
miabbott commentedon Sep 6, 2018
I like the idea of binding the whole artifact generation process together (rdgo->treecompose->image); it should be easier to trace the build process that way. And we get the benefit of being able to more easily tag all the artifacts at the same time. Maybe we can even divorce the push of the artifacts from the test/tagging into a separate job, too.
@yuqi-zhang I'd say go with @cgwalters proposal about implementing tagging and we can continue to think about how to break apart the jobs into the right pieces.
I believe @arithx had mentioned the multiple jobs
jenkins-osused on the CL side. Perhaps he has ideas around this, too.arithx commentedon Sep 6, 2018
jenkins-osdoes multiple stages for each platform. Once the image has been built for the various versions it splits off into the prerelease jobs if they exist for the platform, which will handle uploading the images; next the individual kola jobs are ran.You can view the code for splitting off here.
jlebon commentedon Sep 19, 2018
Is part of this about pivoting from
coreos-assembler:alphatocoreos-assembler:latest? I.e.Jenkinsfile.fetchdoescoreos-assembler fetchandJenkinsfile.builddoescoreos-assembler build?cgwalters commentedon Sep 19, 2018
Yep!
cgwalters commentedon Oct 30, 2018
This one still isn't fixed with v2, but it's lower priority now.
openshift-bot commentedon Aug 28, 2020
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
openshift-bot commentedon Sep 27, 2020
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle rotten
/remove-lifecycle stale
openshift-bot commentedon Oct 28, 2020
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.Mark the issue as fresh by commenting
/remove-lifecycle rotten.Exclude this issue from closing again by commenting
/lifecycle frozen./close
openshift-ci-robot commentedon Oct 28, 2020
@openshift-bot: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.