Replies: 2 comments 7 replies
-
Sounds like an interesting bug, thanks for the report. |
Beta Was this translation helpful? Give feedback.
-
The filename If there's a bug injected by cargo-mutants (or in your own code) then that loop might run forever. That's not necessarily a problem because cargo-mutants will eventually time out and kill it, and report a TIMEOUT result as it's doing here. However, it does make the run longer, so you might want to mark a minimal set of potentially-looping functions as It looks like you have a nice separation of the actual work of the loop into straight-line functions like The timeouts are potentially also going to be a problem for you getting really deterministic tests, regardless of cargo-mutants: it's always hard to pick a timeout for tests that is enough to make the tests never falsely timeout but also to avoid the tests hanging forever, and ideally even to test the timeout behavior. As much as possible it's good for tests to avoid looking at the real wall clock. This will be especially important when the suite is already slow as it is here, and when it's run many times by mutants. I didn't look really thoroughly, maybe you're already doing this. |
Beta Was this translation helpful? Give feedback.
-
Hey @sourcefrog , I've created this as
Q&A
, please let me know if it should be placed instead asgeneral
or something else.There is a specific package in stacks-core repository called
stacks-signer
. The workflows that include the cargo mutants for it run indefinitely. Locally, onlinux
andmac os
it finishes after a very short period of time as it is very small.It happened with
v24.2.0
,v24.1.1
, and the commit having dynamic timeout on top ofv24.2.0
.The command is run without jobs and
cargo nextest
test threads 1 specified.Debug runs that showcase the issue that appeared when running
stacks-signer
mutants:cargo build
andcargo nextest
run before cargo mutants:Action run: https://github.com/ASuciuX/stacks-core/actions/runs/7901429286/attempts/2?pr=57
Action file: https://github.com/stacks-network/actions/blob/8a7cb7ed0249b473d241b57228cd718d2bd1e3ef/stacks-core/mutation-testing/pr-differences/action.yml#L[…]9
cargo build
andcargo nextest
run:Action run: https://github.com/ASuciuX/stacks-core/actions/runs/7901429286/attempts/3?pr=57
Action file: https://github.com/stacks-network/actions/blob/801b21e8294c032686dab54b74cb579074141764/stacks-core/mutation-testing/pr-differences/action.yml#L[…]3
cargo nextest
run before cargo mutants:Action run: https://github.com/ASuciuX/stacks-core/actions/runs/7901429286?pr=57
Action file: https://github.com/stacks-network/actions/blob/b9971c8063623e9f4dee82164652264cce703216/stacks-core/mutation-testing/pr-differences/action.yml#L[…]6
Could you please take a look at what might be the cause of this issue? It seems very specific and the fact that it works with
cargo nextest
called beforecargo mutants
is quite strange.Beta Was this translation helpful? Give feedback.
All reactions