[WIP] [EXPERIMENTAL] builder: add opt-in S3 BuildKit layer cache for EIF builds #353
No reviewers
Labels
No labels
Compat/Breaking
Component/Enclave-Builder
Component/Infrastructure
Deploy/BYOC
Deploy/Full-managed
Deploy/Self-hosted
Interface/API
Interface/CLI
Interface/Git
Interface/Web
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
public/platform!353
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/eif-s3-layer-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
LLM Experiment to see if this is an actual way to speed things up a bit
Should test in dev.
Adds an opt-in S3 BuildKit layer cache on remote builders, cutting the "Docker image built → EIF built" phase (~2m of a plain-app deploy) by reusing cached stages across builds — including the steve/locksmith/bootproof cargo builds when their pinned commits are unchanged.
Requires: deploy updated api (new user-data) + apply the infra-bootstrap IAM change (buildcache/* S3 perms). Without the IAM grant, cache writes fail silently (ignore-error=true) and builds still succeed uncached.
Relates to #250 (Prebuild EnclaveOS components) — lighter-weight approach, no ECR image dependency.
Verified by compile + code review only; needs a real deploy trace to confirm the phase-time drop.
Should we keep this as a temporary bandaid?
Superseded by #468; revisit residual build caching only if measurements on the current pipeline justify it.
Pull request closed