Skip to content

fix OCP tool install on arm64 runners#126

Open
ktdreyer wants to merge 1 commit intoredhat-actions:mainfrom
ktdreyer:fix-arm64-ocp-filter
Open

fix OCP tool install on arm64 runners#126
ktdreyer wants to merge 1 commit intoredhat-actions:mainfrom
ktdreyer:fix-arm64-ocp-filter

Conversation

@ktdreyer
Copy link
Copy Markdown

Summary

  • Add filterByArch to the OCP filter pipeline so oc and openshift-install select the correct architecture binary on non-amd64 runners
  • Treat filenames with no architecture indicator (e.g. openshift-client-windows-4.21.12.zip) as implicit amd64, matching the mirror's naming convention
  • Add an arm64 job to the mirror example workflow to prevent regressions

Context

The OCP mirror directory now publishes binaries for arm64, ppc64le, and s390x alongside amd64. The filter pipeline for OCP tools skipped filterByArch because the directory was historically amd64-only. Without it, all architectures pass through and the first filename alphabetically wins — always the generic amd64 tarball.

Tested across Linux amd64, Linux arm64, and Windows amd64 in ktdreyer/minc#1.

Fixes #124

Test plan

  • Install from Mirror Example workflow passes on the PR, including the new Latest OCP tools on linux arm64 job
  • Existing amd64 and Windows jobs continue to pass

The OCP mirror directory now publishes binaries for arm64,
ppc64le, and s390x alongside amd64. The filter pipeline for
OCP tools previously skipped "filterByArch" because the
directory was amd64-only. Without it, all architectures pass
through and the first filename alphabetically wins - always
the generic amd64 tarball.

Adding "filterByArch" to the OCP pipeline allows "oc" and
"openshift-install" to install correctly on non-amd64
runners. Filenames with no architecture indicator (like
"openshift-client-windows.zip") are treated as implicit
amd64, matching the mirror's naming convention.

An arm64 job in the mirror example workflow ensures this path
is tested on every PR.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

arm64 runner gets amd64 binary — wrong file selected from mirror

1 participant