-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: build elastic agent dependencies only on amd64 architecture #26387
Conversation
Pinging @elastic/agent (Team:Agent) |
/package |
There is something more to fix
|
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
@blakerouse @michalpristas Can you please have a look? |
I follow the issue to PackageSpec.Files but I dunno where this info is loaded for the Docker package, and it is really hard to track. |
/test |
it feels like progress, now it fails on the Dockerfile
|
/test |
tested on an ARM machine
|
The e2e test failed are not related to the change, the same test failed on amd64 and arm64. |
I am checking to force to build arm64 binaries on arm64, on #26415 |
superseded by #26415 |
What does this PR do?
It does not build Elastic Agent beats dependencies if you are not running on amd64 architecture.
Why is it important?
The current code tries to build amd64 packages in ARM architecture, we only support cross-compile for all architectures on amd64 machines. This causes that the mage package fails when you make it on an ARM host. The change in this PR skip dependencies in other architectures other than amd64.
Checklist
- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added tests that prove my fix is effective or that my feature works- [ ] I have added an entry inCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Author's Checklist
How to test this PR locally
Launch a ubuntu-18.04/amd64 VM
Enter on x-pack/elastic-agent
Run mage package
It will build filebeat, metricbeat, heartbeat, and elastic-agent
Launch a ubuntu-18.04/arm64 VM
Enter on x-pack/elastic-agent
Run mage package
It will build Elastic-Agent only
Related issues
Use cases
Screenshots
Logs