Skip to main content

Chaos Mesh 2.8.9 focuses on reliability

· 2 min read
Glen Yang
Maintainer of Chaos Mesh

Chaos Mesh 2.8.9 is out. We spent most of this release expanding automated test coverage and fixing the issues those tests uncovered. We focused on how Chaos Mesh behaves throughout an experiment, especially when something goes wrong between applying a fault and recovering from it.

Testing the whole experiment lifecycle​

During an experiment, Chaos Mesh selects targets, applies the fault, tracks its state, and cleans up when the experiment ends. A Kubernetes API request can fail temporarily at any of those steps. When a controller retries, some of the work it attempted may already be complete. The test suite needs to exercise what happens across those attempts, including what state the controller keeps and how it decides that the operation is finished.

For example, a test can simulate a failed cleanup attempt and allow the next attempt to succeed. That lets us check that Chaos Mesh keeps enough information to retry and reports recovery once cleanup is complete. We added coverage for these kinds of transitions, including failures during fault injection, controller retries, and updates that happen while another operation is in progress.

Keeping the new cases as regression tests​

When a new test exposed a problem, we used it to reproduce the behavior, fixed the issue, and kept the case in the suite. Future changes can then run through the same sequence of events. This is particularly useful when the result depends on the order in which operations succeed or fail, which can be hard to reproduce by running an experiment by hand.

That work makes 2.8.9 a more robust release. For teams using Chaos Mesh, it means more predictable behavior when an experiment encounters a temporary failure or needs to recover from a partially completed operation.

See the v2.8.9 release notes for the full list of changes.