Try fix flake in OTLP logs tests#8508
Conversation
Snapshots difference summaryThe following differences have been observed in committed snapshots. It is meant to help the reviewer. 1 occurrences of : + {
+ "time_unix_nano": "0",
+ "severity_number": "SEVERITY_NUMBER_INFO",
+ "severity_text": "Information",
+ "body": {
+ "string_value": "Hello from OpenTelemetry logger outside span context"
+ },
+ "observed_time_unix_nano": "0"
+ },
1 occurrences of : + {
+ "time_unix_nano": "0",
+ "severity_number": "SEVERITY_NUMBER_FATAL",
+ "severity_text": "Critical",
+ "body": {
+ "string_value": "This is a critical message"
+ },
+ "observed_time_unix_nano": "0"
+ },
1 occurrences of : - },
- {
- "time_unix_nano": "0",
- "severity_number": "SEVERITY_NUMBER_INFO",
- "severity_text": "Information",
- "body": {
- "string_value": "Hello from OpenTelemetry logger outside span context"
- },
- "observed_time_unix_nano": "0"
- },
- {
- "time_unix_nano": "0",
- "severity_number": "SEVERITY_NUMBER_FATAL",
- "severity_text": "Critical",
- "body": {
- "string_value": "This is a critical message"
- },
- "observed_time_unix_nano": "0"
1 occurrences of : - "severity_number": "SEVERITY_NUMBER_INFO",
- "severity_text": "Information",
+ "severity_number": "SEVERITY_NUMBER_DEBUG",
+ "severity_text": "Debug",
[...]
- "string_value": "Response from other library"
+ "string_value": "Debug information from other library"
1 occurrences of : - "severity_number": "SEVERITY_NUMBER_DEBUG",
- "severity_text": "Debug",
+ "severity_number": "SEVERITY_NUMBER_INFO",
+ "severity_text": "Information",
[...]
- "string_value": "Debug information from other library"
+ "string_value": "Response from other library"
|
BenchmarksBenchmark execution time: 2026-04-23 11:47:48 Comparing candidate commit b4b2abd in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 27 metrics, 0 unstable metrics, 61 known flaky benchmarks, 26 flaky benchmarks without significant changes.
|
There was a problem hiding this comment.
The changes here are just re-ordering the logs to be in body.string_value order
Summary of changes
Try to fix flake in OTLP logs test
Reason for change
The test was flaking, because it was sending logs in multiple batches.
Implementation details
Collapse the log groups into one, and sort them to make sure the order is deterministic
Test coverage
It passes locally, hopefully CI is good too...
Other details
Follow on from #8488