feat: reconcile the bucket against attachment rows in the cleaner
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -150,18 +150,19 @@ def stand() -> Callable[..., str]:
|
||||
маркером `fault`: он только выбирает тесты (`-m fault`).
|
||||
"""
|
||||
|
||||
def call(*args: str) -> str:
|
||||
def call(*args: str, stdin: bytes = b"") -> str:
|
||||
# stdin — байты: тело объекта, который hook пишет мимо API
|
||||
# (`put-object`, design change track2-reconciler, решение 11)
|
||||
result = subprocess.run(
|
||||
[FAULT_HOOK, *args],
|
||||
input=stdin,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=FAULT_HOOK_TIMEOUT_S,
|
||||
check=False,
|
||||
)
|
||||
assert result.returncode == 0, (
|
||||
f"fault hook {' '.join(args)}: {result.stderr.strip()}"
|
||||
)
|
||||
return result.stdout.strip()
|
||||
stderr = result.stderr.decode(errors="replace").strip()
|
||||
assert result.returncode == 0, f"fault hook {' '.join(args)}: {stderr}"
|
||||
return result.stdout.decode().strip()
|
||||
|
||||
return call
|
||||
|
||||
|
||||
Reference in New Issue
Block a user