Commit c1fc21c
authored
Fix timing-related flakiness in telemetry acceptance test (#3721)
## Why
The test checks that at least 5 mutators recorded execution times, but
on fast machines, many mutators complete in under 1ms and are not
recorded (per the threshold in bundle/mutator.go). This caused
intermittent failures when exactly 5 mutators were recorded.
The test's purpose is to verify that the telemetry mechanism works, not
to enforce a specific count. We changed the assertion to check for at
least one recorded mutator execution time, making the test robust across
all machine speeds.
## Tests
This failed here
https://github.com/databricks/cli/actions/runs/18225329786/job/518949653211 parent 09d5952 commit c1fc21c
2 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
0 commit comments