Giter Site home page Giter Site logo

Comments (7)

tylerschultz avatar tylerschultz commented on June 9, 2024

cc @benmoss

from bosh-agent.

benmoss avatar benmoss commented on June 9, 2024

Hey @voelzmo, we have a story in our backlog to get rid of this very line. We introduced it as a bit of a hack because the Windows API we're using appears to be asynchronous without any obvious way to determine when the changes have taken effect. We agree it's not a great solution so we're going to have to find out a better way.

from bosh-agent.

cunnie avatar cunnie commented on June 9, 2024

Thanks @benmoss — Amin & I just ran into this problem, too.

from bosh-agent.

voelzmo avatar voelzmo commented on June 9, 2024

@benmoss thanks for the hint. The comment in the story doesn't really sound like you would get to that soon, right? For me this is really an issue when you're touching the net package in the agent. The whole WindowsNetManagerTest takes more than 1 minute now, which makes running the package tests not really suiteable for quick turnarounds...

from bosh-agent.

benmoss avatar benmoss commented on June 9, 2024

It was looked at last week and we tried to figure out a way to poll something in Windows to see when the changes have taken effect, but couldn't. We reprioritized it because of this feedback. The original impetus was more of a code quality thing, but actually slowing down development cycles makes this a higher priority. At worst we can isolate the tests with something like what Kubernetes does here as a short-term solution for you.

from bosh-agent.

cppforlife avatar cppforlife commented on June 9, 2024

@benmoss use Clock eg

timeService := clock.NewClock()

from bosh-agent.

xoebus avatar xoebus commented on June 9, 2024

I've changed it to inject a clock for now as part of fd376ea.

There's still just a basic delay instead of waiting for the actual effect but now the tests take 700ms to pass instead of 60s.

from bosh-agent.

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.