Skip to content

test(llo): fix flaky records_telemetry test (INFOPLAT-19823) - #24270

Closed
skippaDaBitFlippa wants to merge 5 commits into
developfrom
infoplat-19823-llo-observed-value-gauge
Closed

skippaDaBitFlippa wants to merge 5 commits into
developfrom
infoplat-19823-llo-observed-value-gauge

Conversation

@skippaDaBitFlippa

Copy link
Copy Markdown
Contributor

Follow-up to #24222. The merge queue merged without this fix because the branch could not be updated while queued.

The observation loop creates a new telemetry channel per iteration and closes it. The mock stored only the latest channel, so the test could read an empty one. Collect from every channel the mock created, and skip nils. Fails 50x under -race without the fix; passes with it.

- convert decimals without big.Rat (decimalToFloat64): all_changed record 900us -> 112us, 38k -> 3.2k allocs on realistic values
- benchmark uses parsed-float and even-count-median coefficient shapes
- Help text: benchmark is a decimal stream's value; float64 precision
- tests: EventuallyWithT, no require off the test goroutine, staging test asserts 3 series
- changeset: bridge Enabled and Prefixes replace semantics
…T-19823)

observedSeries uses require again (CollectT supports FailNow in EventuallyWithT conditions); the concurrent reader goroutine uses testutil.CollectAndCount, which makes no assertions.
…ge (INFOPLAT-19823)

dav009 review: don_id disambiguates stream_id across DONs; csa_public_key (hex, same as the Beholder resource attribute) joins with RDD metadata. Both are constant per node, so no new series. Plumbing: application.go csaPubKeyHex -> ocr2.DelegateOpts.CSAPublicKey -> llo.DelegateConfig.CSAPublicKey -> observation.NewDataSource.
The observation loop creates a new telemetry channel per iteration and closes it. The mock stored only the latest channel, so the test could read an empty one. Collect from every channel the mock created, and skip nils. Fails 50x under -race without the fix; passes with it.
@skippaDaBitFlippa
skippaDaBitFlippa requested review from a team as code owners November 25, 2026 00:07
@github-actions

Copy link
Copy Markdown
Contributor

👋 skippaDaBitFlippa, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

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.

1 participant