Skip to content

Suppress valgrind for BIO jobs#3277

Merged
JimB123 merged 2 commits intovalkey-io:unstablefrom
asagege:alina_suppress_valgrind_for_bio
Feb 28, 2026
Merged

Suppress valgrind for BIO jobs#3277
JimB123 merged 2 commits intovalkey-io:unstablefrom
asagege:alina_suppress_valgrind_for_bio

Conversation

@asagege
Copy link
Contributor

@asagege asagege commented Feb 28, 2026

Suppress valgrind for BIO jobs valgrind errors: https://github.com/valkey-io/valkey/actions/runs/21969557125/job/63467641572#step:6:8648

Changes

  • Add allocBioJob() with __attribute__((noinline)) as a centralized allocation function for all BIO jobs. The noinline attribute ensures it appears as a distinct frame in valgrind stack traces.
  • Replace all direct zmalloc calls in bioCreate*Job functions withallocBioJob().
  • Add a valgrind suppression in src/valgrind.sup matching definite leaks with allocBioJob in the call stack.
  • Remove current_job introduced in Replace mutexQueuePeek with current_job field for BIO memcheck fix #3256

Copy link
Member

@JimB123 JimB123 left a comment

Choose a reason for hiding this comment

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

Looks ok. We'll run some tests before submission.

@JimB123 JimB123 merged commit 74ad2f9 into valkey-io:unstable Feb 28, 2026
56 checks passed
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (834dc83) to head (866e88c).
⚠️ Report is 1 commits behind head on unstable.

Additional details and impacted files
@@       Coverage Diff        @@
##   unstable   #3277   +/-   ##
================================
================================
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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