Skip to content

Fix flakiness in cgroup2 tests - #13876

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl954980469
Open

Fix flakiness in cgroup2 tests#13876
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl954980469

Conversation

@copybara-service

Copy link
Copy Markdown

Fix flakiness in cgroup2 tests

Replaced explicit absl::SleepFor(absl::Milliseconds(15)) with a while loop
that waits for memory accounting to settle before breaking, capping the wait
at a generous 10 seconds. This avoids flaky test failures (in targets like
cgroup2_test_runsc_kvm_save) caused when the sentry's internal 10ms memory
stats scan executes slowly under load, KVMSave overhead, or thread starvation.

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Jul 28, 2026
Replaced explicit absl::SleepFor(absl::Milliseconds(15)) with a while loop
that waits for memory accounting to settle before breaking, capping the wait
at a generous 10 seconds. This avoids flaky test failures (in targets like
cgroup2_test_runsc_kvm_save) caused when the sentry's internal 10ms memory
stats scan executes slowly under load, KVMSave overhead, or thread starvation.

PiperOrigin-RevId: 954980469
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant