Giter Site home page Giter Site logo

Flaky test cases in docker tests about flexo HOT 6 CLOSED

nroi avatar nroi commented on June 19, 2024
Flaky test cases in docker tests

from flexo.

Comments (6)

nroi avatar nroi commented on June 19, 2024 1

For what it's worth, I've been experiencing freezes in the service lately (haven't run the test suite).

I'm pretty confident that the freezes described in this issue where caused by the docker setup, and not related to any bug in the actual Flexo code, and I'm also confident that this issue has now been fixed. So what you're describing is probably another issue.

I've created a separate issue from your description. If you gain any more information about this issue, like a pattern that it always occurs in a specific situation, please let me know, because these sorts of things are difficult to troubleshoot.

from flexo.

nroi avatar nroi commented on June 19, 2024

The problem seems to be that, while our docker containers are running, certain actions can only be executed with a delay. For example, if NGINX is running on localhost – even without docker – then the following will show that connection establishment is sometimes delayed when our docker-compose tests are running:

while true; do echo -n '' | nc -N 127.0.0.1 80; date +%s%N; sleep 0.1; done | ./analyze_nanos.py

from flexo.

nroi avatar nroi commented on June 19, 2024

It seems to be unrelated to sockets:

while true; do echo -n '' | date +%s%N; sleep 0.1; done | ./analyze_nanos.py

Gave the following output when the docker tests were running:

>>> Threshold exceeded at 2020-12-06 18:45:54.307145: 1.493492608
>>> Threshold exceeded at 2020-12-06 18:45:58.851240: 4.544129866

from flexo.

nroi avatar nroi commented on June 19, 2024

Another example:

while true; do date +%s%N; sleep 0.1; done | ./analyze_nanos.py
>>> Threshold exceeded at 2020-12-06 19:11:48.709007: 2.51274226

from flexo.

nroi avatar nroi commented on June 19, 2024
while true; do strace --absolute-timestamps=format:unix,precision:ns /bin/true  2>&1; done | ./analyze_nanos.py
>>> Threshold exceeded at 2020-12-06 21:32:27.167433: 19.471243619918823
1607286727.695725213 +++ exited with 0 +++

1607286747.166968830 execve("/bin/true", ["/bin/true"], 0x7ffc168da2e8 /* 61 vars */) = 0

from flexo.

aude avatar aude commented on June 19, 2024

For what it's worth, I've been experiencing freezes in the service lately (haven't run the test suite).

I've not been able to get any response with HTTP, and the log shows nothing happens. Even restarting flexo doesn't work immediately. Then, after maybe 1s-2m, it just starts responding again like nothing happened.

Haven't looked into it, so could definitely be something local, though thought I'd mention anyway just in case.

from flexo.

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.