Skip to content

[pkg/testdata] Add validation functions for test profiles #38452

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

Merged
merged 2 commits into from
Mar 7, 2025

Conversation

rockdaboot
Copy link
Contributor

It is not trivial to see if a test profile is valid or not.

This PR adds ValidateProfile() to validate a given pprofile.Profile.
The current aim is at artificially generated profiles that are used in tests: using invalid profiles for testing can potentially lead to unwanted results.

@rockdaboot rockdaboot force-pushed the profiles-validate branch 2 times, most recently from 113bdf3 to d2b03de Compare March 7, 2025 17:42
@rockdaboot rockdaboot marked this pull request as ready for review March 7, 2025 17:42
@rockdaboot rockdaboot requested a review from a team as a code owner March 7, 2025 17:42
@atoulme atoulme merged commit d472019 into open-telemetry:main Mar 7, 2025
171 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants