Giter VIP home page Giter VIP logo

Comments (5)

AustinSchuh avatar AustinSchuh commented on August 17, 2024 1

@joshenders , I need this for when the tests/actions run, not as part of the worker configuration.

from bazel-buildfarm.

joshenders avatar joshenders commented on August 17, 2024

It looks like NettyServerBuilder supports forAddress(). Would it be safe to just drop this in as a replacement for ServerBuilder here along with the needed code for deriving addresses from a list in the configuration file?

from bazel-buildfarm.

werkt avatar werkt commented on August 17, 2024

I can make this available as a feature on the workers as a tristate, with disabled, contingent on a platform request for it by name, and enabled for all.

I have added jnr-ffi as a dependency for other reasons, it should be either easily implemented or imported to control the private network namespace of a fork.

from bazel-buildfarm.

werkt avatar werkt commented on August 17, 2024

This will be made available through the default (or configured) policy specification on #188 - you can specify an execution wrapper policy that points to a binary which can modify the network namespace before executing a process. Take care to ensure that you don't introduce orphaned/dangling process children or leave stdout/stderr open - I have seen operations get stuck in this case, and sufficient process control needs to be implemented to kill any init-reparented processes that are not the worker.

from bazel-buildfarm.

werkt avatar werkt commented on August 17, 2024

#188 has landed. Closing this out, as any binary can be used to wrap execution and control the network namespace of the process. Note my cautions above, and feel free to reopen if you see any issues!

from bazel-buildfarm.

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.