As a Blockchain QA Engineer, How Do You Deal With Flaky Smart-Contract Tests That Fail Only on CI?
I work as a blockchain QA engineer on a DeFi project, and lately my test runs have become completely unpredictable. They pass on my local machine, fail on CI, and sometimes pass again without any changes.
I’ve already checked the Solidity logic, but most issues seem tied to RPC node behavior, gas price changes, or simple network delays.
Even after adding retries and timeouts, a few tests still fail at random. I want our CI runs to feel stable instead of a gamble. For those who’ve tested smart contracts at scale, how do you handle flaky test failures that come from network conditions rather than actual code problems?