Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/post.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions src/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,14 @@ const lane = process.env.BK_CACHE_LANE || '';

// Cap size, then Tier 1 — node-local NVMe. If tier 1 fails there is nothing to push.
pruneCache();

// Lean EC2 hosts keep the buildkit root on the host and the BuildPulse agent commits it
// after the job, so neither tier below applies. Without this the NVMe copy finds no
// /home/runner/buildkit-root and every build ends on a warning plus an error metric.
if (process.env.BP_SUBSTRATE === 'ec2') {
core.info('lean host: the BuildPulse agent commits the layer cache after the job');
process.exit(0);
}
try {
if (PERSISTENT) {
core.info('persistent buildkit root — no NVMe copy tier (root IS the node cache)');
Expand Down
Loading