Skip to content

Conversation

@apetro2
Copy link
Contributor

@apetro2 apetro2 commented Dec 3, 2025

Resolves a TODO in pkg/beyla/config_test.go by comprehensively verifying the propagation of various configuration typ during Beyla-to-OBI conversion.

The added assertions cover:

  • Feature Flags (Bool): NetworkFlows.Enable,Attributes.Kubernetes.Enable
  • Core Metadata (String): ServiceName
  • Nested Configurations: Attributes.InstanceID.Override

This ensures that critical configuration parameters—regardless of type or nesting level—are correctly mapped and not silently lost or reset to defaults.

@apetro2 apetro2 requested a review from a team as a code owner December 3, 2025 14:47
Copy link
Contributor

@rafaelroquetto rafaelroquetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thank you so much @apetro2!

@codecov-commenter
Copy link

codecov-commenter commented Dec 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.78%. Comparing base (69b1df7) to head (0ed42ad).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2349   +/-   ##
=======================================
  Coverage   49.78%   49.78%           
=======================================
  Files          38       38           
  Lines        2971     2971           
=======================================
  Hits         1479     1479           
  Misses       1343     1343           
  Partials      149      149           
Flag Coverage Δ
integration-test 16.79% <ø> (ø)
integration-test-vm-${ARCH}-${KERNEL_VERSION} ?
k8s-integration-test 2.62% <ø> (ø)
oats-test 0.00% <ø> (ø)
unittests 43.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@rafaelroquetto rafaelroquetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix tests

@apetro2
Copy link
Contributor Author

apetro2 commented Dec 4, 2025

Please fix tests
Hi @rafaelroquetto
Thanks for catching that! I've fixed the tests in pkg/beyla/config_test.go to align with the OBI configuration types. The tests should pass now.

Copy link
Contributor

@grcevski grcevski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@grcevski grcevski dismissed rafaelroquetto’s stale review December 4, 2025 18:18

Comments addressed.

@mariomac mariomac merged commit 2157941 into grafana:main Dec 5, 2025
67 of 68 checks passed
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.

5 participants