Skip to content

fix(supernova): resolve Docker multi-platform build failures with QEMU v4.2.0 - #1910

Draft
ArtieReus wants to merge 6 commits into
mainfrom
artie-fix-supernova-image-qemu-swc
Draft

fix(supernova): resolve Docker multi-platform build failures with QEMU v4.2.0#1910
ArtieReus wants to merge 6 commits into
mainfrom
artie-fix-supernova-image-qemu-swc

Conversation

@ArtieReus

Copy link
Copy Markdown
Collaborator

Summary

Fix Docker multi-platform build failures for Supernova caused by QEMU v4.2.0 incompatibility with native module compilation during pnpm install.

Changes Made

  • Added --platform=$BUILDPLATFORM to Dockerfile build stage to use native host platform instead of QEMU emulation
  • Added comments explaining why this change fixes the QEMU issue

Related Issues

  • Root cause: QEMU v4.2.0 upgrade in commit e1cd93f (Aug 21) introduced incompatibility with @swc/core native builds
  • Last successful build: commit 7d31786 (Aug 12) with QEMU v4.1.0
  • Related to pnpm v11 upgrade (commit f2f7fde) which enabled native builds for @swc/core

Screenshots (if applicable)

N/A - Infrastructure change only

Testing Instructions

  1. Trigger the workflow manually via GitHub Actions UI
  2. Verify multi-platform build completes successfully for both linux/amd64 and linux/arm64
  3. Pull and run the resulting images on both architectures to confirm they work correctly

Or test locally:

cd /Users/D063222/Documents/sap/cloudoperators/juno
docker buildx build --platform linux/amd64,linux/arm64 -f apps/supernova/docker/Dockerfile -t supernova-test .

Checklist

- [x] I have performed a self-review of my code.
- [x] I have commented my code, particularly in hard-to-understand areas.
- [ ] I have added tests that prove my fix is effective or that my feature works.
- [ ] New and existing unit tests pass locally with my changes.
- [ ] I have made corresponding changes to the documentation (if applicable).
- [x] My changes generate no new warnings or errors.
- [ ] I have created a changeset for my changes.

…sues

Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Copilot AI lite review requested due to automatic review settings August 24, 2026 12:25
@ArtieReus
ArtieReus requested a review from a team as a code owner August 24, 2026 12:25
@changeset-bot

changeset-bot Bot commented Aug 24, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 661f3d5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes Supernova’s multi-platform Docker builds by ensuring the dependency-install/build step runs on the builder’s native architecture (avoiding QEMU emulation issues during pnpm install / native module compilation).

Changes:

  • Adds --platform=$BUILDPLATFORM to the build stage FROM to build on the host platform.
  • Adds explanatory comments describing why the build stage is pinned to the build platform.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread apps/supernova/docker/Dockerfile Outdated
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
@ArtieReus
ArtieReus marked this pull request as draft August 24, 2026 12:43
@ArtieReus ArtieReus self-assigned this Aug 24, 2026
@ArtieReus ArtieReus added the greenhouse-pr-build Set this label to create a preview image which will automatically set the `greenhouse-pr-preview` label Aug 24, 2026
@github-actions github-actions Bot added the greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. label Aug 24, 2026
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
@github-actions github-actions Bot added greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. and removed greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. labels Aug 24, 2026
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
@github-actions github-actions Bot added greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. and removed greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. labels Aug 24, 2026
Signed-off-by: Arturo Reuschenbach Puncernau <reuschenbach@gmail.com>
@github-actions github-actions Bot added greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. and removed greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY. labels Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

greenhouse-pr-build Set this label to create a preview image which will automatically set the `greenhouse-pr-preview` greenhouse-pr-preview THIS LABEL IS SET AUTOMATICALLY.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants