mirror of
https://github.com/game-ci/unity-builder.git
synced 2026-02-01 22:29:07 +08:00
pr feedback
This commit is contained in:
3
.github/workflows/cloud-runner-integrity.yml
vendored
3
.github/workflows/cloud-runner-integrity.yml
vendored
@@ -168,6 +168,9 @@ jobs:
|
||||
# Clean up disk space on k3d node to prevent ephemeral-storage evictions and disk pressure
|
||||
echo "Cleaning up disk space on k3d node..."
|
||||
docker exec k3d-unity-builder-agent-0 sh -c "docker system prune -af --volumes 2>/dev/null || true" || true
|
||||
# Also clean up old logs and temporary files that might be taking up space
|
||||
docker exec k3d-unity-builder-agent-0 sh -c "find /var/log -type f -name '*.log' -mtime +1 -delete 2>/dev/null || true" || true
|
||||
docker exec k3d-unity-builder-agent-0 sh -c "find /tmp -type f -mtime +1 -delete 2>/dev/null || true" || true
|
||||
docker exec k3d-unity-builder-agent-0 sh -c "df -h" 2>/dev/null || true
|
||||
# Wait for disk pressure taints to clear before proceeding
|
||||
echo "Checking for disk pressure taints..."
|
||||
|
||||
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
@@ -4018,9 +4018,12 @@ class KubernetesJobSpecFactory {
|
||||
},
|
||||
};
|
||||
}
|
||||
// Set ephemeral-storage request to a reasonable value (2Gi) to prevent evictions
|
||||
// The node needs some free space, so requesting 10Gi when node only has ~2.6GB available causes evictions
|
||||
job.spec.template.spec.containers[0].resources.requests[`ephemeral-storage`] = '2Gi';
|
||||
// Set ephemeral-storage request to a reasonable value to prevent evictions
|
||||
// For tests, use smaller request (1Gi) since k3d nodes have limited disk space (~2.8GB available)
|
||||
// For production, use 2Gi to allow for larger builds
|
||||
// The node needs some free space headroom, so requesting too much causes evictions
|
||||
const ephemeralStorageRequest = process.env['cloudRunnerTests'] === 'true' ? '1Gi' : '2Gi';
|
||||
job.spec.template.spec.containers[0].resources.requests[`ephemeral-storage`] = ephemeralStorageRequest;
|
||||
return job;
|
||||
}
|
||||
}
|
||||
|
||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -158,9 +158,12 @@ class KubernetesJobSpecFactory {
|
||||
};
|
||||
}
|
||||
|
||||
// Set ephemeral-storage request to a reasonable value (2Gi) to prevent evictions
|
||||
// The node needs some free space, so requesting 10Gi when node only has ~2.6GB available causes evictions
|
||||
job.spec.template.spec.containers[0].resources.requests[`ephemeral-storage`] = '2Gi';
|
||||
// Set ephemeral-storage request to a reasonable value to prevent evictions
|
||||
// For tests, use smaller request (1Gi) since k3d nodes have limited disk space (~2.8GB available)
|
||||
// For production, use 2Gi to allow for larger builds
|
||||
// The node needs some free space headroom, so requesting too much causes evictions
|
||||
const ephemeralStorageRequest = process.env['cloudRunnerTests'] === 'true' ? '1Gi' : '2Gi';
|
||||
job.spec.template.spec.containers[0].resources.requests[`ephemeral-storage`] = ephemeralStorageRequest;
|
||||
|
||||
return job;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user