test(profiling): fix flaky test_memory_collector_allocation_tracking_across_snapshots - #20402
Draft
taegyunkim wants to merge 3 commits into
Draft
taegyunkim wants to merge 3 commits into
taegyunkim wants to merge 3 commits into
Conversation
DD_908FHU Co-authored-by: taegyunkim <6655247+taegyunkim@users.noreply.github.com>
DD_908FHU Co-authored-by: taegyunkim <6655247+taegyunkim@users.noreply.github.com>
Contributor
|
I can only run on private repositories. |
Codeowners resolved asResolved from the full PR diff against |
Circular import analysis
|
Dependency direction analysis
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixing
test_memory_collector_allocation_tracking_across_snapshots[py3.13]• Questions? Ask in #code-gen-flaky-teststest_memory_collector_allocation_tracking_across_snapshots[py3.13]intermittently rejected valid process-wide profiler samples whose memory slots were zero. The flake had a 0.03% failure rate and failed onemainpipeline withSample should have either heap-space or alloc-space > 0.The profile can combine memory samples with other process-wide sample types, so zero memory values do not by themselves make a sample invalid.
Changes
NOTE:comment.Testing
Risks
Low. The change is test-only and retains validation of invalid negative memory values while accepting valid non-memory samples in a combined profile.
Additional Notes
No customer-facing release note is required; apply the
changelog/no-changeloglabel.PR by Bits - View session in Datadog
Comment @DataDog to request changes