Skip to content

Commit da98ddc

Browse files
[Backport release-1.6] fix(e2e-sandbox): install mc from its GitHub release (#4535)
## What this PR does Backports the [mc download fix](e66f134) from [the dependency rollup](#4447) to `release-1.6`. Only the mc commit is cherry-picked, with its original author and `-x` reference. The [release-line build](https://github.com/cozystack/cozystack/actions/runs/36392555199/job/108831432467) fails because `dl.min.io` returns HTTP 410. This is the same problem as [the closed mc download issue](#4487), whose fix had only reached `main`. Validation: the local amd64 image builds and `mc --version` works inside it. Downloads, SHA256 and ELF architecture checks passed for amd64 and arm64, and the install command rejects corrupted downloads and unsupported architectures. The full `make unit-tests` target passed. ### Screenshots No UI changes. ### Downstream repositories - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: ### Release note ```release-note fix(e2e-sandbox): restore mc installation in release-1.6 builds using pinned GitHub release assets and SHA256 checks ```
2 parents 130c7d8 + eeb9431 commit da98ddc

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • packages/core/testing/images/e2e-sandbox

‎packages/core/testing/images/e2e-sandbox/Dockerfile‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ ARG HELM_VERSION=3.21.2
66
ARG COZYHR_VERSION=1.6.1
77
ARG CRUST_GATHER_VERSION=v0.15.2
88
ARG CHAINSAW_VERSION=0.2.15
9+
ARG MC_VERSION=RELEASE.2025-08-13T08-35-41Z
910

1011
ARG TARGETOS
1112
ARG TARGETARCH
@@ -21,7 +22,15 @@ RUN curl -sSL "https://github.com/mikefarah/yq/releases/download/v4.53.3/yq_${TA
2122
&& chmod +x /usr/local/bin/yq
2223
RUN curl -sSL "https://fluxcd.io/install.sh" | bash
2324
RUN curl -sSL "https://github.com/cozystack/cozyhr/raw/refs/heads/main/hack/install.sh" | sh -s -- -v "${COZYHR_VERSION}"
24-
RUN curl -fsSL "https://dl.min.io/client/mc/release/${TARGETOS}-${TARGETARCH}/mc" --create-dirs -o /usr/local/bin/mc \
25+
# dl.min.io stopped serving community mc builds (HTTP 410) when MinIO archived
26+
# the project; the final release is still published on GitHub.
27+
RUN case "${TARGETARCH}" in \
28+
amd64) sum=01f866e9c5f9b87c2b09116fa5d7c06695b106242d829a8bb32990c00312e891 ;; \
29+
arm64) sum=14c8c9616cfce4636add161304353244e8de383b2e2752c0e9dad01d4c27c12c ;; \
30+
*) echo "no pinned mc checksum for ${TARGETARCH}" >&2; exit 1 ;; \
31+
esac \
32+
&& curl -fsSL "https://github.com/minio/mc/releases/download/${MC_VERSION}/mc.${TARGETOS}-${TARGETARCH}.${MC_VERSION}" -o /usr/local/bin/mc \
33+
&& echo "${sum} /usr/local/bin/mc" | sha256sum -c - \
2534
&& chmod +x /usr/local/bin/mc
2635
# crust-gather: full-cluster diagnostic snapshots, captured per failed test by
2736
# cozytest.sh (BATS install/openapi tests) and by the global .chainsaw.yaml

0 commit comments

Comments
 (0)