Coder Social home page Coder Social logo

Long post job cleanup about setup-go HOT 8 CLOSED

fat-fellow avatar fat-fellow commented on July 23, 2024 1
Long post job cleanup

from setup-go.

Comments (8)

dusan-trickovic avatar dusan-trickovic commented on July 23, 2024 1

Hello, @fat-fellow! Thank you for reporting this issue, we will investigate it and see what can be done :)

from setup-go.

dsame avatar dsame commented on July 23, 2024 1

Hello @fat-fellow, the caching makes little sense on the self-hosted runner because the persists the build state between runs.

I advise to disable the caching:

      - name: Install Go
        uses: actions/setup-go@v4
        with:
          go-version: "~1.20.8"
          cache: false

did it help?

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

I have the same problem, I've run it twice now, one time it skipped the tar process (which is what takes all the time) and one time it did not. I will keep trying it. thanks for the tip.

from setup-go.

dsame avatar dsame commented on July 23, 2024

@nixomose do you have a problem with self-hosted environment as well?

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

yeah, when you run the setup go action on a self hosted linux machine, the cleanup step tars up some go directories and it takes a few seconds.
If you do the exact same thing on a self hosted windows machine, it takes 30+ minutes to do the same tar.
disabling the cache makes that not happen, and the cleanup step takes no time at all, so I lose out on caching, but at least I don't have to wait a half hour for my ci workflow to complete.

from setup-go.

dsame avatar dsame commented on July 23, 2024

@nixomose caching makes little if any sense on self-hosted runner: the intermediate files are preserved between builds and storing/updating them from the network brings no benefits besides increasing the build time.

from setup-go.

nixomose avatar nixomose commented on July 23, 2024

problem solved then. :-)
it is odd that it takes sooooooooooooooo much longer to tar up on windows though.

from setup-go.

dsame avatar dsame commented on July 23, 2024

@nixomose i'm closing the issue because it is solved, but please feel free to reopen it or create a new one in case if the problem appears once again.

from setup-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.