Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeout not respected in all cases #31

Open
henryw374 opened this issue Jul 17, 2023 · 2 comments
Open

timeout not respected in all cases #31

henryw374 opened this issue Jul 17, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@henryw374
Copy link

henryw374 commented Jul 17, 2023

hello. in the config you can specify :kaocha.cljs2/timeout xxx and that gets passed through to the funnel client listen! function https://github.com/lambdaisland/kaocha-cljs2/blob/main/src/kaocha/cljs2/funnel_client.clj#L53 for the 'load' of the tests from the initial config. when it comes to the next stage of loading - getting tests from the clients, the timeout is not passed on - it is nil.

Note. this description ^^^ might not be quite right. the process of loading and running in kaocha is not completely clear to me. but the first time listen! is called the timeout is there, and the next time it is nil - that I can say for sure

so... in an attempt to get my suites passing I have changed this line in my branch https://github.com/henryw374/kaocha-cljs2/blob/main/src/kaocha/type/cljs2.clj#L99 - to call add-timeouts before the load. this seems to work...

@lambduhh
Copy link

Hello Henry,

First off, thank you very much for bringing this issue to our attention and for the effort you've put into investigating it. Your detailed description has been incredibly helpful in understanding the nuanced behavior regarding timeout settings during the test execution process. We appreciate the time you've taken to dive into this and share your findings with us.

Based on your report and a thorough review of the code, I identified a few areas that could be contributing to the inconsistency in timeout propagation you've observed. Specifically, the management of hierarchical timeouts and the passing of these timeout settings through various stages of test loading and execution present areas that warrant closer examination.

Have you been using your fix branch successfully since you made the report?

We're committed to resolving this issue and will keep you updated on our progress. In the meantime, if you have any further insights, suggestions, or questions, please don't hesitate to share them. Your input is invaluable to us as we work towards a solution.

Thank you once again for your contribution and for helping improve the reliability and functionality of kaocha for cljs We're looking forward to resolving this together.

Happy hacking!

@lambduhh lambduhh added the bug Something isn't working label Mar 27, 2024
@henryw374
Copy link
Author

Hi Jordan. thanks for looking into it!

yes I have successfully been using my branch for test suites which would otherwise timeout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Candidate
Development

No branches or pull requests

2 participants