test(coverage): lock config + region growth + varint codec (lock_alloc 0->82%, db_compint 0->16%) - #88
Merged
Merged
Conversation
… (varint codec) lock007 exercises every DB_ENV lock-subsystem config setter/getter (set_lk_max_locks/lockers/objects, set_lk_partitions, set_lk_tablesize, the DB_MEM_LOCK/LOCKER/LOCKOBJECT init counts, and set_lk_detect for all nine deadlock-detection policies), then runs a many-locker workload (200 lockers x 40 distinct objects) that exhausts the initial lock-region free lists and forces the region-growth loop in lock/lock_alloc.incl. test143 stores records into a -compress btree whose data sizes span the compressed-integer codec's 1/2/3-byte size classes and reads them back, driving __db_compress_int / __db_decompress_int32 in common/db_compint.c. Register both in testparams.tcl (lock, test groups).
Coccinelle convention checksNo new violations. ✅ Resolved since baseline (2) -- update dist/cocci/baseline.txt to lock these in. |
ABI diff vs
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tests
lock_alloc.incl).-compressbtree spanning the codec's 1/2/3-byte size classes; point-get + full cursor scan (drives the varint codec).Registered in testparams.tcl + wired into
COV_TESTS(verified present after conflict resolution). No engine code, no bugs.db_compint ceiling: btree compression only marshals 32-bit lengths, so the 64-bit codec + 4-9 byte size classes are covered by
test/pbt/pbt_compint.c(separate PBT tier). tcl-reachable ceiling ≈ 24%.