Skip to content

Skipping INCREX overflow tests on valgrind - #4850

Merged
JimB123 merged 2 commits into
valkey-io:unstablefrom
Baraa-Hasheesh:valgrind-skip-float-incr
Oct 16, 2026
Merged

JimB123 merged 2 commits into
valkey-io:unstablefrom
Baraa-Hasheesh:valgrind-skip-float-incr

Conversation

@Baraa-Hasheesh

@Baraa-Hasheesh Baraa-Hasheesh commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #4900 #4901 #4902 #4903

On x86 under valgrind the 1e4932 + 1e4932 operation returns a finite LDBL_MAX instead of +Inf,
this in turn breaks that tests as it expects the isinf check to be exercised & for the operation to be rejected

Signed-off-by: Bara' Hasheesh <bara.hasheesh@gmail.com>
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 01054baf-dccb-4874-ae0f-4153faca2e80
📥 Commits

Reviewing files that changed from the base of the PR and between ff9481c and d156a42.

📒 Files selected for processing (1)
  • tests/unit/type/incr.tcl

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

The increment tests now mark long-double overflow cases with valgrind:skip and comments about x86 Valgrind simulation returning finite results. The existing-TTL overflow test appears in the updated test block.

Changes: Increment overflow tests

Layer / File(s) Summary
Annotate overflow tests
tests/unit/type/incr.tcl
Added valgrind:skip annotations and comments about x86 Valgrind simulation to overflow tests. The existing-TTL overflow test appears in the updated block.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Merge Risk: ⚪ Minimal · up to d156a

The overflow checks remain available outside Valgrind, and the supported Valgrind jobs use the affected x86 environment. No actionable merge risk remains.

Pre-merge checks: Passed 5
Check name Status Explanation
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title clearly and concisely describes the main change: skipping INCREX overflow tests under Valgrind.
Description check Passed The description explains the Valgrind-specific arithmetic behavior and its impact on the overflow tests. It is directly related to the changeset.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.46%. Comparing base (236f943) to head (83cc540).
⚠️ Report is 12 commits behind head on unstable.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #4850      +/-   ##
============================================
+ Coverage     80.86%   81.46%   +0.59%     
============================================
  Files           195      195              
  Lines        102018   107217    +5199     
============================================
+ Hits          82496    87341    +4845     
- Misses        19522    19876     +354     

see 32 files with indirect coverage changes

🚀 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.

@sarthakaggarwal97 sarthakaggarwal97 added the run-valgrind-tests Run Valgrind tests on PRs targeting unstable. Rerun on pushes while this label remains applied. label Oct 14, 2026
@valkey-review-bot

Copy link
Copy Markdown
Contributor

Review state

Ready for human review.
The four INCREX BYFLOAT overflow tests now carry valgrind:skip, the same way the other float edge-case tests in incr.tcl and the overflow test in replication.tcl already do. Each body ends in assert_equal or assert_range, which return empty, so the {} okpattern passes. No other tests use ldbl_overflow_operand without the tag.

Risk: Low. Test-only change. The worst case is losing overflow coverage in valgrind runs, which the regular CI jobs still provide.

Open findings: none.

Backport: Not needed. Test-only change that skips tests under valgrind. No server code changes.

Updated for 83cc540 at 2026-10-14 19:53 UTC. The bot rewrites this comment on every review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-valgrind-tests Run Valgrind tests on PRs targeting unstable. Rerun on pushes while this label remains applied.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TEST-FAILURE] INCREX BYFLOAT positive arithmetic overflow returns [curr_val, 0] in tests/unit/type/incr.tcl

3 participants