GithubHelp home page GithubHelp logo

Comments (7)

tomato42 avatar tomato42 commented on July 19, 2024 3

(yeah, yeah, I know some of those words.jpg)

Unfortunately I'm not able to help with this. What I can say, that I have some other non-trivial usages of hypothesis, ones that are complex enough that sometimes they time-out with old versions; so they may be good to verify sanity of complex test generation.

from hypothesis.

tybug avatar tybug commented on July 19, 2024 1

Thanks for the report! I have no doubt this regressed in #3818. I'll take a look later today.

from hypothesis.

tybug avatar tybug commented on July 19, 2024 1

Sorry, I know this is a pretty frustrating bug to run into. I'll look into this within the week.

from hypothesis.

tybug avatar tybug commented on July 19, 2024

Hmm. This is an overrun during generate_novel_prefix, due to the possibility that drawing a single node during novel generation takes more than BUFFER_SIZE in extreme cases. In the case above, this is a combination of unlucky successive probes + large max integer bounds (1500 bytes per probe).

One solution is retrying these overruns in generate_novel_prefix via a try/catch of StopTest. I'm nervous this will end in infinite loops or severe slowdowns in extreme cases, but I can't think of something that would repeatedly trigger this behavior in generate_novel_prefix while avoiding HealthCheck.too_large, so maybe this would be ok? (thinking aloud: what about a case where every novel prefix is > BUFFER_SIZE, so we hit this infinite loop before reaching enough overruns to raise the health check?)

from hypothesis.

tomato42 avatar tomato42 commented on July 19, 2024

@tybug I still have regular failures because of this. Any chance of this getting fixed soon?

from hypothesis.

khardix avatar khardix commented on July 19, 2024

I also run into this recently. While I cannot offer any asistance in fixing it, I have a workaround: using flaky and marking the test as being flaky, re-running it if it fails with StopTest exception. So far re-running the test once is usually enough for me to not trigger this bug.

from hypothesis.

tomato42 avatar tomato42 commented on July 19, 2024

with such level of workarounding, I'd rather just mark it as skipped, and point to this bug

from hypothesis.

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.