Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for recycling services #787

Merged
merged 4 commits into from
Apr 26, 2024
Merged

Conversation

grcevski
Copy link
Contributor

This PR adds k8s tests where we prove Beyla works on restart of services.

Copy link
Contributor

@mariomac mariomac left a comment

Choose a reason for hiding this comment

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

Amazing!

Comment on lines +136 to +137
{Key: "k8s.pod.uid", Type: "string", Value: k8s.UUIDRegex},
{Key: "k8s.pod.start_time", Type: "string", Value: k8s.TimeRegex},
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't know if needed, but maybe you can also verify that the pod UID and start time have changed from the previous pod, to double-check the restart.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea! I'll add this.

Copy link
Contributor

@mariomac mariomac left a comment

Choose a reason for hiding this comment

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

👏🏻 thanks for addressing the suggestions!

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.94%. Comparing base (3fba7b7) to head (1ef42f7).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #787      +/-   ##
==========================================
- Coverage   76.70%   68.94%   -7.76%     
==========================================
  Files         107      104       -3     
  Lines        9276     9242      -34     
==========================================
- Hits         7115     6372     -743     
- Misses       1776     2410     +634     
- Partials      385      460      +75     
Flag Coverage Δ
integration-test 68.94% <ø> (+1.19%) ⬆️
unittests ?

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.

@grcevski grcevski merged commit 0f5c6ab into grafana:main Apr 26, 2024
4 of 5 checks passed
@grcevski grcevski deleted the tests_recycle branch April 26, 2024 18:15
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.

3 participants