Use gzip compression level 6 for Codex package archives (#45039)

GitOrigin-RevId: ffd0d1cedb56a10dd9e2e0410c60deafc4202f37
This commit is contained in:
Charlie Marsh
2026-09-12 13:13:20 +00:00
committed by copyberry
parent 727e48697d
commit 53c542d944
+2 -1
View File
@@ -59,7 +59,8 @@ def archive_format_for_path(path: Path) -> str:
def write_tar_archive(package_dir: Path, archive_path: Path, *, mode: str) -> None:
with tarfile.open(archive_path, mode) as archive:
options = {"compresslevel": 6} if mode == "w:gz" else {}
with tarfile.open(archive_path, mode, **options) as archive:
for path in package_entries(package_dir):
archive.add(
path,