Skip to content

fix: add migration script for flat-path firecracker binaries to amd64/#14

Merged
ValentaTomas merged 5 commits intomainfrom
fix/migrate-flat-firecrackers-to-amd64
Apr 10, 2026
Merged

fix: add migration script for flat-path firecracker binaries to amd64/#14
ValentaTomas merged 5 commits intomainfrom
fix/migrate-flat-firecrackers-to-amd64

Conversation

@ValentaTomas
Copy link
Copy Markdown
Member

@ValentaTomas ValentaTomas commented Apr 10, 2026

Before ARM64 support was added, firecracker binaries were uploaded to GCS at the flat path {version}/firecracker. The orchestrator's arch-aware path resolution expects {version}/amd64/firecracker, so old builds are not found via the arch-based lookup.

Add migrate-gcs-arch.sh to dry-run/copy existing flat-path GCS objects into the amd64/ subdirectory. Include a migration script for existing buckets.

Similar to e2b-dev/fc-kernels#18.

Before ARM64 support was added, firecracker binaries were uploaded to GCS
at the flat path firecrackers/{version}/firecracker. The orchestrator's
arch-aware path resolution expects firecrackers/{version}/amd64/firecracker,
so old builds are not found via the arch-based lookup.

Add migrate-gcs-arch.sh to dry-run/copy (and optionally delete) existing
flat-path GCS objects into the amd64/ subdirectory.
@cursor
Copy link
Copy Markdown

cursor bot commented Apr 10, 2026

PR Summary

Medium Risk
Low code complexity, but it performs bulk GCS copy operations when run with --apply, so misuse or incorrect bucket selection could duplicate/overwrite artifacts (though it skips existing destinations by default).

Overview
Adds scripts/migrate-gcs-arch.sh to migrate legacy GCS objects from {version}/firecracker to the arch-aware {version}/amd64/firecracker layout.

The script supports a dry-run by default and an explicit --apply mode that copies only missing destinations (skipping paths that already exist) and prints a summary of copied vs skipped objects.

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

@ValentaTomas ValentaTomas merged commit 7e229db into main Apr 10, 2026
18 checks passed
@ValentaTomas ValentaTomas deleted the fix/migrate-flat-firecrackers-to-amd64 branch April 10, 2026 04:43
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