Coder Social home page Coder Social logo

Comments (6)

daywalker90 avatar daywalker90 commented on August 14, 2024

Also there are still tests failing because of port binding:
Failed to bind socket for 127.0.0.1:44971: Address already in use
unfortunately every fix i tried made it worse

from lightning.

cdecker avatar cdecker commented on August 14, 2024

So for the port-binding we usually use the ephemeral_port_reserve package (or similar) that pre-binds a random port, and we can then take control of it by using the SO_REUSEADDR (allowing us to grab the port despite it being in a WAIT state). This means we can use the OS to distribute unique ports. We usually run into port conflicts when not using the reserve method of the package and just use a random port (without giving the OS a chance to tell us that it is already being used). Another case is when we let too much time elapse between reservation and binding (as the port loses the WAIT status and may be re-assigned), so reserve briefly before using, and reserve a new port if you can't ensure short downtime on that bind.

from lightning.

rustyrussell avatar rustyrussell commented on August 14, 2024

I think I fixed a test_penalty_htlc_tx_timeout[True] flake in #7364...

from lightning.

cdecker avatar cdecker commented on August 14, 2024

Excellent, looks quite good. Let's merge and I can update the table (strike the entry through) if we can see it settle in 👍

from lightning.

cdecker avatar cdecker commented on August 14, 2024

Here are the current outcomes for the branch of #7364:

select count(*), outcome from testruns where github_ref LIKE '%7364%' AND testname LIKE '%penalty_htlc_tx_time%' group by outcome;
22|2 # Success
2|3 # Failure
4|4 # Skipped

So it looks like it is partially fixed (~10% failure rate compared to the above 17%), but not stable.

from lightning.

cdecker avatar cdecker commented on August 14, 2024

A quick update on the stats, some got better some got worse:

Test Name Runs Failures Flakyness
test_rbf_reconnect_tx_construct 10 5 33.33%
test_grpc_connect_notification 63 26 29.21%
test_wss_proxy 68 22 24.44%
test_anchorspend_using_to_remote[True] 54 17 23.94%
test_onchain_their_unilateral_out[True] 60 12 16.67%
test_penalty_htlc_tx_fulfill[True] 50 10 16.67%
test_penalty_htlc_tx_timeout[True] 50 10 16.67%
test_penalty_outhtlc[True] 59 10 14.49%
test_penalty_rbf_normal[True] 59 10 14.49%
test_onchain_middleman_simple[True] 60 10 14.29%
test_onchain_middleman_their_unilateral_in[True] 60 10 14.29%
test_onchain_timeout[True] 60 10 14.29%
test_penalty_inhtlc[True] 60 10 14.29%

Notice that we are not doing as many tests, likely because of the release feature freeze last month.

from lightning.

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.