Tweak BatchingSink to remove flake#8696
Conversation
BatchingSink to remove flake
BatchingSink to remove flakeBatchingSink to remove flake
BenchmarksBenchmark execution time: 2026-05-27 10:46:00 Comparing candidate commit 0af0c80 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 71 metrics, 0 unstable metrics, 61 known flaky benchmarks, 65 flaky benchmarks without significant changes.
|
Execution-Time Benchmarks Report ⏱️Execution-time results for samples comparing This PR (8696) and master. ✅ No regressions detected - check the details below Full Metrics ComparisonFakeDbCommand
HttpMessageHandler
Comparison explanationExecution-time benchmarks measure the whole time it takes to execute a program, and are intended to measure the one-off costs. Cases where the execution time results for the PR are worse than latest master results are highlighted in **red**. The following thresholds were used for comparing the execution times:
Note that these results are based on a single point-in-time result for each branch. For full results, see the dashboard. Graphs show the p99 interval based on the mean and StdDev of the test run, as well as the mean value of the run (shown as a diamond below the graph). Duration chartsFakeDbCommand (.NET Framework 4.8)gantt
title Execution time (ms) FakeDbCommand (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (76ms) : 72, 81
master - mean (75ms) : 71, 79
section Bailout
This PR (8696) - mean (78ms) : 75, 82
master - mean (79ms) : 75, 82
section CallTarget+Inlining+NGEN
This PR (8696) - mean (1,112ms) : 1044, 1181
master - mean (1,114ms) : 1055, 1174
FakeDbCommand (.NET Core 3.1)gantt
title Execution time (ms) FakeDbCommand (.NET Core 3.1)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (115ms) : 110, 121
master - mean (116ms) : 111, 121
section Bailout
This PR (8696) - mean (116ms) : 112, 119
master - mean (115ms) : 113, 118
section CallTarget+Inlining+NGEN
This PR (8696) - mean (796ms) : 774, 819
master - mean (795ms) : 767, 822
FakeDbCommand (.NET 6)gantt
title Execution time (ms) FakeDbCommand (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (101ms) : 98, 104
master - mean (103ms) : 97, 109
section Bailout
This PR (8696) - mean (105ms) : 98, 112
master - mean (102ms) : 99, 105
section CallTarget+Inlining+NGEN
This PR (8696) - mean (950ms) : 911, 989
master - mean (950ms) : 906, 994
FakeDbCommand (.NET 8)gantt
title Execution time (ms) FakeDbCommand (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (99ms) : 95, 103
master - mean (101ms) : 96, 105
section Bailout
This PR (8696) - mean (100ms) : 97, 102
master - mean (103ms) : 97, 109
section CallTarget+Inlining+NGEN
This PR (8696) - mean (828ms) : 786, 870
master - mean (820ms) : 780, 861
HttpMessageHandler (.NET Framework 4.8)gantt
title Execution time (ms) HttpMessageHandler (.NET Framework 4.8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (199ms) : 194, 203
master - mean (198ms) : 193, 203
section Bailout
This PR (8696) - mean (203ms) : 200, 207
master - mean (202ms) : 197, 206
section CallTarget+Inlining+NGEN
This PR (8696) - mean (1,207ms) : 1156, 1259
master - mean (1,195ms) : 1162, 1229
HttpMessageHandler (.NET Core 3.1)gantt
title Execution time (ms) HttpMessageHandler (.NET Core 3.1)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (286ms) : 278, 293
master - mean (287ms) : 282, 292
section Bailout
This PR (8696) - mean (288ms) : 281, 294
master - mean (288ms) : 282, 293
section CallTarget+Inlining+NGEN
This PR (8696) - mean (964ms) : 942, 985
master - mean (971ms) : 944, 999
HttpMessageHandler (.NET 6)gantt
title Execution time (ms) HttpMessageHandler (.NET 6)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (278ms) : 272, 285
master - mean (279ms) : 270, 287
section Bailout
This PR (8696) - mean (277ms) : 272, 283
master - mean (280ms) : 272, 289
section CallTarget+Inlining+NGEN
This PR (8696) - mean (1,161ms) : 1126, 1196
master - mean (1,161ms) : 1127, 1194
HttpMessageHandler (.NET 8)gantt
title Execution time (ms) HttpMessageHandler (.NET 8)
dateFormat x
axisFormat %Q
todayMarker off
section Baseline
This PR (8696) - mean (277ms) : 267, 286
master - mean (277ms) : 271, 283
section Bailout
This PR (8696) - mean (276ms) : 269, 283
master - mean (277ms) : 271, 283
section CallTarget+Inlining+NGEN
This PR (8696) - mean (1,038ms) : 979, 1097
master - mean (1,039ms) : 1008, 1070
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
## Summary of changes Refactor the `DirectSubmissionLogSink` and `DatadogSinkTests` to remove flake ## Reason for change The tests are currently flaky, and there was some recent changes to work on this in #8696 ## Implementation details Basically the same as #8696 - don't start the background job, and just call the methods directly ## Test coverage Same coverage, now with less flake 🤞
## Summary of changes Refactor the `OtlpSubmissionLogSink` and `OtlpSinkTests` to remove flake ## Reason for change The tests are currently flaky, and there was some recent changes to work on this in #8696 ## Implementation details Basically the same as #8696 and #8714 - don't start the background job, and just call the methods directly ## Test coverage Same coverage, now with less flake 🤞
Summary of changes
BatchingSinkflush task for testsBatchingSinkTeststo "manually drive" the behaviourReason for change
BatchingSinkTestsis, and always has been, flaky, because it relies on timings. #8601 refactored theDiscoveryServiceTeststo avoid the timing dependence, and this PR does the same forBatchingSink.Implementation details
BatchingSink, and instead expose the "component" methods.BatchingSinkTeststo imitate what the background loop does, but without depending on any timingsTest coverage
The coverage should be essentially the same, we just removed all of the potential flake-causing timing issues
Other details
It might be easier to review the
BatchingSinkfile with whitespace ignored, there's very few "real" changes in there, just structural changes