Coder Social home page Coder Social logo

Test Failures due to Timeout about pg_net HOT 5 CLOSED

supabase avatar supabase commented on August 27, 2024 2
Test Failures due to Timeout

from pg_net.

Comments (5)

TheOtherBrian1 avatar TheOtherBrian1 commented on August 27, 2024 1

@steve-chavez I could modify the tests to work with the Postman Echo API. It's designed specifically for this kind of testing, and can be easily swapped with httpbin. Looking through the tests, it would probably only take me half an hour to an hour to implement. Timeouts are still bound to happen occasionally, but it would be an improvement.

from pg_net.

steve-chavez avatar steve-chavez commented on August 27, 2024 1

@TheOtherBrian1 Cool. Please go ahead!

from pg_net.

steve-chavez avatar steve-chavez commented on August 27, 2024

The root cause appears to be timeout errors resulting from the httpbin endpoints being excessively slow (over 2 seconds for response).

@TheOtherBrian1 True, just noticed that as well. I think we should change those tests to use our Nginx server(one is started for the test suite) endpoints or Postman endpoints.

from pg_net.

TheOtherBrian1 avatar TheOtherBrian1 commented on August 27, 2024

@steve-chavez I added my changes to a pull request, but the automatic tests were taking an unusually long amount of time (more than an hour). I decided to close my request to prevent the action from maxing out.

The changes I made were fairly mild, so I'm hesitant to think that I accidentally created an infinite loop that held up the server. It's possible that because the actions are dependent on the tests, the modifications interfered with their normal function.

By default Github actions will timeout after 6 hours, which seems excessive in this context. It is probably wise to lower the timeout limit.

from pg_net.

TheOtherBrian1 avatar TheOtherBrian1 commented on August 27, 2024

@steve-chavez I have concerns regarding the test_http_requests_deleted_after_ttl test function. It expects entries in the net._http_response table to be deleted after 5 seconds of being inserted. However, upon reviewing the worker.c file, specifically lines 236 and 39, it seems that the deletion cycle has been adjusted to occur every 6 hours.

I may be misinterpreting the C code, but if my understanding is accurate, this test does not seem feasible and may need to be removed or commented out. You have a lot more insight on the inner workings of the extension than I do, so I would like to know your interpretation of this problem.

from pg_net.

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.