Skip to content

Commit 3141d12

Browse files
rustyconoverclaude
andcommitted
protocol 3.4.0: upload URLs v2 (sized, checksummed client uploads)
Bump the vgi.v3 protocol to 3.4.0. The only change is vgi-rpc upload-URL protocol v2 (VGI-Upload-URL-Support: 2): __upload_url__/init takes one (size, sha256) entry per upload instead of `count`, each vended PUT URL is signed for exactly that body, and request pointers must carry vgi_rpc.location.sha256. - vgi/protocol.py, protocol_version.txt: 3.4.0; previous-minor fixtures and the protocol-version conformance test move to 3.3.0 - Client: an oversized HTTP input is hashed, uploaded to a URL signed for its (size, sha256) with the vended upload_headers on a bare client (not the RPC client and its credentials), and sent as a pointer carrying the digest. A storage refusal raises ClientError with the S3 code and a redacted URL. - DemoBlobStorage and the fixture S3 storage implement generate_upload_url(size, sha256_hex); the demo store checks PUTs the way S3 does. vgi-serve --http with VGI_BLOB_VENDOR_URL vends sized vendor grants through vgi_rpc.vendor.VendorStorage. - Pin the unreleased vgi-rpc-python protocol-3.4 branch by git commit (TODO(release-wave)). - Tests: vendor end-to-end upload and corrupted-upload refusal, demo-storage PUT checks, v2 updates to the upload tests. Docs: docs/protocol/upload-urls-v2.md, CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 3cf1489 commit 3141d12

17 files changed

Lines changed: 305 additions & 63 deletions

‎CHANGELOG.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## Unreleased (protocol 3.4)
4+
5+
### Breaking
6+
7+
- **VGI protocol 3.4.0.** Clients and workers match on exact major and minor, so a 3.4 worker refuses a 3.3
8+
client and vice versa. The only change is the upload-URL contract below; see
9+
[docs/protocol/upload-urls-v2.md](docs/protocol/upload-urls-v2.md).
10+
- **Upload URLs v2 (`VGI-Upload-URL-Support: 2`).** Built on the unreleased vgi-rpc upload-URL protocol v2 (pinned
11+
by git commit until the release wave). `__upload_url__/init` takes one `(size, sha256)` entry per upload instead
12+
of `count`, and each vended PUT URL is signed for exactly that body. `Client` hashes an oversized input, PUTs
13+
exactly those bytes with the vended `upload_headers` on a bare client (never the RPC client's credentials), and
14+
puts `vgi_rpc.location.sha256` on the pointer. Workers refuse a request pointer without that digest. A storage
15+
refusal raises `ClientError` with the S3 error code and a redacted URL. `DemoBlobStorage` and the S3 fixture
16+
storage implement `generate_upload_url(size, sha256_hex)`, and `vgi-serve --http` with `VGI_BLOB_VENDOR_URL`
17+
vends sized vendor grants.
18+
319
## 0.52.2 (2026-11-16)
420

521
### Fixes

‎docs/protocol/index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Each document declares its own status; “proposed” means the contract is stil
1010
| [VGI DuckDB Filter Adapter](vgi-duckdb-filter-adapter.md) | **Informative implementation guide, proposed** | DuckDB 1.5 and 2.0 mappings into the normative filter-v2 wire contract. |
1111
| [Function visibility](function-visibility.md) | **Normative** | Protocol 3.3 `FunctionInfo.visibility` (`public` / `table_only`) and the rule that every function a table names is listed. |
1212
| [Write path changes in 3.3](write-path-3-3.md) | **Normative** | Protocol 3.3: `catalog_table_scan_function_get` removed (branches only), `catalog_table_create` returns `created`, and the write-options batch keeps only `result_mode`. |
13+
| [Upload URLs v2](upload-urls-v2.md) | **Normative** | Protocol 3.4: sized, checksummed client uploads (`VGI-Upload-URL-Support: 2`), and request pointers must carry `vgi_rpc.location.sha256`. |
1314
| [VGI Secrets](vgi-secrets.md) | **Normative** | How a worker asks for client-side secrets, the two-phase bind, and the layout of the secrets batch. |
1415
| [VGI catalog query pushdown](vgi-catalog-query-pushdown-design.md) | **Informative implementation design, proposed** | Updated 2026-10-06: proposed VGI 2.2 query preparation, DuckDB 1.5 explicit execution, and DuckDB 2.0 bound-plan SQL export for automatic pushdown. |
1516
| [Proposed VGI protocol changes for DuckDB 2.0](vgi-protocol-proposed-changes.md) | **Informative design/audit report** | Rationale, migration inventory, implementation status, and deferred protocol decisions. It is not an implementation specification. |

‎docs/protocol/upload-urls-v2.md‎

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Upload URLs v2 (protocol 3.4)
2+
3+
Status: **normative**. Introduced in `vgi.v3` / `3.4.0`.
4+
5+
Protocol 3.4.0 is a minor bump of `vgi.v3`. Clients and workers match on exact major and minor, so 3.4 peers
6+
refuse 3.3 peers. Nothing else in the VGI protocol changes in 3.4. The bump marks the vgi-rpc transport change
7+
below, which every peer must make at the same time.
8+
9+
## What changed
10+
11+
Over HTTP, a request larger than the worker's `VGI-Max-Request-Bytes` goes up through a server-vended pre-signed
12+
URL. Before 3.4 those URLs were unsized (`__upload_url__/init` took a `count`), so storage accepted any bytes.
13+
Since vgi-rpc upload-URL protocol v2:
14+
15+
- the worker advertises `VGI-Upload-URL-Support: 2` (it was `true`);
16+
- `__upload_url__/init` takes `uploads: list<struct<size: int64, sha256: utf8>>`, one entry per upload. Each
17+
vended PUT URL is signed for exactly that size and, where storage can check it (S3, R2, the blob vendor),
18+
that SHA-256. The response adds `upload_headers` (`map<utf8, utf8>`), the headers the PUT must carry;
19+
- the old `count` request is refused with HTTP 400 (`retired count shape`), and a client refuses a `true` (v1)
20+
server (`upload protocol is too old`);
21+
- a request pointer must carry `vgi_rpc.location.sha256`. A worker refuses one without it before fetching
22+
(`missing vgi_rpc.location.sha256`) and verifies the fetched bytes against it (`sha256 mismatch`). In 3.4 the
23+
DuckDB extension also requires the digest on result pointers.
24+
25+
The wire contract (schemas, refusals, per-backend signed headers) is specified in vgi-rpc-python's
26+
`docs/WIRE_PROTOCOL.md`, section *Upload URL generation*.
27+
28+
## In vgi-python
29+
30+
- `vgi.client.Client` externalizes an oversized input with the v2 flow: it hashes, requests the URL, PUTs on a
31+
bare client with `upload_headers`, and puts the digest on the pointer.
32+
- `vgi-serve --http` with `VGI_BLOB_VENDOR_URL` vends sized vendor grants (`POST /v1/blobs/put`,
33+
`purpose: "rpc"`) through `vgi_rpc.vendor.VendorStorage`.
34+
- `vgi.http.demo_storage.DemoBlobStorage.generate_upload_url(size, sha256_hex)` checks the PUT the way S3 does
35+
(`400 IncompleteBody`, `403 SignatureDoesNotMatch`, `400 BadDigest`).

‎mkdocs.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ nav:
147147
- "Filtered scan planning (normative)": protocol/scan-planning.md
148148
- "Function visibility (normative)": protocol/function-visibility.md
149149
- "Write path changes in 3.3 (normative)": protocol/write-path-3-3.md
150+
- "Upload URLs v2 in 3.4 (normative)": protocol/upload-urls-v2.md
150151
- "Filter Encoding v2 (normative, proposed)": protocol/vgi-filter-encoding-v2-spec.md
151152
- "Runtime-filter artifacts (optional extension)": protocol/vgi-runtime-filter-artifacts.md
152153
- "Opaque values: sealing (normative)": protocol/vgi-opaque-data-sealing.md

‎pyproject.toml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,11 @@ members = ["packages/vgi-fixtures"]
287287
[tool.uv.sources]
288288
# duckdb = { path = "/path/to/duckdb-python/dist/duckdb-*.whl" } # local engine-build override
289289
vgi-fixtures = { workspace = true }
290+
# TODO(release-wave): vgi protocol 3.4 needs vgi-rpc upload-URL protocol v2
291+
# (VGI-Upload-URL-Support: 2), which is unreleased on vgi-rpc-python's
292+
# protocol-3.4 branch. Replace this pin with a `vgi-rpc>=<release>` floor
293+
# when that release ships.
294+
vgi-rpc = { git = "https://github.com/Query-farm/vgi-rpc-python", rev = "a07ccf2e1bf1c0832ae43757a55e8b4817674b2d" }
290295

291296
[dependency-groups]
292297
dev = ["lxml>=6.0.2", "pytest-timeout>=2.4.0", "vgi-fixtures"]

‎tests/conformance/test_http_upload_url.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def test_oversize_input_auto_externalized(small_request_limit_base_url: str) ->
8080
with Client.from_http(small_request_limit_base_url, external_location=config) as client:
8181
caps = client.server_capabilities()
8282
assert caps.upload_url_support is True
83+
assert caps.upload_url_version == 2
8384
assert caps.max_request_bytes is not None and caps.max_request_bytes > 0
8485

8586
out = list(

‎tests/conformance/test_protocol_version.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@
2828

2929
# The version the real Python client / C++ extension declares and sends.
3030
CLIENT_PROTOCOL_VERSION = VgiProtocol.protocol_version
31-
PREVIOUS_MINOR_PROTOCOL_VERSION = "3.2.0"
31+
PREVIOUS_MINOR_PROTOCOL_VERSION = "3.3.0"
3232

3333

3434
def test_client_protocol_version_is_canonical() -> None:
3535
"""Sanity-check the constants this test reasons about haven't drifted apart."""
36-
assert CLIENT_PROTOCOL_VERSION == "3.3.0"
36+
assert CLIENT_PROTOCOL_VERSION == "3.4.0"
3737
assert VgiProtocol.protocol_name == "vgi.v3"
3838
# The fixture must be a genuine mismatch in the major/minor that the
3939
# framework compares; a patch-only difference would (correctly) pass.
4040
assert BAD_PROTOCOL_VERSION.split(".")[:2] != CLIENT_PROTOCOL_VERSION.split(".")[:2]
4141

4242

4343
def test_mismatched_worker_protocol_version_raises() -> None:
44-
"""A worker enforcing 99.0.0 must reject the 3.3.0 client at dispatch."""
44+
"""A worker enforcing 99.0.0 must reject the 3.4.0 client at dispatch."""
4545
with Client("vgi-fixture-bad-protocol-worker") as client, pytest.raises(ClientError) as exc_info:
4646
list(
4747
client.table_function(
@@ -56,7 +56,7 @@ def test_mismatched_worker_protocol_version_raises() -> None:
5656
assert "protocol_version mismatch" in message
5757
assert CLIENT_PROTOCOL_VERSION in message
5858
assert BAD_PROTOCOL_VERSION in message
59-
# Directional hint: the client (3.3.0) is older than the worker (99.0.0).
59+
# Directional hint: the client (3.4.0) is older than the worker (99.0.0).
6060
assert "upgrade the VGI extension/client" in message
6161

6262

‎tests/test_http_demo_storage.py‎

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,30 @@ def test_generate_upload_url(self) -> None:
183183
"""generate_upload_url returns matching PUT/GET URLs with .arrow extension."""
184184
storage = DemoBlobStorage()
185185
storage.set_base_url("http://127.0.0.1:9999")
186-
upload_url = storage.generate_upload_url(pa.schema([]))
186+
upload_url = storage.generate_upload_url(5, "ab" * 32)
187187

188188
assert "/__blobs__/" in upload_url.upload_url
189+
assert set(upload_url.headers) == {"x-amz-checksum-sha256"}
189190
assert upload_url.upload_url == upload_url.download_url
190191
assert upload_url.upload_url.endswith(".arrow")
191192
assert upload_url.expires_at is not None
192193

194+
def test_check_put_verifies_declared_body(self) -> None:
195+
"""A vended key accepts only the declared bytes, like a SigV4 sized PUT."""
196+
import hashlib
197+
198+
storage = DemoBlobStorage()
199+
storage.set_base_url("http://127.0.0.1:9999")
200+
body = b"hello"
201+
upload = storage.generate_upload_url(len(body), hashlib.sha256(body).hexdigest())
202+
key = upload.upload_url.rsplit("/", 1)[1]
203+
checksum = upload.headers["x-amz-checksum-sha256"]
204+
assert storage.check_put(key, body, checksum) is None
205+
assert storage.check_put(key, b"hellO", checksum) == ("400 Bad Request", "BadDigest")
206+
assert storage.check_put(key, b"hell", checksum) == ("400 Bad Request", "IncompleteBody")
207+
assert storage.check_put(key, body, None) == ("403 Forbidden", "SignatureDoesNotMatch")
208+
assert storage.check_put("not-vended.arrow", b"anything", None) is None
209+
193210
def test_put_and_get(self) -> None:
194211
"""Direct put/get stores and retrieves blob data with encoding."""
195212
storage = DemoBlobStorage()
@@ -311,9 +328,11 @@ def test_demo_input_upload_url_then_exchange(compression: str) -> None:
311328
pytest.skip("zstd test requires aiohttp zstd decode support (backports.zstd)")
312329
pytest.importorskip("zstandard")
313330

331+
import hashlib
332+
314333
from vgi_rpc import ExternalLocationConfig
315334
from vgi_rpc.http import http_capabilities, http_connect, request_upload_urls
316-
from vgi_rpc.metadata import LOCATION_KEY
335+
from vgi_rpc.metadata import LOCATION_KEY, LOCATION_SHA256_KEY
317336
from vgi_rpc.rpc import AnnotatedBatch
318337

319338
# Must exceed the per-exchange protocol overhead (the sealed state token
@@ -324,16 +343,19 @@ def test_demo_input_upload_url_then_exchange(compression: str) -> None:
324343
with _run_demo_http_server(threshold_bytes=threshold_bytes) as base_url:
325344
caps = http_capabilities(base_url=base_url)
326345
assert caps.upload_url_support
346+
assert caps.upload_url_version == 2
327347
assert caps.max_upload_bytes == threshold_bytes
328348

329-
urls = request_upload_urls(base_url=base_url, count=1)
330-
assert len(urls) == 1
331-
upload = urls[0]
332-
333349
input_schema = pa.schema([("x", pa.int64())])
334350
uploaded_batch = pa.RecordBatch.from_pydict({"x": [1, 2, 3]}, schema=input_schema)
335351
payload = _batch_to_ipc_bytes(uploaded_batch)
336-
headers: dict[str, str] = {}
352+
raw_sha256 = hashlib.sha256(payload).hexdigest()
353+
# The demo store decodes a Content-Encoding PUT before storing, so the
354+
# declared (stored) bytes are the raw IPC stream for every codec.
355+
urls = request_upload_urls(base_url=base_url, uploads=[(len(payload), raw_sha256)])
356+
assert len(urls) == 1
357+
upload = urls[0]
358+
headers: dict[str, str] = dict(upload.headers)
337359
if compression == "zstd":
338360
import zstandard
339361

@@ -370,7 +392,9 @@ def test_demo_input_upload_url_then_exchange(compression: str) -> None:
370392
)
371393
try:
372394
pointer_batch = pa.RecordBatch.from_pydict({"x": []}, schema=input_schema)
373-
cm = pa.KeyValueMetadata({LOCATION_KEY: upload.download_url.encode()})
395+
cm = pa.KeyValueMetadata(
396+
{LOCATION_KEY: upload.download_url.encode(), LOCATION_SHA256_KEY: raw_sha256.encode()}
397+
)
374398
output = stream.exchange(AnnotatedBatch(batch=pointer_batch, custom_metadata=cm))
375399
finally:
376400
stream.close()

‎tests/test_http_s3_offload_input.py‎

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@ def test_http_input_upload_url_then_external_location_scalar_exchange(compressio
122122
pytest.skip("zstd input test requires aiohttp zstd decode support (backports.zstd)")
123123
pytest.importorskip("zstandard")
124124

125+
import hashlib
126+
125127
from vgi_rpc import ExternalLocationConfig
126128
from vgi_rpc.http import http_capabilities, http_connect, request_upload_urls
127-
from vgi_rpc.metadata import LOCATION_KEY
129+
from vgi_rpc.metadata import LOCATION_KEY, LOCATION_SHA256_KEY
128130
from vgi_rpc.rpc import AnnotatedBatch
129131

130132
from vgi.http.demo_storage import localhost_only_validator
@@ -139,21 +141,26 @@ def test_http_input_upload_url_then_external_location_scalar_exchange(compressio
139141

140142
caps = http_capabilities(base_url=base_url)
141143
assert caps.upload_url_support
144+
assert caps.upload_url_version == 2
142145
assert caps.max_upload_bytes == threshold_bytes
143146

144-
urls = request_upload_urls(base_url=base_url, count=1)
145-
assert len(urls) == 1
146-
upload = urls[0]
147-
148147
input_schema = pa.schema([("x", pa.int64())])
149148
uploaded_batch = pa.RecordBatch.from_pydict({"x": [1, 2, 3]}, schema=input_schema)
150149
payload = _batch_to_ipc_bytes(uploaded_batch)
151-
headers: dict[str, str] = {}
150+
# The pointer digest covers the decoded IPC stream; the upload entry
151+
# covers the stored (possibly compressed) bytes S3 verifies.
152+
raw_sha256 = hashlib.sha256(payload).hexdigest()
153+
extra_headers: dict[str, str] = {}
152154
if compression == "zstd":
153155
import zstandard
154156

155157
payload = zstandard.ZstdCompressor(level=3).compress(payload)
156-
headers["Content-Encoding"] = "zstd"
158+
extra_headers["Content-Encoding"] = "zstd"
159+
160+
urls = request_upload_urls(base_url=base_url, uploads=[(len(payload), hashlib.sha256(payload).hexdigest())])
161+
assert len(urls) == 1
162+
upload = urls[0]
163+
headers = {**upload.headers, **extra_headers}
157164

158165
put_resp = httpx2.put(upload.upload_url, content=payload, headers=headers, timeout=30.0)
159166
assert put_resp.status_code in (200, 201)
@@ -183,7 +190,9 @@ def test_http_input_upload_url_then_external_location_scalar_exchange(compressio
183190
)
184191
try:
185192
pointer_batch = pa.RecordBatch.from_pydict({"x": []}, schema=input_schema)
186-
cm = pa.KeyValueMetadata({LOCATION_KEY: upload.download_url.encode()})
193+
cm = pa.KeyValueMetadata(
194+
{LOCATION_KEY: upload.download_url.encode(), LOCATION_SHA256_KEY: raw_sha256.encode()}
195+
)
187196
output = stream.exchange(AnnotatedBatch(batch=pointer_batch, custom_metadata=cm))
188197
finally:
189198
stream.close()

‎tests/test_serve_blob_vendor.py‎

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ def test_vgi_serve_externalizes_results_and_vends_upload_urls(vendor: FakeVendor
119119

120120
caps = http_capabilities(base_url=base_url)
121121
assert caps.upload_url_support is True
122+
assert caps.upload_url_version == 2
122123
assert caps.max_request_bytes == 262144
123124
assert caps.max_upload_bytes == 1073741824
124125

@@ -155,3 +156,84 @@ def test_vgi_serve_externalizes_results_and_vends_upload_urls(vendor: FakeVendor
155156
finally:
156157
proc.terminate()
157158
proc.wait(timeout=10)
159+
160+
161+
def _serve_with_vendor(vendor: FakeVendorServer, *, max_request_bytes: int) -> tuple[subprocess.Popen[str], str]:
162+
"""Start ``vgi.serve --http`` wired to *vendor*; return the process and base URL."""
163+
env = {
164+
**os.environ,
165+
"VGI_BLOB_VENDOR_URL": vendor.url,
166+
"VGI_BLOB_VENDOR_TOKEN": "test-token",
167+
"VGI_RPC_EXTERNALIZE_THRESHOLD_BYTES": "1048576",
168+
"VGI_RPC_MAX_REQUEST_BYTES": str(max_request_bytes),
169+
"VGI_RPC_MAX_UPLOAD_BYTES": "1073741824",
170+
"PYTHONUNBUFFERED": "1",
171+
}
172+
proc = subprocess.Popen(
173+
[sys.executable, "-m", "vgi.serve", "vgi._test_fixtures.worker:ExampleWorker", "--http"]
174+
+ ["--host", "127.0.0.1", "--port", "0"],
175+
env=env,
176+
stdout=subprocess.PIPE,
177+
stderr=subprocess.DEVNULL,
178+
text=True,
179+
)
180+
assert proc.stdout is not None
181+
line = proc.stdout.readline()
182+
assert line.startswith("PORT:"), line
183+
return proc, f"http://127.0.0.1:{line.strip().split(':', 1)[1]}"
184+
185+
186+
def _double_via_client(vendor: FakeVendorServer, base_url: str, values: list[int]) -> list[object]:
187+
"""Run the fixture ``double`` scalar through ``vgi.client.Client`` over HTTP."""
188+
from vgi_rpc import ExternalLocationConfig
189+
from vgi_rpc.vendor import pinned_hosts_validator
190+
191+
from vgi.arguments import Arguments
192+
from vgi.client.client import Client
193+
194+
schema = pa.schema([("x", pa.int64())])
195+
config = ExternalLocationConfig(url_validator=pinned_hosts_validator([vendor.vendor.host], allow_http=True))
196+
with Client.from_http(base_url, external_location=config) as client:
197+
out = list(
198+
client.scalar_function(
199+
function_name="double",
200+
schema_path=["main"],
201+
arguments=Arguments(positional=(pa.scalar("x"),)),
202+
input=iter([pa.RecordBatch.from_pydict({"x": values}, schema=schema)]),
203+
)
204+
)
205+
return [v for b in out for v in b.column("result").to_pylist()]
206+
207+
208+
def test_client_oversize_input_uses_sized_vendor_upload(vendor: FakeVendorServer) -> None:
209+
"""An input over max_request_bytes goes through a sized, checksummed vendor grant (upload-URL v2)."""
210+
proc, base_url = _serve_with_vendor(vendor, max_request_bytes=65536)
211+
try:
212+
values = list(range(20_000)) # ~160 KB of int64, over the 64 KiB cap
213+
assert _double_via_client(vendor, base_url, values) == [v * 2 for v in values]
214+
stats = vendor.vendor.test_stats()
215+
assert stats["puts"] >= 1 and stats["upload_urls"] == 0
216+
assert stats["storage_puts"] >= 1 and stats["upload_refusals"] == 0
217+
puts = [headers for method, _path, headers in vendor.vendor.requests if method == "PUT"]
218+
assert puts and all("HTTP_X_AMZ_CHECKSUM_SHA256" in h for h in puts)
219+
assert all("HTTP_AUTHORIZATION" not in h for h in puts)
220+
finally:
221+
proc.terminate()
222+
proc.wait(timeout=10)
223+
224+
225+
def test_client_corrupted_upload_is_refused_by_storage(vendor: FakeVendorServer) -> None:
226+
"""A PUT corrupted in transit is refused by the store (BadDigest) and the call fails."""
227+
from vgi.client.errors import ClientError
228+
229+
proc, base_url = _serve_with_vendor(vendor, max_request_bytes=65536)
230+
try:
231+
vendor.vendor.set_upload_fault("corrupt", 1)
232+
with pytest.raises(ClientError, match="HTTP 400 BadDigest") as exc_info:
233+
_double_via_client(vendor, base_url, list(range(20_000)))
234+
assert "X-Amz-Signature" not in str(exc_info.value)
235+
stats = vendor.vendor.test_stats()
236+
assert stats["uploads_corrupted"] == 1 and stats["upload_bad_digest"] == 1
237+
finally:
238+
proc.terminate()
239+
proc.wait(timeout=10)

0 commit comments

Comments
 (0)