Skip to content

feat: add standard encodings to binary cache#21921

Merged
spikecurtis merged 1 commit intomainfrom
spike/internal-1300-standard-encodings
Feb 6, 2026
Merged

feat: add standard encodings to binary cache#21921
spikecurtis merged 1 commit intomainfrom
spike/internal-1300-standard-encodings

Conversation

@spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Feb 4, 2026

fixes: coder/internal#1300

Adds brotli and zstd compression to the binary cache. Also refactors coderd's streaming encoding middleware to use the same standard set of compression algorithms, so we have them in one place.

@spikecurtis spikecurtis requested review from cstyan and sreya February 4, 2026 11:40
@spikecurtis spikecurtis marked this pull request as ready for review February 4, 2026 11:40
Copy link
Contributor

@coder-tasks coder-tasks bot left a comment

Choose a reason for hiding this comment

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

Code Review

Reviewed PR #21921 adding brotli and zstd compression to binary cache. Found 1 critical issue with closure variable capture in the loop.

Issues Found

🔴 CRITICAL: Closure variable capture bug in coderd/coderd.go - all encoders will use the last encoder from the map iteration

@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from d6f4333 to fc02705 Compare February 4, 2026 11:49
@spikecurtis spikecurtis force-pushed the spike/internal-1300-bin-handler-uses-cachecompress branch from 8106a6c to 5c4a495 Compare February 4, 2026 11:49
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from fc02705 to c0af5d5 Compare February 4, 2026 11:50
@spikecurtis spikecurtis force-pushed the spike/internal-1300-bin-handler-uses-cachecompress branch 2 times, most recently from e33ee3d to 2a1bb80 Compare February 4, 2026 11:50
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from c0af5d5 to 2ba6d56 Compare February 4, 2026 11:50
@spikecurtis spikecurtis force-pushed the spike/internal-1300-bin-handler-uses-cachecompress branch from 2a1bb80 to e34610b Compare February 5, 2026 08:46
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from 2ba6d56 to 7220f3a Compare February 5, 2026 08:46
@spikecurtis spikecurtis force-pushed the spike/internal-1300-bin-handler-uses-cachecompress branch from e34610b to 7a87b89 Compare February 6, 2026 06:15
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from 7220f3a to ca860de Compare February 6, 2026 06:15
@spikecurtis spikecurtis force-pushed the spike/internal-1300-bin-handler-uses-cachecompress branch from 7a87b89 to df7270f Compare February 6, 2026 06:31
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from ca860de to 21e75c7 Compare February 6, 2026 06:32
@spikecurtis spikecurtis force-pushed the spike/internal-1300-bin-handler-uses-cachecompress branch 2 times, most recently from c01ae30 to 3f6e16d Compare February 6, 2026 06:58
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from 21e75c7 to 352038c Compare February 6, 2026 06:58
@spikecurtis spikecurtis changed the base branch from spike/internal-1300-bin-handler-uses-cachecompress to graphite-base/21921 February 6, 2026 07:13
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from 352038c to 4deed54 Compare February 6, 2026 07:13
@graphite-app graphite-app bot changed the base branch from graphite-base/21921 to main February 6, 2026 07:14
@spikecurtis spikecurtis force-pushed the spike/internal-1300-standard-encodings branch from 4deed54 to 6cc6063 Compare February 6, 2026 07:14
@spikecurtis spikecurtis merged commit b84bb43 into main Feb 6, 2026
30 of 31 checks passed
Copy link
Contributor Author

Merge activity

@spikecurtis spikecurtis deleted the spike/internal-1300-standard-encodings branch February 6, 2026 07:28
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zstd compression is using a ton of CPU while we are creating workspaces

2 participants