Draft: chore: Add ARM64 support for Linux in test environment [[ON HOLD]]
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Adds linux-arm64 (aarch64) architecture support to the OpenBao rake task to fix test execution in GDK-in-a-box containers running on ARM64 processors.
This MR maps the 'aarch64' CPU architecture to 'arm64' and includes the SHA256 checksum for the linux-arm64 OpenBao binary. This fixes the OpenBao installation failure that was preventing RSpec tests from running in ARM64-based GDK environments.
The issue was discovered when running tests in GDK-in-a-box containers on ARM64 processors, where the OpenBao binary download would fail with a 404 error because the ARM64 architecture wasn't recognized.
References
- Original feedback comment regarding the openbao problem: gitlab-development-kit#2035 (comment 2775064404)
- Depends on: gitlab-org/govern/secrets-management/openbao-internal!23 (merged) (must be merged first for the ARM64 binary to be available)
- Depends on !206792 as a real fix for running openbao in test environment
Screenshots or screen recordings
Not applicable for this backend change.
How to set up and validate locally
- Ensure you're on an ARM64 Linux system (or use an ARM64 container)
- Run the OpenBao rake task to verify it downloads the correct binary:
bundle exec rake gitlab:secrets_management:openbao:download_or_clone[/tmp/test_openbao]
- Verify the binary was downloaded and has the correct checksum
- Run any RSpec test that requires OpenBao setup:
bundle exec rspec spec/lib/gitlab/auth/oidc/step_up_auth_before_request_phase_spec.rb
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
MR Checklist (@gerardo-navarro)
-
Changelog entry added, if necessary -
Documentation created/updated via this MR -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Tested in all supported browsers -
Conforms to the code review guidelines -
Conforms to the style guides -
Conforms to the javascript style guides -
Conforms to the database guides -
Conforms to the merge request performance guidelines -
Fixes test environment setup for ARM64 architectures -
Follows existing architecture mapping pattern in the rake task