Skip to content

Handle ossutil JSON timing output - #4

Merged
Open-Squilla merged 1 commit into
mainfrom
fix/mirror-ossutil-json-output
Aug 21, 2026
Merged

Handle ossutil JSON timing output#4
Open-Squilla merged 1 commit into
mainfrom
fix/mirror-ossutil-json-output

Conversation

@Open-Squilla

Copy link
Copy Markdown
Contributor

Scope

  • Parse the JSON document emitted by ossutil API commands while accepting its trailing elapsed-time line.
  • Reject unexpected trailing output so the OSS mirror remains fail-closed.
  • Use the parser for bucket versioning and object version-ID readback.

Evidence

  • Reproduced with pinned ossutil 2.3.0 against the configured Beijing bucket: the command returned a valid JSON object followed by 0.xxxxxx(s) elapsed.
  • The failed mirror run 32446835820 had already passed credentials, release, and source audits; it failed before upload at the JSON parser.

Tests

  • uv run python -m pytest tests -q — 53 passed
  • python3 -m ruff check scripts tests — passed
  • Direct macOS-arm64 ossutil probe validated both versioning and head-object responses through the new parser.

Safety

  • No release assets or OSS objects were modified by the failed run.
  • No secrets are included in this PR.

@Open-Squilla
Open-Squilla merged commit 776faf4 into main Aug 21, 2026
1 check passed
@Open-Squilla
Open-Squilla deleted the fix/mirror-ossutil-json-output branch August 21, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant