Skip to content

Fix flaky protobuf debug format test when nanos is zero#1958

Merged
zeitlinger merged 2 commits intomainfrom
fix-protobuf-debug-nanos-flake
Mar 19, 2026
Merged

Fix flaky protobuf debug format test when nanos is zero#1958
zeitlinger merged 2 commits intomainfrom
fix-protobuf-debug-nanos-flake

Conversation

@zeitlinger
Copy link
Member

Summary

  • Protobuf3 text format omits fields with default (zero) values
  • When created_timestamp lands on an exact second boundary, the nanos field is absent
  • The test pattern now makes the nanos line optional

Test plan

  • CI passes (specifically Java 25 integration tests)

Protobuf3 text format omits fields with default (zero) values.
When created_timestamp lands on an exact second boundary, the nanos
field is absent, causing a flaky assertion failure.
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger marked this pull request as ready for review March 18, 2026 09:20
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger zeitlinger merged commit 72baf4b into main Mar 19, 2026
13 checks passed
@zeitlinger zeitlinger deleted the fix-protobuf-debug-nanos-flake branch March 19, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants