Commit 50c958a
fix: resolve flaky integration test timing issues
- GCSamplerV2 tests: add Gen0-only GC.Collect(0) calls so the V2
per-generation subtraction logic reliably reports non-zero Gen0
collections regardless of startup timing.
- OTel metrics tests: wait for the OTLP export log line (fires every
5s) instead of analytic_event_data (fires at ~60s), which races
with the 60-second WaitForLogLine timeout on slow CI machines.
- OTel stress tests: replace the 60s analytics wait + 45s Thread.Sleep
with a wait for 3 OTLP exports (~15s), cutting exercise time from
~123s to ~20s.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 425cdd1 commit 50c958a
3 files changed
Lines changed: 14 additions & 8 deletions
File tree
- tests/Agent/IntegrationTests
- IntegrationTests/OpenTelemetry
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
38 | 45 | | |
39 | 46 | | |
40 | 47 | | |
| |||
0 commit comments