Skip to content

Refactor pipeline to fetch + build? #281

Closed

Description

@cgwalters

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.

Activity

  1. cgwalters commented on Sep 6, 2018

    @cgwalters
    MemberAuthor

    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.

  2. yuqi-zhang commented on Sep 6, 2018

    @yuqi-zhang
    Contributor

    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.

  3. cgwalters commented on Sep 6, 2018

    @cgwalters
    MemberAuthor

    with some parallel

    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.

  4. yuqi-zhang commented on Sep 6, 2018

    @yuqi-zhang
    Contributor

    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.

  5. cgwalters commented on Sep 6, 2018

    @cgwalters
    MemberAuthor

    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.

  6. cgwalters commented on Sep 6, 2018

    @cgwalters
    MemberAuthor

    (And if you decide to jump on this I'd be happy to try to split up the work or collaborate on bjns, etc.)

  7. miabbott commented on Sep 6, 2018

    @miabbott
    Member

    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.

  8. arithx commented on Sep 6, 2018

    @arithx
    Contributor

    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.

    You can view the code for splitting off here.

  9. jlebon commented on Sep 19, 2018

    @jlebon
    Member

    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?

  10. cgwalters commented on Sep 19, 2018

    @cgwalters
    MemberAuthor

    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?

    Yep!

  11. cgwalters commented on Oct 30, 2018

    @cgwalters
    MemberAuthor

    This one still isn't fixed with v2, but it's lower priority now.

  12. openshift-bot commented on Aug 28, 2020

    @openshift-bot

    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

  13. added
    lifecycle/stale
    on Aug 28, 2020
  14. openshift-bot commented on Sep 27, 2020

    @openshift-bot

    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

  15. added
    lifecycle/rotten
    and removed
    lifecycle/stale
    on Sep 27, 2020
  16. openshift-bot commented on Oct 28, 2020

    @openshift-bot

    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

  17. openshift-ci-robot commented on Oct 28, 2020

    @openshift-ci-robot

    @openshift-bot: Closing this issue.

    Details

    In response to this:

    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

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rotten

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions