Skip to content

test: speed up client_report_concurrent with valgrind#1689

Merged
jpnurmi merged 1 commit intomasterfrom
jpnurmi/test/client-report-valgrind
Apr 30, 2026
Merged

test: speed up client_report_concurrent with valgrind#1689
jpnurmi merged 1 commit intomasterfrom
jpnurmi/test/client-report-valgrind

Conversation

@jpnurmi
Copy link
Copy Markdown
Collaborator

@jpnurmi jpnurmi commented Apr 30, 2026

The Linux (GCC 13.3.0 + code-checker + valgrind) CI job has become slow (sometimes > 1h): https://github.com/getsentry/sentry-native/actions/runs/25117272965

The slowdown is caused by the client_report_concurrent stress test. The flush side of the test spins immediately when there is no client report to save, while the producer side repeatedly discards reports from multiple threads. Under Valgrind, this can spend minutes in scheduler contention.

Yield in both hot loops, matching the approach used for the logs and metrics stress tests in bcd4633.

The code-checker+valgrind CI job has gotten slow (sometimes > 1h):
https://github.com/getsentry/sentry-native/actions/runs/25117272965

The slow down is caused by the client_report_concurrent stress test.
The flush side of the test spins immediately when there is no client
report to save, while the producer side repeatedly discards reports
from multiple threads. Under Valgrind this can spend minutes in
scheduler contention and make the stress test dominate the job.

Yield in both hot loops, matching the approach used for the logs and
metrics stress tests in bcd4633.
@jpnurmi jpnurmi merged commit 198bab1 into master Apr 30, 2026
61 checks passed
@jpnurmi jpnurmi deleted the jpnurmi/test/client-report-valgrind branch April 30, 2026 09:46
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.

2 participants