stacks-core icon indicating copy to clipboard operation
stacks-core copied to clipboard

Mutants/add skip attribute to timeout functions

Open ASuciuX opened this issue 1 year ago • 1 comments

Why are mutations causing timeouts?

Mutations cause timeouts because mutants modify the return value of functions. If the function is essential for stopping a loop or waiting for an HTTP response, when it returns something else, it either doesn't stop waiting for the code or creates an infinite loop, leading to a timeout.

Attributes to skip mutants on functions that timeout. Packages covered:

  • [x] stacks-node
  • [x] stackslib

ASuciuX avatar Feb 16 '24 14:02 ASuciuX

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 83.26%. Comparing base (708a3fc) to head (ff7ec08).

Additional details and impacted files
@@            Coverage Diff             @@
##             next    #4385      +/-   ##
==========================================
- Coverage   83.29%   83.26%   -0.03%     
==========================================
  Files         448      448              
  Lines      323911   323911              
==========================================
- Hits       269794   269712      -82     
- Misses      54117    54199      +82     
Files Coverage Δ
stackslib/src/burnchains/affirmation.rs 84.29% <ø> (ø)
stackslib/src/chainstate/burn/db/sortdb.rs 91.86% <ø> (-0.02%) :arrow_down:
.../chainstate/burn/operations/leader_block_commit.rs 96.08% <ø> (ø)
stackslib/src/chainstate/coordinator/mod.rs 61.49% <ø> (-0.09%) :arrow_down:
stackslib/src/chainstate/stacks/mod.rs 76.38% <ø> (ø)
stackslib/src/core/mempool.rs 85.89% <ø> (ø)
stackslib/src/net/api/getblock.rs 84.61% <ø> (ø)
stackslib/src/net/api/getheaders.rs 83.41% <ø> (ø)
stackslib/src/net/api/getmicroblocks_indexed.rs 91.11% <ø> (ø)
stackslib/src/net/api/postmempoolquery.rs 82.24% <ø> (ø)
... and 17 more

... and 24 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 708a3fc...ff7ec08. Read the comment docs.

codecov[bot] avatar Feb 16 '24 14:02 codecov[bot]