Skip to content

fix: normalize kernel output dirs from x86_64 to amd64#18

Merged
ValentaTomas merged 2 commits intomainfrom
fix/normalize-kernel-arch-to-amd64
Apr 10, 2026
Merged

fix: normalize kernel output dirs from x86_64 to amd64#18
ValentaTomas merged 2 commits intomainfrom
fix/normalize-kernel-arch-to-amd64

Conversation

@ValentaTomas
Copy link
Copy Markdown
Member

The infra orchestrator's TargetArch() uses Go's runtime.GOARCH convention (amd64) but kernels were stored under x86_64/, causing gcsfuse stat misses and a ~15-40ms penalty per sandbox create on GCE nodes.

Map x86_64 -> amd64 in build output so GCS paths match what the orchestrator looks up. Include a migration script for existing buckets.

The infra orchestrator's TargetArch() uses Go's runtime.GOARCH convention
(amd64) but kernels were stored under x86_64/, causing gcsfuse stat misses
and a ~15-40ms penalty per sandbox create on GCE nodes.

Map x86_64 -> amd64 in build output so GCS paths match what the
orchestrator looks up. Include a migration script for existing buckets.
@cursor
Copy link
Copy Markdown

cursor bot commented Apr 10, 2026

PR Summary

Low Risk
Low risk: changes are limited to build artifact path naming and documentation, with a backwards-compatible x86_64 legacy copy. Main risk is downstream automation expecting the old x86_64/ directory layout.

Overview
Normalizes kernel build output directories to Go/OCI arch names (amd64, arm64) by mapping TARGET_ARCH=x86_64 to amd64 in build.sh, while still writing a legacy builds/vmlinux-<version>/vmlinux.bin copy for x86_64 compatibility.

Adds migrate-gcs-arch.sh to dry-run/copy (and optionally delete) existing GCS objects from x86_64/ to amd64/, and updates README.md to document the new output layout and arch naming conventions.

Reviewed by Cursor Bugbot for commit 63b1dd0. Bugbot is set up for automated code reviews on this repo. Configure here.

@ValentaTomas ValentaTomas force-pushed the fix/normalize-kernel-arch-to-amd64 branch from e5d0541 to 63b1dd0 Compare April 10, 2026 04:06
@ValentaTomas ValentaTomas merged commit f371098 into main Apr 10, 2026
6 checks passed
@ValentaTomas ValentaTomas deleted the fix/normalize-kernel-arch-to-amd64 branch April 10, 2026 04:29
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