Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive correct artifact name for ARM architecture #1418

Merged

Conversation

danielmitterdorfer
Copy link
Member

To download an Elasticsearch artifact, Rally needs to resolve the CPU
architecture of the current system to download the correct distribution
tarball. This does not work currently on Macs with ARM M1 chips. These
are reported as arm64 but the Elasticsearch artifact uses aarch64 to
refer to this CPU architecture. Consequently, downloading an artifact on
ARM-based Macs fails unless the user specifies --target-arch=aarch64.

With this commit we detect this case and ensure that the correct
artifact can be downloaded. We intentionally change the architecture
specifier only in the component that is responsible for deriving the
download URL for artifacts but keep referring to this CPU architecture
as arm64 in other parts of the code, just as it is reported by the OS.

To download an Elasticsearch artifact, Rally needs to resolve the CPU
architecture of the current system to download the correct distribution
tarball. This does not work currently on Macs with ARM M1 chips. These
are reported as `arm64` but the Elasticsearch artifact uses `aarch64` to
refer to this CPU architecture. Consequently, downloading an artifact on
ARM-based Macs fails unless the user specifies `--target-arch=aarch64`.

With this commit we detect this case and ensure that the correct
artifact can be downloaded. We intentionally change the architecture
specifier only in the component that is responsible for deriving the
download URL for artifacts but keep referring to this CPU architecture
as `arm64` in other parts of the code, just as it is reported by the OS.
@danielmitterdorfer danielmitterdorfer added bug Something's wrong :Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch labels Jan 17, 2022
@danielmitterdorfer danielmitterdorfer added this to the 2.3.1 milestone Jan 17, 2022
@danielmitterdorfer danielmitterdorfer self-assigned this Jan 17, 2022
Copy link
Member

@pquentin pquentin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Please merge with or without my suggestion.

@danielmitterdorfer danielmitterdorfer merged commit 9eb110b into elastic:master Jan 17, 2022
@danielmitterdorfer danielmitterdorfer deleted the arm-artifact-name branch January 17, 2022 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Benchmark Candidate Management Anything affecting how Rally sets up Elasticsearch bug Something's wrong
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants