Repository navigation
MOD-18895 - optimize mem allocation - #1660
Conversation
| needs: [prepare-values] | ||
| uses: ./.github/workflows/flow-memory-comparison.yml | ||
| with: | ||
| redis-ref: ${{ needs.prepare-values.outputs.redis-ref }} |
There was a problem hiding this comment.
Comparison job lacks PR skip guards
Low Severity
memory-comparison only needs prepare-values and has no if condition. Unlike memory-regression, it still runs on draft PRs and docs-only changes. Each run builds Redis plus two release modules, downloads the city fixture, and can take up to 45 minutes, even though the job cannot fail the PR.
Reviewed by Cursor Bugbot for commit a8fd7cf. Configure here.
9f47c60 to
07158c1
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1660 +/- ##
=======================================
Coverage 88.13% 88.13%
=======================================
Files 17 17
Lines 6049 6049
=======================================
Hits 5331 5331
Misses 718 718 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
07158c1 to
07b2bcf
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 07b2bcf. Configure here.
| 'Fixtures: existing nightly small/medium/large; large_repetition adds the historical ' | ||
| '19-byte string 400 times. City uses one full citylots document. ' | ||
| 'Raw readback hashes must agree across both versions and all trials.', '', | ||
| '| Scenario | Keys / SETs per run | Master process B | Current process B | Change | ' |
There was a problem hiding this comment.
Please make the columns header more clear
Label memory and SET timing columns with explicit units and percentage changes. Align workflow dependencies with the existing Python setup and check script imports before building.


Note
Medium Risk
Touches the hot JSON ingest path and in-memory representation, which can shift memory accounting and edge-case behavior despite added tests; CI comparison is informational only and does not gate merges.
Overview
Reduces JSON object memory by bumping
ijsonand parsing throughdeserialize_compact_objectsinRedisIValueJsonKeyManager::from_strinstead of the generic deserializer. A new unit test locks in depth-limit behavior and expected object capacity;JSON.DEBUGmemory expectations in Rust tests move down (e.g. 544 → 480).Adds non-gating observability: a reusable
flow-memory-comparison.ymlworkflow (current vsmaster, shared Redis build, artifact report) plustests/pytest/memory_comparison.py, hooked from PR CI and nightly. Pytest no longer pins absoluteJSON.DEBUG MEMORYtotals where layout changed—default-path checks now assert a positive integer and match the explicit$path.Reviewed by Cursor Bugbot for commit 811e3e1. Bugbot is set up for automated code reviews on this repo. Configure here.