cadence icon indicating copy to clipboard operation
cadence copied to clipboard

test: Inject random errors in all clients during local development

Open c-warren opened this issue 6 months ago • 1 comments

What changed?

Injects random persistence errors into all clients during local development.

Why?

Injecting errors into our clients is a good way to ensure that we are writing resilient code. Seeing errors locally during workflow operations, replication, or matching that we aren't resilient to is best caught locally before hitting production.

It might also be worth configuring these in CI/CD environments so that we have automated tests running against an environment with these errors.

How did you test it?

Locally with my canary setup, e.g

docker compose  -f docker/dev/cassandra.yml up
make install-schema-xdc
make start-xdc-cluster0
make start-xdc-cluster1
make start-xdc-cluster2
make start-canary

You will see a few injected errors that should be recovered from.

Potential risks

None

Release notes

None

Documentation Changes

None

c-warren avatar May 21 '26 22:05 c-warren

Code Review ✅ Approved

Injects random persistence errors into all clients to improve local development resilience testing. No issues found.

Rules ⚠️ 1/2 requirements met

Repository Rules

❌ GitHub Issue Linking Requirement: The PR has 18 lines changed and is a test-type PR, but no link to a cadence-workflow issue was found in the description.
✅ PR Description Quality Standards: The PR description follows the required structure and contains substantive, useful information in all mandatory sections.

1 rule not applicable. Show all rules by commenting gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

gitar-bot avatar May 21 '26 22:05 gitar-bot