You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix log injection smoke test flakiness from startup timeout
The `check raw file injection` test has been flaking across 11+ logging
backend variants for months. CI Visibility data shows 90% of failures are
`traceCount=0` at `waitForTraceCount(2)` after exactly 30s — the JVM +
agent bytecode instrumentation simply takes >30s on overloaded CI machines.
Changes:
- Add `startupPoll` with 120s timeout for the initial `waitForTraceCount(2)`
that covers JVM startup + agent init, giving 4x headroom over the current
30s `defaultPoll`
- Add `waitForTraceCountAlive` that checks process liveness on each poll
iteration, turning silent 30-120s timeouts into instant, actionable errors
when the process crashes
- Reorder `waitForTraceCount(4)` before `waitFor` to confirm all traces are
delivered while the process is still alive
- Assert `waitFor` return value for a clear error if the process hangs
tag: no release note
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments