Skip to content

Use newer multiarch support for DRA packaging in ARM#6948

Merged
dliappis merged 1 commit intoelastic:mainfrom
dliappis:test-with-newer-ubuntu-2204-arm
Feb 20, 2025
Merged

Use newer multiarch support for DRA packaging in ARM#6948
dliappis merged 1 commit intoelastic:mainfrom
dliappis:test-with-newer-ubuntu-2204-arm

Conversation

@dliappis
Copy link
Copy Markdown
Contributor

@dliappis dliappis commented Feb 20, 2025

What does this PR do?

  • switch to ubuntu 22.04 ARM for the ARM part of the DRA packaging
  • enable multi arch builds avoid the exec format errors when attempting to build arm64 inside arm64 workers

Why is it important?

After the recent upgrade to go 1.23.6 we are noticing failures like

>> buildGoDaemon: Building for linux/arm64
Unable to find image 'docker.elastic.co/beats-dev/golang-crossbuild:1.23.6-arm' locally
1.23.6-arm: Pulling from beats-dev/golang-crossbuild
d8ccec8a513f: Pull complete
Digest: sha256:4e859ff74164fe8ebc675f93691083aecf7cd13b6fb4f78723a9e8ddad8b4692
Status: Downloaded newer image for docker.elastic.co/beats-dev/golang-crossbuild:1.23.6-arm
exec /crossbuild: exec format error

in the packaging ARM step

How to test this PR locally

Tested via https://buildkite.com/elastic/elastic-agent-package/builds/4332#0195241f-2d2a-495c-99d1-4c45dd39ff72

Related issues

Relates to elastic/golang-crossbuild#507

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Feb 20, 2025

This pull request does not have a backport label. Could you fix it @dliappis? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label that automatically backports to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@dliappis dliappis changed the title test with newer ubuntu 2204 arm Use newer multiarch support for DRA packaging in ARM Feb 20, 2025
@dliappis dliappis added backport-8.x Automated backport to the 8.x branch with mergify backport-8.18 Automated backport to the 8.18 branch backport-9.0 Automated backport to the 9.0 branch labels Feb 20, 2025
@dliappis dliappis marked this pull request as ready for review February 20, 2025 16:36
@dliappis dliappis requested a review from a team as a code owner February 20, 2025 16:36
@elastic-sonarqube
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@dliappis dliappis merged commit 93cfb49 into elastic:main Feb 20, 2025
mergify bot pushed a commit that referenced this pull request Feb 20, 2025
This commit fixes a recent problem where the packaging ARM step
started failing after upgrading go from 1.22 to 1.23.

It does so by:
- switching to Ubuntu 22.04 ARM for the ARM part of the DRA packaging
- enabling multi arch builds using a similar approach to elastic/golang-crossbuild#507

(cherry picked from commit 93cfb49)
mergify bot pushed a commit that referenced this pull request Feb 20, 2025
This commit fixes a recent problem where the packaging ARM step
started failing after upgrading go from 1.22 to 1.23.

It does so by:
- switching to Ubuntu 22.04 ARM for the ARM part of the DRA packaging
- enabling multi arch builds using a similar approach to elastic/golang-crossbuild#507

(cherry picked from commit 93cfb49)
mergify bot pushed a commit that referenced this pull request Feb 20, 2025
This commit fixes a recent problem where the packaging ARM step
started failing after upgrading go from 1.22 to 1.23.

It does so by:
- switching to Ubuntu 22.04 ARM for the ARM part of the DRA packaging
- enabling multi arch builds using a similar approach to elastic/golang-crossbuild#507

(cherry picked from commit 93cfb49)
dliappis added a commit that referenced this pull request Feb 20, 2025
This commit fixes a recent problem where the packaging ARM step
started failing after upgrading go from 1.22 to 1.23.

It does so by:
- switching to Ubuntu 22.04 ARM for the ARM part of the DRA packaging
- enabling multi arch builds using a similar approach to elastic/golang-crossbuild#507

(cherry picked from commit 93cfb49)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
dliappis added a commit that referenced this pull request Feb 20, 2025
This commit fixes a recent problem where the packaging ARM step
started failing after upgrading go from 1.22 to 1.23.

It does so by:
- switching to Ubuntu 22.04 ARM for the ARM part of the DRA packaging
- enabling multi arch builds using a similar approach to elastic/golang-crossbuild#507

(cherry picked from commit 93cfb49)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
dliappis added a commit that referenced this pull request Feb 20, 2025
This commit fixes a recent problem where the packaging ARM step
started failing after upgrading go from 1.22 to 1.23.

It does so by:
- switching to Ubuntu 22.04 ARM for the ARM part of the DRA packaging
- enabling multi arch builds using a similar approach to elastic/golang-crossbuild#507

(cherry picked from commit 93cfb49)

Co-authored-by: Dimitrios Liappis <dimitrios.liappis@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-8.x Automated backport to the 8.x branch with mergify backport-8.18 Automated backport to the 8.18 branch backport-9.0 Automated backport to the 9.0 branch skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants