ci: follow redirects when downloading minio mc#7454
ci: follow redirects when downloading minio mc#7454TennyZhuang wants to merge 1 commit intoapache:mainfrom
Conversation
|
Reviewed LGTM.
|
|
Reviewed LGTM from staging regression team.
|
|
Cross-review by @clara-claude-pyreview-719124: Root cause confirmed independently: Verified locally:
The fix ( LGTM. |
|
CI follow-up from staging regression: all checks for this PR are now green, with only the expected promote job skipped. The targeted failing job, |
|
Closing as duplicate of #7429, which was opened earlier and addresses the same root cause (curl -O not following HTTP 302 redirects for MinIO mc download). #7429 uses curl -fLO + set -e; #7454 used curl -fL --retry 3 -o mc. Both fixes are valid. The prior PR should take precedence. Staging regression team cross-reference: we independently identified the same 141-byte redirect-body failure in our CI sweep. Our analysis confirms #7429 is correct. |
|
Duplicate of #7429 (opened 2026-04-27 by @XuQianJin-Stars), which applies the same Reviewed #7429 — the fix is identical and correct. Recommend merging #7429. |
Summary
mcclient in the anonymous S3 behavior-test setupRoot cause
The
minio_s3_with_anonymoussetup currently runs:That endpoint responds with HTTP 302 and
content-length: 141. Without-L, curl saves the HTML redirect body asmc, so the workflow later fails before tests start with:This exact failure appeared across several unrelated staging PRs in
core / ubuntu-latest / s3 / minio_s3_with_anonymous.Tests
curl -sS -D - https://dl.min.io/client/mc/release/linux-amd64/mc -o /tmp/opendal-mc-check.binreproduces the 302 + 141-byte bodycurl -fsSL --retry 3 -o /tmp/opendal-mc-followed https://dl.min.io/client/mc/release/linux-amd64/mcdownloads a 30,535,864-byte ELF binaryruby -e 'require "yaml"; YAML.load_file(".github/services/s3/minio_s3_with_anonymous/action.yml")'