-
It seems some failed tests were caused by execution time constraints. After increasing the limits, the tests passed.
Setting the timeout value to
Increasing the limit from 2 -> 3 seconds made the test pass. And similar in the 3rd case adding a second solved the problem.
So I was wondering, are these constraints more or less arbitrary or based on experience? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
I think they are mainly based on experience of how long it takes to run on the github actions. The intention is to spot changes that reduce efficiency in the processing time of the generator. For me, these tests run much faster than this on a Macbook pro. |
Beta Was this translation helpful? Give feedback.
-
I see, this makes sense. That said, it happened for the first time I ran into these errors, so eventually something got slower recently. I wouldn't say my Thinkpad X1 is a slow PC, so I expect others to see these errors as well, if they run the tests. How about not failing a test but provide a warning? Beside that, I'm trying to understand the timeout settings in this test (@hand-dot): If I'm not wrong, then I assume it should be
This test also fails for me in rare cases. It seems when I run it for the first time. So settins the the timeout to 30s would defnitely help. |
Beta Was this translation helpful? Give feedback.
I think they are mainly based on experience of how long it takes to run on the github actions.
The intention is to spot changes that reduce efficiency in the processing time of the generator.
For me, these tests run much faster than this on a Macbook pro.