From 0bd0261bd7204c011a8c0163b69e99da20210b67 Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Fri, 27 Nov 2026 13:51:53 +0100 Subject: [PATCH 1/2] Rust: Remove gzip TRAP compression option Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2cf18a20-d93f-4bd2-b312-fd9129881d7c --- rust/codeql-extractor.yml | 7 +++---- rust/extractor/src/config.rs | 2 -- rust/ql/integration-tests/hello-project/test_project.py | 1 - 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/rust/codeql-extractor.yml b/rust/codeql-extractor.yml index 819793ec26cc..5f36ceaa8cd9 100644 --- a/rust/codeql-extractor.yml +++ b/rust/codeql-extractor.yml @@ -25,11 +25,10 @@ options: title: Controls compression for the TRAP files written by the extractor. description: > This option is only intended for use in debugging the extractor. Accepted - values are 'gzip' (to write gzip-compressed TRAP) 'zstd' (the default, - to write Zstandard-compressed TRAP) and 'none' (to write uncompressed - TRAP). + values are 'zstd' (the default, to write Zstandard-compressed TRAP) and + 'none' (to write uncompressed TRAP). type: string - pattern: "^(none|gzip|zstd)$" + pattern: "^(none|zstd)$" cargo_target_dir: title: Directory to use for cargo output files. description: > diff --git a/rust/extractor/src/config.rs b/rust/extractor/src/config.rs index aa1d2421de6c..473ef5a6a301 100644 --- a/rust/extractor/src/config.rs +++ b/rust/extractor/src/config.rs @@ -31,7 +31,6 @@ use crate::toolchain::select_toolchain; #[clap(rename_all = "lowercase")] pub enum Compression { None, - Gzip, #[default] Zstd, } @@ -40,7 +39,6 @@ impl From for trap::Compression { fn from(val: Compression) -> Self { match val { Compression::None => Self::None, - Compression::Gzip => Self::Gzip, Compression::Zstd => Self::Zstd, } } diff --git a/rust/ql/integration-tests/hello-project/test_project.py b/rust/ql/integration-tests/hello-project/test_project.py index 7f53e78f7d49..45e01a5d1852 100644 --- a/rust/ql/integration-tests/hello-project/test_project.py +++ b/rust/ql/integration-tests/hello-project/test_project.py @@ -20,7 +20,6 @@ def test_do_not_print_env(codeql, rust, rust_edition, cargo, check_env_not_dumpe @pytest.mark.ql_test("steps.ql", expected=".cargo.expected") @pytest.mark.parametrize(("rust_edition", "compression", "suffix"), [ pytest.param(2024, "none", [], id="none"), - pytest.param(2024, "gzip", [".gz"], id="gzip"), pytest.param(2024, "zstd", [".zst"], id="zstd"), ]) def test_compression(codeql, rust, rust_edition, compression, suffix, cargo, rust_check_diagnostics, cwd): From f0dd0fc0cff7ee60b3aec5fd9334b4cdbf9e37e6 Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Fri, 27 Nov 2026 14:29:21 +0100 Subject: [PATCH 2/2] Rust: Document removal of gzip TRAP compression Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2cf18a20-d93f-4bd2-b312-fd9129881d7c --- .../change-notes/2026-11-27-remove-gzip-trap-compression.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md diff --git a/rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md b/rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md new file mode 100644 index 000000000000..cf168ab29e25 --- /dev/null +++ b/rust/ql/lib/change-notes/2026-11-27-remove-gzip-trap-compression.md @@ -0,0 +1,4 @@ +--- +category: breaking +--- +* The Rust extractor no longer supports `gzip` as a value for the `trap.compression` option. Use `zstd` (the default) or `none` instead.