TeamCity
CI
Java
JUnit
Debugging
Why This Java Test Only Failed at Night: Debugging a Flaky Build in TeamCity
A flaky test passes locally but fails in CI at night. A debugging story
about logs, build agents, time zones — and comparing builds instead of
reading logs.
Key idea: the suspects are in the diff
2026-08-27 · 12 min read