Skip to content

test: exclude Snappy from zero-allocation assertions - #164

Merged
Kuinox merged 1 commit into
masterfrom
fix/exclude-snappy-allocation-tests
Oct 24, 2026
Merged

Kuinox merged 1 commit into
masterfrom
fix/exclude-snappy-allocation-tests

Conversation

@Kuinox

@Kuinox Kuinox commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Snappier 1.3.1 allocates compressor/decompressor state on every operation. The allocation tests currently allow 48/80-byte budgets, but under high memory pressure ArrayPool.Shared can discard warmed buffers during the forced GC, causing additional allocations and intermittent failures as reported in #163.

Exclude Snappy from the compression, write-chain, and column-buffer zero-allocation tests, remove its special budgets, and make the test names and assertions require exactly zero allocations for the remaining codecs. Reintroduce Snappy when Plank adopts a reusable codec API. Snappy functionality and correctness coverage remain unchanged.

Validation: Release build succeeded; all 1,103 Plank.Tests tests passed on .NET 10.0.12 (Linux x64).

@github-actions

Copy link
Copy Markdown

Public API unchanged.

@Kuinox
Kuinox merged commit e7697e5 into master Oct 24, 2026
2 checks passed
@Kuinox
Kuinox deleted the fix/exclude-snappy-allocation-tests branch October 24, 2026 15:43
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.

1 participant