Skip to content

Building OpenShift took longer than before #1044

Closed

Description

@mfojtik

I've noticed this last week, the ./hack/build-go.sh is taking a bit more than it was before. I wonder if there were some changes in the way we build or something I can turn off to make it build faster.

With 'make clean':

 ~/go/src/github.com/openshift/origin → time make
hack/build-go.sh 
++ Building go targets for linux/amd64:  cmd/openshift
++ Placing binaries

real    0m12.931s
user    0m27.710s
sys 0m3.890s

It used to be ~5s before. @smarterclayton any ideas?

Activity

  1. smarterclayton commented on Feb 17, 2015

    @smarterclayton
    Contributor

    ask dan mace

    ----- Original Message -----

    I've noticed this last week, the ./hack/build-go.sh is taking a bit more
    than it was before. I wonder if there were some changes in the way we build
    or something I can turn off to make it build faster.

    With 'make clean':

     ~/go/src/github.com/openshift/origin → time make
    hack/build-go.sh
    ++ Building go targets for linux/amd64:  cmd/openshift
    ++ Placing binaries
    
    real  0m12.931s
    user  0m27.710s
    sys   0m3.890s
    

    It used to be ~5s before. @smarterclayton any ideas?


    Reply to this email directly or view it on GitHub:
    #1044

  2. mfojtik commented on Feb 19, 2015

    @mfojtik
    ContributorAuthor
  3. ironcladlou commented on Feb 19, 2015

    @ironcladlou
    Contributor

    Couldn't reproduce yet on OSX.

  4. smarterclayton commented on Feb 19, 2015

    @smarterclayton
    Contributor

    I haven't noticed a significant reversion - we should still be doing a single go install to build the binary, so either it's something changed related to that, or the size of the binary / things we compile dramatically increased.

    ----- Original Message -----

    Couldn't reproduce yet on OSX.


    Reply to this email directly or view it on GitHub:
    #1044 (comment)

  5. smarterclayton commented on Feb 20, 2015

    @smarterclayton
    Contributor

    @ironcladlou this is why:

    $ hack/build-go.sh 
    ++ Building go targets for darwin/amd64: images/pod examples/hello-openshift cmd/openshift
    ++ Placing binaries
    
  6. ironcladlou commented on Feb 20, 2015

    @ironcladlou
    Contributor

    Clean build is 19s for me, incremental is 5s. Makes sense that adding more targets as we have increases the time.

    Two things we could do:

    1. Only build image binaries during make-release (I don't like this: you won't know you broke stuff until you run make-release)
    2. Just run hack/build-go.sh cmd/openshift if you only want to build the openshift binary.

    Thoughts?

  7. mfojtik commented on Feb 20, 2015

    @mfojtik
    ContributorAuthor

    @ironcladlou 2) is ~ 12s for me which is reasonable :-) thank for this hint

  8. smarterclayton commented on Feb 20, 2015

    @smarterclayton
    Contributor

    ----- Original Message -----

    Clean build is 19s for me, incremental is 5s. Of course adding more targets
    increases the size.

    Two things we could do:

    1. Only build image binaries during make-release (I don't like this: you
      won't know you broke stuff until you run make-release)

    No one ever changes those. I'd prefer you make this change.

    1. Just run hack/build-go.sh cmd/openshift if you only want to build the
      openshift binary.

    Thoughts?


    Reply to this email directly or view it on GitHub:
    #1044 (comment)

  9. added
    kind/bug
    on Feb 22, 2015
  10. ironcladlou commented on Mar 4, 2015

    @ironcladlou
    Contributor

    @smarterclayton Please assign this one to me.

  11. added 2 commits that reference this issue on Mar 5, 2015
    f96a2c8
    42547b4
  12. 0xmichalis commented on May 4, 2015

    @0xmichalis
    Contributor

    Why is this closed? Building the latest master now takes about half a minute...

    $ time make build
    hack/build-go.sh 
    ++ Building go targets for linux/amd64: cmd/openshift
    ++ Placing binaries
    
    real    0m33.458s
    user    0m57.875s
    sys 0m11.161s
    
  13. ironcladlou commented on May 4, 2015

    @ironcladlou
    Contributor

    @Kargakis At the time, performance was sufficiently improved and so the issue was closed. Can you open a new issue with this info and also machine/environment specifics?

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

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions