Giter Club home page Giter Club logo

Comments (6)

finnball avatar finnball commented on June 1, 2024 2

Thanks for giving more detail there!

  • Don't stop when cleaning up something fails.

I'd disagree with this. I think it should fail though perhaps with a clearer message.

from bb-remote-execution.

palvarez89 avatar palvarez89 commented on June 1, 2024

The folder that fails to be cleaned up is /run/lock, which contains a subsys folder (IIRC) owned by root. It would be good to know why we need to cleanup those folders as it doesn't look like they are ever used when building things.

Could we workaround this issue in a different way?

  • Cleanup a subfolder instead of these (if we are actually using them, and we can decide where the temp files go)
  • Cleanup only folders we can actually delete (owned by the runner user)
  • Don't stop when cleaning up something fails.

from bb-remote-execution.

ailiev avatar ailiev commented on June 1, 2024

I also had such failures due to a root-owned file/directory under /tmp in my runner container. The file was related to sysdig in Kubernetes. Skipping deletion of files owned by other users seems sensible.

And definitely need better error messages. Locally I modified to return util.StatusWrap(err, name) in RemoveAllChildren

from bb-remote-execution.

mickael-carl avatar mickael-carl commented on June 1, 2024

I believe the initial problem has been solved in a5be3f6. Now the question is, how to indeed deal with failing cleanup.

from bb-remote-execution.

palvarez89 avatar palvarez89 commented on June 1, 2024

Mind if I ask why the cleanup is needed? Are we expecting builds to put files in those locations?

from bb-remote-execution.

EdSchouten avatar EdSchouten commented on June 1, 2024

The runner image has been updated in the meantime. Let's mark this as closed.

from bb-remote-execution.

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.