Shard macOS Namespace caches by lane

This commit is contained in:
Conrad Kramer 2026-03-19 02:13:12 -07:00
parent bf4b270db5
commit 8678ef61ba
3 changed files with 45 additions and 27 deletions

View file

@ -41,9 +41,15 @@ namespace:
size_gb: 40
macos_cache_path: "/Users/runner/.cache/burrow"
macos_cache_volumes:
- tag: "burrow-forgejo-macos-cache-v2"
mount_point: "/Users/runner/.cache/burrow"
size_gb: 160
- tag: "burrow-forgejo-macos-shared-v1"
mount_point: "/Users/runner/.cache/burrow/shared"
size_gb: 80
- tag: "burrow-forgejo-macos-macos-v1"
mount_point: "/Users/runner/.cache/burrow/lane/macos"
size_gb: 80
- tag: "burrow-forgejo-macos-ios-simulator-v1"
mount_point: "/Users/runner/.cache/burrow/lane/ios-simulator"
size_gb: 80
runner:
name_prefix: "nscloud-"

View file

@ -193,9 +193,19 @@ func (c *Config) Validate() error {
if len(c.Namespace.MacosCacheVolumes) == 0 {
c.Namespace.MacosCacheVolumes = []CacheVolumeConfig{
{
Tag: "burrow-forgejo-macos-cache-v2",
MountPoint: c.Namespace.MacosCachePath,
SizeGb: 160,
Tag: "burrow-forgejo-macos-shared-v1",
MountPoint: c.Namespace.MacosCachePath + "/shared",
SizeGb: 80,
},
{
Tag: "burrow-forgejo-macos-macos-v1",
MountPoint: c.Namespace.MacosCachePath + "/lane/macos",
SizeGb: 80,
},
{
Tag: "burrow-forgejo-macos-ios-simulator-v1",
MountPoint: c.Namespace.MacosCachePath + "/lane/ios-simulator",
SizeGb: 80,
},
}
}