team-ljyzipelo

공개

Python 버전별 GZip 시험 생성 차이를 수정함

작성자
시로사키 하나
작성 시각
커밋
6eb499b9a4c33205ae4562c30879088e72a5252d
부모
f7fc8cb
이 시점의 파일 보기

변경된 파일 6개

+407-3
추가tests/python-gzip-fixture-compat/SHA256SUMS+3-0
@@ -0,0 +1,3 @@
1추가: fc7dd6d4bdc0d26553f7d44e545e799f5f2388ce4c9b21573ac3faf016fa9cd4 overlay.json
2추가: ac7696f5dd7ae784ab0a59cc25f0f96794fbf0747bbd00a7419c801ce92a324c verify.py
3추가: 8f3f5d2134f63739e3a4926d3ff9cd1f9c0f9a1ab3047ae38546cc4700c1cf59 static-validation.json
추가tests/python-gzip-fixture-compat/overlay.json+84-0
@@ -0,0 +1,84 @@
1추가: {
2추가: "schema": 1,
3추가: "status": "source-static-only; Rust compile/run awaits fixed-head review",
4추가: "branch": "features/python-gzip-fixture-compat",
5추가: "base_head": "f7fc8cbece281e2f9a6374b4640ca4dd9d321fbc",
6추가: "base_tree": "ab5574289f537a4028a3abf092e4634cb9b89282",
7추가: "historical_sources": {
8추가: "path": "tests/rust-integration-baseline/sources.json",
9추가: "sha256": "d28874ea921a8027029f37bf35b64cb804c8e19345be893bc37a929d8b9dd932"
10추가: },
11추가: "historical_metadata": [
12추가: {
13추가: "path": "tests/rust-integration-baseline/sources.json",
14추가: "mode": "100644",
15추가: "type": "blob",
16추가: "sha": "495e32eb6eb40a81d95935385b4c9bef01732692"
17추가: },
18추가: {
19추가: "path": "tests/rust-integration-baseline/run-plan.json",
20추가: "mode": "100644",
21추가: "type": "blob",
22추가: "sha": "89eabfc1f19a402ab84666233a704e464288ec10"
23추가: },
24추가: {
25추가: "path": "tests/rust-integration-baseline/SHA256SUMS",
26추가: "mode": "100644",
27추가: "type": "blob",
28추가: "sha": "e0e32c99b5401562a8abcc0a7ebe6335d82d8413"
29추가: }
30추가: ],
31추가: "replacements": {
32추가: "tests/rust-app-core-memory/generate_fixtures.py": {
33추가: "before_git_blob": "9cffa6f45fa063fcc77d0b48796bb42a38e938a8",
34추가: "before_sha256": "203566ae81a254f4006924b74a3433a18b465950e5f1c9acb69e807809643534",
35추가: "after_git_blob": "f0e89ea50d7e6178a4e4f6d3e29e8af6c6f63640",
36추가: "after_sha256": "a358a8480c9f3addfcf9ab7572f31858ce59828436a1765faa6e427cfb062e11"
37추가: },
38추가: "tests/rust-app-core-memory/SHA256SUMS": {
39추가: "before_git_blob": "d2545fab5e8472abe8a49f2ba491d02d9cf27278",
40추가: "before_sha256": "9855466588a5a145c70d3db49ca0e372aeb20f0142520df318954b424884d95e",
41추가: "after_git_blob": "278ee9a537cfe0777fb53f1227f95330dc6a1d04",
42추가: "after_sha256": "0c8a155a9b14c886b3c46f002e35a6f795d7b5a815c8ea7ed87526d3574cff30"
43추가: }
44추가: },
45추가: "preservation": {
46추가: "base_files": 305,
47추가: "unchanged_base_files": 303,
48추가: "all_rust_source_tests_unchanged": true,
49추가: "fixtures_hex_json_unchanged": true,
50추가: "native_static_check_unchanged": true,
51추가: "historical_source_test_evidence_pins_unchanged": true,
52추가: "no_check_removed_or_relaxed": true
53추가: },
54추가: "generation": "Use stdlib GzipFile with empty filename, explicit mtime=0 and compression level=6; no header patching, expected byte changes, new dependency or raw encoder replacement.",
55추가: "validation": "Compare full generated fixtures.hex and fixtures.json bytes against unchanged frozen originals on host Python3.14 and Ubuntu24 Python3.12; run the unchanged core static checker with the new core manifest hash. This is Python-only, not Rust execution.",
56추가: "future_plan": {
57추가: "historical_plan": "tests/rust-integration-baseline/run-plan.json",
58추가: "overlay_application": "Materialize fixed base main then apply only these two replacements and this overlay directory; do not reinterpret historical pin files as the new candidate. Fix and verify the final PR head/tree separately before any Rust compile/run.",
59추가: "headless_groups": [
60추가: 67,
61추가: 11,
62추가: 42,
63추가: 150,
64추가: 303,
65추가: 31,
66추가: 14,
67추가: 72
68추가: ],
69추가: "expected_total": 690,
70추가: "test_names_and_expectations": "All eight original native contracts and Rust files unchanged",
71추가: "first_failure_stop": true,
72추가: "each_test_once_serially": true,
73추가: "cargo_build_jobs": 1,
74추가: "locked_offline": true,
75추가: "rust_toolchain": "1.99.1",
76추가: "no_host_targets_for_ubuntu24": true,
77추가: "no_gui_worker_vm_or_real_data": true
78추가: },
79추가: "limitations": [
80추가: "Empty filename/mtime/OS header policy is explicit; exact equality was checked only on the two recorded Python/zlib environments, not every future compressor version.",
81추가: "No Rust type check/compile/discovery/runtime or Ubuntu24 kernel/desktop support claim.",
82추가: "Previous static failures and all previous passed/failed execution records remain historical evidence."
83추가: ]
84추가: }
추가tests/python-gzip-fixture-compat/static-validation.json+196-0
@@ -0,0 +1,196 @@
1추가: {
2추가: "schema": 1,
3추가: "state": "python_static_checks_passed",
4추가: "base_head": "f7fc8cbece281e2f9a6374b4640ca4dd9d321fbc",
5추가: "base_tree": "ab5574289f537a4028a3abf092e4634cb9b89282",
6추가: "modified_files": [
7추가: "tests/rust-app-core-memory/SHA256SUMS",
8추가: "tests/rust-app-core-memory/generate_fixtures.py"
9추가: ],
10추가: "new_files": [
11추가: "tests/python-gzip-fixture-compat/overlay.json",
12추가: "tests/python-gzip-fixture-compat/verify.py",
13추가: "tests/python-gzip-fixture-compat/static-validation.json",
14추가: "tests/python-gzip-fixture-compat/SHA256SUMS"
15추가: ],
16추가: "checks": [
17추가: {
18추가: "environment": "host",
19추가: "fixture_and_overlay_check": {
20추가: "state": "passed",
21추가: "scope": "Python-only fixture bytes/provenance and fixed overlay verification; no Rust compile/run",
22추가: "base_head": "f7fc8cbece281e2f9a6374b4640ca4dd9d321fbc",
23추가: "base_tree": "ab5574289f537a4028a3abf092e4634cb9b89282",
24추가: "python": "3.14.4 (main, Aug 20 2026, 10:41:58) [GCC 15.2.0]",
25추가: "zlib_runtime": "1.3.1",
26추가: "base_paths_verified": 305,
27추가: "unchanged_base_paths": 303,
28추가: "changed_paths": [
29추가: "tests/rust-app-core-memory/SHA256SUMS",
30추가: "tests/rust-app-core-memory/generate_fixtures.py"
31추가: ],
32추가: "fixtures_hex_sha256": "b57d63624622ad0d17a0902a48bf9a514d1cb67be99d87d831bca4984d485e37",
33추가: "fixtures_json_sha256": "a1201119b4e74c9466affe0907025ae04ca24afb5d08aa55540fc42385cfe400",
34추가: "exact_bytes_and_json_equal": true,
35추가: "gzip_members_verified": 2,
36추가: "inputs_unchanged": true,
37추가: "rust_compiled": false,
38추가: "rust_executed": false
39추가: },
40추가: "unchanged_core_static_check": {
41추가: "source_head": "23b8d1c615f24f42469138fcc63e7fce7cda4f24",
42추가: "source_pins_verified": 69,
43추가: "manifest_sha256": "0c8a155a9b14c886b3c46f002e35a6f795d7b5a815c8ea7ed87526d3574cff30",
44추가: "declared": 67,
45추가: "selected_registry_packages": null,
46추가: "rust_compiled": false,
47추가: "runtime_discovered": null,
48추가: "runtime_executed": 0,
49추가: "fixture_stdlib_verification": true,
50추가: "inputs_unchanged": true
51추가: },
52추가: "native_checker_helper_tests_passed": 9,
53추가: "commands": [
54추가: {
55추가: "argv": [
56추가: "/usr/bin/python3",
57추가: "-B",
58추가: "tests/python-gzip-fixture-compat/verify.py"
59추가: ],
60추가: "cwd": "/home/user/projects/zipelo/tests/python-gzip-fixture-compat/validation-host/c",
61추가: "exit": 0,
62추가: "duration_seconds": 0.06062793799992505,
63추가: "stdout_sha256": "b26c95ea637656791de1d6649deaefd3e9e07b0a9bc12981c980abc522ab0675",
64추가: "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
65추가: "stdout_bytes": 812,
66추가: "stderr_bytes": 0
67추가: },
68추가: {
69추가: "argv": [
70추가: "/usr/bin/python3",
71추가: "-B",
72추가: "tests/rust-app-core-memory/static_check.py",
73추가: "--manifest-sha256",
74추가: "0c8a155a9b14c886b3c46f002e35a6f795d7b5a815c8ea7ed87526d3574cff30"
75추가: ],
76추가: "cwd": "/home/user/projects/zipelo/tests/python-gzip-fixture-compat/validation-host/c",
77추가: "exit": 0,
78추가: "duration_seconds": 0.05417774899979122,
79추가: "stdout_sha256": "0808164c77bab6d10130b0d8a3213834c18ba9533191636d9b86bd5532554a9e",
80추가: "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
81추가: "stdout_bytes": 365,
82추가: "stderr_bytes": 0
83추가: },
84추가: {
85추가: "argv": [
86추가: "/usr/bin/python3",
87추가: "-B",
88추가: "tests/rust-app-core-memory/static_check_helper_tests.py"
89추가: ],
90추가: "cwd": "/home/user/projects/zipelo/tests/python-gzip-fixture-compat/validation-host/c",
91추가: "exit": 0,
92추가: "duration_seconds": 1.4344941700001073,
93추가: "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
94추가: "stderr_sha256": "3c6cc1a67560b93d5f5856c2df5b5461dd0bddc9437b09f34eda4e9c9e0336ec",
95추가: "stdout_bytes": 0,
96추가: "stderr_bytes": 1176
97추가: }
98추가: ]
99추가: },
100추가: {
101추가: "environment": "ubuntu24",
102추가: "fixture_and_overlay_check": {
103추가: "state": "passed",
104추가: "scope": "Python-only fixture bytes/provenance and fixed overlay verification; no Rust compile/run",
105추가: "base_head": "f7fc8cbece281e2f9a6374b4640ca4dd9d321fbc",
106추가: "base_tree": "ab5574289f537a4028a3abf092e4634cb9b89282",
107추가: "python": "3.12.3 (main, Aug 31 2026, 10:18:26) [GCC 13.3.0]",
108추가: "zlib_runtime": "1.3",
109추가: "base_paths_verified": 305,
110추가: "unchanged_base_paths": 303,
111추가: "changed_paths": [
112추가: "tests/rust-app-core-memory/SHA256SUMS",
113추가: "tests/rust-app-core-memory/generate_fixtures.py"
114추가: ],
115추가: "fixtures_hex_sha256": "b57d63624622ad0d17a0902a48bf9a514d1cb67be99d87d831bca4984d485e37",
116추가: "fixtures_json_sha256": "a1201119b4e74c9466affe0907025ae04ca24afb5d08aa55540fc42385cfe400",
117추가: "exact_bytes_and_json_equal": true,
118추가: "gzip_members_verified": 2,
119추가: "inputs_unchanged": true,
120추가: "rust_compiled": false,
121추가: "rust_executed": false
122추가: },
123추가: "unchanged_core_static_check": {
124추가: "source_head": "23b8d1c615f24f42469138fcc63e7fce7cda4f24",
125추가: "source_pins_verified": 69,
126추가: "manifest_sha256": "0c8a155a9b14c886b3c46f002e35a6f795d7b5a815c8ea7ed87526d3574cff30",
127추가: "declared": 67,
128추가: "selected_registry_packages": null,
129추가: "rust_compiled": false,
130추가: "runtime_discovered": null,
131추가: "runtime_executed": 0,
132추가: "fixture_stdlib_verification": true,
133추가: "inputs_unchanged": true
134추가: },
135추가: "native_checker_helper_tests_passed": 9,
136추가: "commands": [
137추가: {
138추가: "argv": [
139추가: "/usr/bin/python3",
140추가: "-B",
141추가: "tests/python-gzip-fixture-compat/verify.py"
142추가: ],
143추가: "cwd": "/work/g",
144추가: "exit": 0,
145추가: "duration_seconds": 0.06128367699966475,
146추가: "stdout_sha256": "67dc65be2e5a781611c59af0a177b6e38b44e23c080f768c371fbe30630a23b2",
147추가: "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
148추가: "stdout_bytes": 810,
149추가: "stderr_bytes": 0
150추가: },
151추가: {
152추가: "argv": [
153추가: "/usr/bin/python3",
154추가: "-B",
155추가: "tests/rust-app-core-memory/static_check.py",
156추가: "--manifest-sha256",
157추가: "0c8a155a9b14c886b3c46f002e35a6f795d7b5a815c8ea7ed87526d3574cff30"
158추가: ],
159추가: "cwd": "/work/g",
160추가: "exit": 0,
161추가: "duration_seconds": 0.053824678000637505,
162추가: "stdout_sha256": "0808164c77bab6d10130b0d8a3213834c18ba9533191636d9b86bd5532554a9e",
163추가: "stderr_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
164추가: "stdout_bytes": 365,
165추가: "stderr_bytes": 0
166추가: },
167추가: {
168추가: "argv": [
169추가: "/usr/bin/python3",
170추가: "-B",
171추가: "tests/rust-app-core-memory/static_check_helper_tests.py"
172추가: ],
173추가: "cwd": "/work/g",
174추가: "exit": 0,
175추가: "duration_seconds": 0.9235151720004069,
176추가: "stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
177추가: "stderr_sha256": "f0fc6f693c225d34e802724d0f1d8f5337aca98e654a75a79cd92f9452d252c6",
178추가: "stdout_bytes": 0,
179추가: "stderr_bytes": 1176
180추가: }
181추가: ]
182추가: }
183추가: ],
184추가: "unchanged_original_files": 303,
185추가: "rust_source_test_files_unchanged": 53,
186추가: "frozen_fixture_hex_json_unchanged": true,
187추가: "original_native_static_checker_unchanged": true,
188추가: "historical_manifest_source_pins_and_execution_logs_unchanged": true,
189추가: "rust_expected_total_unchanged": 690,
190추가: "rust_compile_discover_execute": false,
191추가: "dependencies_changed": false,
192추가: "installation_or_network_change": false,
193추가: "remaining_owned_test_processes": [],
194추가: "limits": "Exact equality recorded on Python3.14.4/zlib1.3.1 and Python3.12.3/zlib1.3 only. No proof of identical compression across every future Python/zlib release.",
195추가: "future_gate": "Review fixed PR head/tree before a new Rust compile/run assignment; use this explicit overlay instead of rewriting historical pins."
196추가: }
추가tests/python-gzip-fixture-compat/verify.py+114-0
@@ -0,0 +1,114 @@
1추가: import argparse
2추가: import gzip
3추가: import hashlib
4추가: import json
5추가: from pathlib import Path, PurePosixPath
6추가: import runpy
7추가: import stat
8추가: import sys
9추가: import zlib
10추가:
11추가: BASE_HEAD = "f7fc8cbece281e2f9a6374b4640ca4dd9d321fbc"
12추가: BASE_TREE = "ab5574289f537a4028a3abf092e4634cb9b89282"
13추가: CHANGED = {
14추가: "tests/rust-app-core-memory/generate_fixtures.py",
15추가: "tests/rust-app-core-memory/SHA256SUMS",
16추가: }
17추가:
18추가:
19추가: def require(condition, message):
20추가: if not condition:
21추가: raise RuntimeError(message)
22추가:
23추가:
24추가: def git_hash(kind, data):
25추가: return hashlib.sha1(kind.encode() + b" " + str(len(data)).encode() + b"\0" + data).hexdigest()
26추가:
27추가:
28추가: def tree_hash(entries):
29추가: tree = {}
30추가: for item in entries:
31추가: parts = PurePosixPath(item["path"]).parts
32추가: node = tree
33추가: for part in parts[:-1]:
34추가: node = node.setdefault(part, {})
35추가: require(parts[-1] not in node, "중복 tree 경로임")
36추가: node[parts[-1]] = (item["mode"], item["sha"])
37추가:
38추가: def calculate(node):
39추가: data = bytearray()
40추가: for name, value in sorted(node.items(), key=lambda row: (row[0] + ("/" if isinstance(row[1], dict) else "")).encode()):
41추가: mode, digest = ("40000", calculate(value)) if isinstance(value, dict) else value
42추가: data.extend(mode.encode() + b" " + name.encode() + b"\0" + bytes.fromhex(digest))
43추가: return git_hash("tree", bytes(data))
44추가:
45추가: return calculate(tree)
46추가:
47추가:
48추가: def main():
49추가: require(__debug__ and not sys.flags.optimize, "최적화 모드에서는 검증할 수 없음")
50추가: parser = argparse.ArgumentParser()
51추가: parser.add_argument("--root", type=Path, default=Path(__file__).resolve().parents[2])
52추가: args = parser.parse_args()
53추가: root = args.root.resolve()
54추가: overlay_path = root / "tests/python-gzip-fixture-compat/overlay.json"
55추가: overlay = json.loads(overlay_path.read_bytes())
56추가: require(overlay["base_head"] == BASE_HEAD and overlay["base_tree"] == BASE_TREE, "기준 head/tree 불일치")
57추가: require(set(overlay["replacements"]) == CHANGED, "허용 변경 경로 불일치")
58추가: source_manifest = root / overlay["historical_sources"]["path"]
59추가: require(hashlib.sha256(source_manifest.read_bytes()).hexdigest() == overlay["historical_sources"]["sha256"], "과거 출처 pin 변경됨")
60추가: entries = json.loads(source_manifest.read_bytes())["entries"]
61추가: require(len(entries) == 302, "원본 출처 항목 수 불일치")
62추가: entries = [{key: item[key] for key in ["path", "mode", "type", "sha"]} for item in entries]
63추가: entries.extend(overlay["historical_metadata"])
64추가: require(len(entries) == len({item["path"] for item in entries}) == 305, "기준 tree 경로 수 불일치")
65추가: require(tree_hash(entries) == BASE_TREE, "고정 원본 tree 불일치")
66추가: before = {}
67추가: for item in entries:
68추가: relative = PurePosixPath(item["path"])
69추가: require(not relative.is_absolute() and ".." not in relative.parts and str(relative) == item["path"], "경로 이탈 거부함")
70추가: path = root / relative
71추가: require(path.is_file() and not path.is_symlink() and path.resolve().is_relative_to(root), "일반 파일 경로가 아님")
72추가: require(stat.S_IMODE(path.stat().st_mode) == 0o644 and item["mode"] == "100644" and item["type"] == "blob", "고정 파일 mode 불일치")
73추가: raw = path.read_bytes()
74추가: replacement = overlay["replacements"].get(item["path"])
75추가: expected = item["sha"]
76추가: if replacement is not None:
77추가: require(replacement["before_git_blob"] == expected, "overlay 부모 pin 불일치")
78추가: expected = replacement["after_git_blob"]
79추가: require(hashlib.sha256(raw).hexdigest() == replacement["after_sha256"], "overlay SHA256 불일치")
80추가: require(git_hash("blob", raw) == expected, "고정 blob 불일치: " + item["path"])
81추가: before[item["path"]] = hashlib.sha256(raw).hexdigest()
82추가: fixture_dir = root / "tests/rust-app-core-memory"
83추가: generated_hex, generated_json = runpy.run_path(str(fixture_dir / "generate_fixtures.py"))["build"]()
84추가: require(generated_hex.encode() == (fixture_dir / "fixtures.hex").read_bytes(), "기존 fixture bytes와 다름")
85추가: require(generated_json.encode() == (fixture_dir / "fixtures.json").read_bytes(), "기존 fixture JSON bytes와 다름")
86추가: values = dict(line.split(" ", 1) for line in generated_hex.splitlines())
87추가: for name, payload in [("gzip_digits", b"123456789"), ("gzip_empty", b"")]:
88추가: member = bytes.fromhex(values[name])
89추가: require(member[:10] == bytes.fromhex("1f8b08000000000000ff"), "고정 GZip header와 다름")
90추가: require(gzip.decompress(member) == payload, "표준 GZip 해제 결과가 다름")
91추가: for relative, digest in before.items():
92추가: require(hashlib.sha256((root / relative).read_bytes()).hexdigest() == digest, "검증 중 입력 변경됨")
93추가: print(json.dumps({
94추가: "state": "passed",
95추가: "scope": "Python-only fixture bytes/provenance and fixed overlay verification; no Rust compile/run",
96추가: "base_head": BASE_HEAD,
97추가: "base_tree": BASE_TREE,
98추가: "python": sys.version,
99추가: "zlib_runtime": zlib.ZLIB_RUNTIME_VERSION,
100추가: "base_paths_verified": len(before),
101추가: "unchanged_base_paths": len(before) - len(CHANGED),
102추가: "changed_paths": sorted(CHANGED),
103추가: "fixtures_hex_sha256": hashlib.sha256(generated_hex.encode()).hexdigest(),
104추가: "fixtures_json_sha256": hashlib.sha256(generated_json.encode()).hexdigest(),
105추가: "exact_bytes_and_json_equal": True,
106추가: "gzip_members_verified": 2,
107추가: "inputs_unchanged": True,
108추가: "rust_compiled": False,
109추가: "rust_executed": False,
110추가: }, ensure_ascii=False))
111추가:
112추가:
113추가: if __name__ == "__main__":
114추가: main()
수정tests/rust-app-core-memory/SHA256SUMS+1-1
@@ -5,7 +5,7 @@
55c2c9f8f2a077ff22fce09c3b9ff4ebefb0627a031e68fd7b1523a93315c3e922 delivery.rs
66b57d63624622ad0d17a0902a48bf9a514d1cb67be99d87d831bca4984d485e37 fixtures.hex
77a1201119b4e74c9466affe0907025ae04ca24afb5d08aa55540fc42385cfe400 fixtures.json
8삭제: 203566ae81a254f4006924b74a3433a18b465950e5f1c9acb69e807809643534 generate_fixtures.py
8추가: a358a8480c9f3addfcf9ab7572f31858ce59828436a1765faa6e427cfb062e11 generate_fixtures.py
997f26dade709fd7b598739b6e01f56a619a481af6a1c10df881be04d3f5306b60 gzip.rs
101001282aa60ebb5137faf467ed81f28739c885b44563be57e37cf09a329a323062 main.rs
11114e2eeaa88b5c592fa9ec936e5b6cd8834c4685fc2104217b177620b1caec7cc6 send.rs
수정tests/rust-app-core-memory/generate_fixtures.py+9-2
@@ -6,6 +6,13 @@ import tarfile
66import zlib
77
88
9추가: def gzip_bytes(payload):
10추가: archive = io.BytesIO()
11추가: with gzip.GzipFile(filename="", mode="wb", compresslevel=6, fileobj=archive, mtime=0) as writer:
12추가: writer.write(payload)
13추가: return archive.getvalue()
14추가:
15추가:
916def build():
1017 payload = b"123456789"
1118 archive = io.BytesIO()
@@ -18,8 +25,8 @@ def build():
1825 tar_bytes = archive.getvalue()[:2048]
1926 values = {
2027 "digits": payload,
21삭제: "gzip_digits": gzip.compress(payload, compresslevel=6, mtime=0),
22삭제: "gzip_empty": gzip.compress(b"", compresslevel=6, mtime=0),
28추가: "gzip_digits": gzip_bytes(payload),
29추가: "gzip_empty": gzip_bytes(b""),
2330 "ustar_one": tar_bytes,
2431 "ustar_sha256": hashlib.sha256(tar_bytes).digest(),
2532 }