Skip to content

[K9VULN-11525] Use cross-compilation / remove QEMU#814

Merged
jasonforal merged 3 commits intomainfrom
jf/K9VULN-11525
Feb 13, 2026
Merged

[K9VULN-11525] Use cross-compilation / remove QEMU#814
jasonforal merged 3 commits intomainfrom
jf/K9VULN-11525

Conversation

@jasonforal
Copy link
Collaborator

What problem are you trying to solve?

Our most recent release failed to release to GHCR due to QEMU segfaulting:
image
(Job)

What is your solution?

Rather than play perpetual whack-a-mole and try to keep QEMU stable, let's just get rid of it. We're using it to emulate and build for arm64, but Rust already has first-class support for cross-compilation.

Changes:

  • Update Dockerfile to be BuildKit-aware and handle platform/target architectures. Always pass target architecture into cargo build.
  • Update the docker-build.yml GitHub Actions workflow to test cross compilation. Now, if this job passes, the GHCR publish will too.

A side benefit is that now publishing to GHCR takes ~15 minutes instead of 2 hours:

Before (~2 hours)

image

After (~15 minutes)

image

Testing

CI Job

You can see the successful run of the new docker-build.yml for this PR:
image
image
(Job)

GHCR Publish

You can see the corresponding release on GHCR with both amd64 and arm64:
image

(Container)

Alternatives considered

  • Debug QEMU

@jasonforal jasonforal requested a review from a team as a code owner February 13, 2026 16:47
@datadog-official
Copy link

🎯 Code Coverage (details)
Patch Coverage: -1.00%
Overall Coverage: 84.87% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 1b9ff99 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@jasonforal jasonforal merged commit 9b154e3 into main Feb 13, 2026
85 checks passed
@jasonforal jasonforal deleted the jf/K9VULN-11525 branch February 13, 2026 17:28
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.

2 participants