Skip to content

Read OSS version IDs from list headers - #6

Merged
Open-Squilla merged 1 commit into
mainfrom
fix/mirror-oss-version-id-shape
Aug 21, 2026
Merged

Read OSS version IDs from list headers#6
Open-Squilla merged 1 commit into
mainfrom
fix/mirror-oss-version-id-shape

Conversation

@Open-Squilla

Copy link
Copy Markdown
Contributor

Scope

  • Accept the single-element list shape returned by ossutil 2.3.0 for X-Oss-Version-Id.
  • Preserve the fail-closed requirement for exactly one non-empty Version ID.

Context

The final mirror retry passed release auditing, credentials, bucket versioning, and uploaded/read back the first Runtime Pack object. It then failed because head-object --output-format json represents X-Oss-Version-Id as a one-item string list; the workflow only accepted a direct string.

Tests

  • uv run python -m pytest tests -q — 53 passed
  • python3 -m ruff check scripts tests — passed
  • Direct macOS-arm64 ossutil probe confirmed the list-shaped header response.

Safety

  • Existing object bytes are still compared before reuse.
  • No secrets are included in this PR.

@Open-Squilla
Open-Squilla merged commit c9e7685 into main Aug 21, 2026
1 check passed
@Open-Squilla
Open-Squilla deleted the fix/mirror-oss-version-id-shape branch August 21, 2026 04:51
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