Skip to content

Fix mcli pre-release data safety and failure reporting defects - #74

Merged
Vonng merged 21 commits into
mainfrom
codex/fix-release-candidate-issues
Nov 8, 2026
Merged

Vonng merged 21 commits into
mainfrom
codex/fix-release-candidate-issues

Conversation

@Vonng

@Vonng Vonng commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Description

Fix the confirmed pre-release defects in copying, moving, removal, multipart downloads, sharing, and administrative imports.

  • Prevent destructive dry runs and resolved self-moves; validate every removal target and resolve each source alias independently.
  • Download multipart content in order and close readers on completion and failure.
  • Return nonzero for preparation, permission, WORM, and import failures while preserving detailed reports and continuing independent work.
  • Keep streaming copy counters race-free and ordered, apply explicit destination tags, and validate attributes before transfers.
  • Generate POSIX-shell upload commands with literal form fields. Document command execution, partial-move behavior, cumulative JSON counters, and strict attribute syntax.

Legacy IAM fallback accepts only explicit NotImplemented or XMinioAdminVersionMismatch errors; unrelated HTTP, transport, and decoding failures do not replay the import.

Move-safety tradeoff

For the same literal bucket/key, mv also rejects endpoint names that share a scheme, effective port, and resolved IP. The check honors --resolve and caches both successful and failed lookups per session. This is a conservative rejection rule: shared-IP virtual hosts can be rejected even when their storage is independent. It does not establish backend identity across different addresses, ports, proxies, virtual-host addressing, or DNS changes. The changelog explains the boundary and requires independently established destination storage before any manual copy-and-delete workaround.

No dependencies or release workflows change. Bilingual command-reference updates are a separate deliverable in pgsty/silo.pgsty.com#52; the source remains under Unreleased until an actual release is selected.

Motivation and Context

Fixes #58, fixes #59, fixes #60, fixes #61, fixes #62, fixes #63, fixes #64, fixes #65, fixes #66, fixes #67, fixes #68, fixes #69, fixes #70, fixes #75.

Validation

  • CLI, HTTP, shell, and filesystem regressions cover the reported failures, including text/JSON status and continued independent operations.
  • Live SILO checks verify byte integrity, multipart downloads and tags, import failures, upload commands, and self-move rejection. Numeric-address/hostname self-moves preserve the source in both directions; different-key moves still succeed.
  • The full race suite (go test -race -tags kqueue ./... -count=1) passes after the final follow-up changes (cmd: 320.549s), along with focused race tests, lint, dependency floors, branding, credits, and release-state checks.
  • The final PR head 333060c4 passed all five workflows. Merged main commit bfb58768 passes all four push/main release gates, including Linux/macOS/Windows, Linux 386, cross-compilation, vulnerability checks, package/provenance checks, and container startup. check-release-commit.sh also confirms this exact commit is the main tip with green required workflows.
  • Local pre-release archive/package checks and make install were also exercised.

Checklist

  • Bug fixes and behavior changes documented.
  • Every commit has a matching DCO sign-off.
  • Regression tests added or updated.
  • Existing copyright and license notices preserved.

Contribution Licensing

Contributed under the repository's AGPL-3.0-or-later license, with DCO sign-off as required by CONTRIBUTING.md. No CLA or separate license grant.

Vonng added 17 commits November 9, 2026 00:17
Refs #58, #62. Preview purge prefixes without mutation and validate every CLI or stdin namespace target. Verified with CLI regression tests and isolated SILO endpoints.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #61. Verified distinct part contents, skip behavior, failure cleanup, and a 10 MiB SILO multipart SHA-256 round trip.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #59. CLI tests and two SILO endpoints verify copied bytes and the exact sources removed by mv.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #60. Preserve streaming copy scheduling. Reject expanded directory destinations and local path, symlink, and hardlink aliases of the source before any copy or source deletion.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #63. Use the SDK request path with a decodable failure DTO, retain the detailed report, and return nonzero for any failed entity. Fall back only on NotImplemented. CLI HTTP, race, and real SILO import checks pass.

Signed-off-by: Feng Ruohang <rh@vonng.com>
…peline

Refs #64, #66. Keep bounded streaming queues, propagate partial preparation failures, and transfer immutable cumulative totals. Use atomic progress totals and drain workers on cancellation. CLI multi-source, 200-file accounting, and in-flight cancellation regressions pass with the race detector.

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #65

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #67

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #68

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #69

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #70

Signed-off-by: Feng Ruohang <rh@vonng.com>
Signed-off-by: Feng Ruohang <rh@vonng.com>
Keep transfers concurrent while making JSON totals monotonic. Check resolved self-moves before dispatch. Cover varied file sizes with 1, 4, and 32 workers.

Refs #60, #66

Signed-off-by: Feng Ruohang <rh@vonng.com>
Refs #69

Signed-off-by: Feng Ruohang <rh@vonng.com>
Signed-off-by: Feng Ruohang <rh@vonng.com>
Execute generated curl commands through sh and cover a content type containing a semicolon.

Refs #69

Signed-off-by: Feng Ruohang <rh@vonng.com>
Use a truncated HTTP error response instead of a closed port so the CLI regression does not depend on platform-specific connection-refused retries. Assert that the failed V2 request never falls back to the legacy import endpoint.

Refs #63

Signed-off-by: Feng Ruohang <rh@vonng.com>
Vonng added 4 commits November 9, 2026 06:57
Recognize XMinioAdminVersionMismatch alongside NotImplemented. Cover JSON and XML errors while keeping unrelated HTTP 426 responses from replaying the import.

Refs #63

Signed-off-by: Feng Ruohang <rh@vonng.com>
For identical remote object paths, conservatively reject endpoints whose effective scheme, port and resolved addresses overlap. Honor custom resolver overrides and cache both results and errors per move session. Keep independent transfers streaming and preserve literal S3 keys.

Refs #60

Signed-off-by: Feng Ruohang <rh@vonng.com>
Report aggregate failure while continuing independent deletions. Cover mixed results across the SDK batch boundary in text and JSON modes.

Refs #75

Signed-off-by: Feng Ruohang <rh@vonng.com>
Explain partial copy and move continuation, cumulative JSON counters, POSIX share commands, strict attribute syntax, explicit IAM fallback and conservative endpoint checks. Remove stale candidate summaries from the READMEs.

Refs #60, #63, #64, #66, #68, #69, #75

Signed-off-by: Feng Ruohang <rh@vonng.com>
@Vonng
Vonng merged commit bfb5876 into main Nov 8, 2026
8 checks passed

Vonng commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Merged as bfb58768. All release-gating workflows passed for this exact push/main commit:

buildscripts/check-release-commit.sh bfb58768dda88ccbc5551d3e18db5474ddfa48dc passed: the commit is the tip of origin/main, with all required workflows green. The merged tree matches the tested PR head, and the DCO sign-off is preserved.

The fourteen linked issues are resolved. Bilingual documentation is prepared separately in pgsty/silo.pgsty.com#52, with its build and link checks passing. Release versioning, artifact publication, the server's client-version pin, and the site release announcement remain separate release steps; no tag or release was published by this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment