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
4 changes: 2 additions & 2 deletions config/example-runner-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pools:
resources:
vcpu: 2
memory_mib: 4096
disk_gib: 30
disk_gib: 40
max_running: 1
warm:
target_ready: 0
Expand All @@ -144,7 +144,7 @@ pools:
resources:
vcpu: 2
memory_mib: 2048
disk_gib: 20
disk_gib: 30
max_running: 12
warm:
target_ready: 0
Expand Down
4 changes: 2 additions & 2 deletions config/example-runner-2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ pools:
resources:
vcpu: 2
memory_mib: 4096
disk_gib: 30
disk_gib: 40
max_running: 1
warm:
target_ready: 0
Expand All @@ -144,7 +144,7 @@ pools:
resources:
vcpu: 2
memory_mib: 2048
disk_gib: 20
disk_gib: 30
max_running: 12
warm:
target_ready: 0
Expand Down
4 changes: 2 additions & 2 deletions config/example-runner-3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pools:
resources:
vcpu: 2
memory_mib: 4096
disk_gib: 30
disk_gib: 40
max_running: 1
warm:
target_ready: 0
Expand All @@ -145,7 +145,7 @@ pools:
resources:
vcpu: 2
memory_mib: 2048
disk_gib: 20
disk_gib: 30
max_running: 12
warm:
target_ready: 0
Expand Down
4 changes: 2 additions & 2 deletions config/example-runner-4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pools:
resources:
vcpu: 2
memory_mib: 4096
disk_gib: 30
disk_gib: 40
max_running: 1
warm:
target_ready: 0
Expand All @@ -156,7 +156,7 @@ pools:
resources:
vcpu: 2
memory_mib: 2048
disk_gib: 20
disk_gib: 30
max_running: 12
warm:
target_ready: 0
Expand Down
4 changes: 2 additions & 2 deletions config/example-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pools:
resources:
vcpu: 2
memory_mib: 4096
disk_gib: 30
disk_gib: 40
max_running: 1
warm:
target_ready: 0
Expand All @@ -171,7 +171,7 @@ pools:
resources:
vcpu: 2
memory_mib: 2048
disk_gib: 20
disk_gib: 30
max_running: 12
warm:
target_ready: 0
Expand Down
2 changes: 1 addition & 1 deletion config/golden-image-container-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ browser_smoke:
binary_path: chrome-linux64/chrome

guest:
builder_disk_gib: 24
builder_disk_gib: 30
variant: integration
browser: chromium
docker_action_base_ref: nddev/gha-action-base:busybox-1-1.36.1-6ubuntu3.1
Expand Down
2 changes: 1 addition & 1 deletion config/golden-image-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ toolchains:
archive_sha256: 606e7e2dfc8bcc24e1b3a70a1043288a271ad2cc71cf42248fadc25f5938a497

guest:
builder_disk_gib: 16
builder_disk_gib: 22
path_binaries:
- name: actionlint
version: v1.7.12
Expand Down
2 changes: 1 addition & 1 deletion config/golden-image-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ toolchains:
archive_sha256: 606e7e2dfc8bcc24e1b3a70a1043288a271ad2cc71cf42248fadc25f5938a497

guest:
builder_disk_gib: 24
builder_disk_gib: 30
variant: integration
docker_action_base_ref: nddev/gha-action-base:busybox-1-1.36.1-6ubuntu3.1
path_binaries:
Expand Down
2 changes: 1 addition & 1 deletion config/golden-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ toolchains:
archive_sha256: 606e7e2dfc8bcc24e1b3a70a1043288a271ad2cc71cf42248fadc25f5938a497

guest:
builder_disk_gib: 20
builder_disk_gib: 22
path_binaries:
- name: actionlint
version: v1.7.12
Expand Down
4 changes: 2 additions & 2 deletions internal/garmbootstrap/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ func PublishedScaleSets() []ScaleSetClass {
class(FastScaleSetName, FastImage, FastFlavor, 16, "trusted", "repository", "public-internet", "trusted", false, false, 2, 3072, 30, false),
class(UntrustedScaleSetName, UntrustedImage, UntrustedFlavor, 8, "untrusted", "none", "public-internet", "none", true, false, 4, 6144, 50, false),
class(ReleaseScaleSetName, ReleaseImage, ReleaseFlavor, 1, "release", "oidc-only", "release-allowlist", "none", false, false, 4, 6144, 40, false),
class(ContainerCanaryScaleSetName, ContainerCanaryImage, ContainerCanaryFlavor, 12, "trusted", "none", "public-internet", "none", false, false, 2, 2048, 20, false),
class(DockerContainerCanaryScaleSetName, DockerContainerCanaryImage, DockerContainerCanaryFlavor, 1, "trusted", "repository", "public-internet", "none", true, false, 2, 4096, 30, false),
class(ContainerCanaryScaleSetName, ContainerCanaryImage, ContainerCanaryFlavor, 12, "trusted", "none", "public-internet", "none", false, false, 2, 2048, 30, false),
class(DockerContainerCanaryScaleSetName, DockerContainerCanaryImage, DockerContainerCanaryFlavor, 1, "trusted", "repository", "public-internet", "none", true, false, 2, 4096, 40, false),
class(PriorityStandardScaleSetName, PriorityStandardImage, PriorityStandardFlavor, 16, "trusted", "repository", "public-internet", "none", false, false, 2, 4096, 30, true),
class(PriorityIntegrationScaleSetName, PriorityIntegrationImage, PriorityIntegrationFlavor, 8, "trusted", "repository", "public-internet", "none", true, true, 4, 6144, 50, true),
class(PriorityUntrustedScaleSetName, UntrustedImage, PriorityUntrustedFlavor, 8, "untrusted", "none", "public-internet", "none", true, false, 4, 6144, 50, true),
Expand Down
4 changes: 2 additions & 2 deletions internal/imagebuild/orchestrator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func TestRecipeFingerprintIsDeterministic(t *testing.T) {
// alias is part of the recipe, so a manifest whose contents changed under an
// unchanged alias would otherwise ask the builder to produce different bytes
// for a name that is already promoted.
if first != "sha256:ba41e9cfcebc856bfa3ee0b75f12d4e3f7a9b85598308491ea70f72b2fe2baff" {
if first != "sha256:f3067c98c8598549a1f81bd1c082aec5fb302fa31c52a986d17725fda57f9ac7" {
t.Fatalf("deployed standard recipe fingerprint drifted: %q", first)
}
smoke, err := SmokeFingerprint(plan)
Expand Down Expand Up @@ -536,7 +536,7 @@ func TestInstanceInitArgsPinContainerIsolation(t *testing.T) {
t.Fatalf("instance init args %q do not contain %q", args, want)
}
}
if !strings.Contains(strings.Join(args, " "), "--device root,size=16GiB") {
if !strings.Contains(strings.Join(args, " "), "--device root,size=22GiB") {
t.Fatalf("builder init args do not contain bounded root disk: %q", args)
}
smokeArgs := (&Orchestrator{}).instanceInitArgs(plan, strings.Repeat("b", 64), "smoke", 0)
Expand Down
8 changes: 4 additions & 4 deletions internal/imagemanifest/manifest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ func TestRepositoryManifestIsValidAndPinned(t *testing.T) {
len(manifest.GoCacheSeed.Packages) != 1 || manifest.GoCacheSeed.Packages[0] != "./cmd/gha-fleet" {
t.Fatalf("Go cache seed is not exactly pinned: %#v", manifest.GoCacheSeed)
}
if manifest.Guest.BuilderDiskGiB != 20 {
t.Fatalf("builder disk = %d GiB, want 20", manifest.Guest.BuilderDiskGiB)
if manifest.Guest.BuilderDiskGiB != 22 {
t.Fatalf("builder disk = %d GiB, want 22", manifest.Guest.BuilderDiskGiB)
}
assertBakedToolchains(t, manifest)
fingerprint, err := manifest.Fingerprint()
Expand All @@ -42,7 +42,7 @@ func TestRepositoryManifestIsValidAndPinned(t *testing.T) {
if !strings.HasPrefix(fingerprint, "sha256:") || len(fingerprint) != len("sha256:")+64 {
t.Fatalf("unexpected fingerprint %q", fingerprint)
}
if fingerprint != "sha256:47a1569f94fa824b69de51d5ee917a5e8b72cc4a4c9b727c214019f891615a56" {
if fingerprint != "sha256:fe9f3da1c5e7b997008fe2b8ea04e1d4e1cfdb60f30db69cabdb4d69e06fb4b8" {
t.Fatalf("standard manifest fingerprint drifted: %q", fingerprint)
}
}
Expand Down Expand Up @@ -103,7 +103,7 @@ func TestIntegrationManifestPinsDockerToolchain(t *testing.T) {
if err != nil {
t.Fatalf("load integration manifest: %v", err)
}
if !manifest.Guest.DockerCapable() || manifest.Guest.BuilderDiskGiB != 24 {
if !manifest.Guest.DockerCapable() || manifest.Guest.BuilderDiskGiB != 30 {
t.Fatalf("unexpected integration guest: %#v", manifest.Guest)
}
for _, pkg := range []string{"busybox-static", "docker-buildx", "docker-compose-v2", "docker.io", "pigz"} {
Expand Down
7 changes: 5 additions & 2 deletions internal/imagemanifest/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,11 @@ func (m Manifest) Validate() error {
validateCompilerCache(add, m.CompilerCache)
validateGoCacheSeed(add, m.GoCacheSeed)
validateToolchains(add, m.Toolchains)
if m.Guest.BuilderDiskGiB < 12 || m.Guest.BuilderDiskGiB > 24 {
add("guest.builder_disk_gib", "must be between 12 and 24 GiB")
// 24 GiB fit the image until the CodeQL bundle joined the tool cache:
// 0.8 GiB of archive plus 2.6 GiB unpacked, doubled transiently while the
// rootfs is packed for publish.
if m.Guest.BuilderDiskGiB < 12 || m.Guest.BuilderDiskGiB > 32 {
add("guest.builder_disk_gib", "must be between 12 and 32 GiB")
}
variant := m.Guest.EffectiveVariant()
if variant != "standard" && variant != "integration" {
Expand Down
4 changes: 2 additions & 2 deletions internal/imageplan/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestBuildProducesDeterministicBoundedPlan(t *testing.T) {
if first.InstanceConfig["security.privileged"] != "false" || first.InstanceConfig["security.idmap.isolated"] != "true" || first.InstanceConfig["security.nesting"] != "false" {
t.Fatalf("container isolation is not explicit: %#v", first.InstanceConfig)
}
if first.BuilderDiskGiB != 16 || first.SmokeRootDiskGiB != 30 {
if first.BuilderDiskGiB != 22 || first.SmokeRootDiskGiB != 30 {
t.Fatalf("unexpected image/runtime disk policy: %#v", first)
}
names := make([]string, 0, len(first.Toolchains))
Expand Down Expand Up @@ -131,7 +131,7 @@ func TestBuildProducesPinnedDockerIntegrationPlan(t *testing.T) {
}
if plan.Image.EffectiveType() != "container" || plan.Variant != "integration" ||
plan.InstanceConfig["security.nesting"] != "true" || plan.InstanceConfig["security.idmap.isolated"] != "true" ||
plan.SmokeRootDiskGiB != 50 || plan.BuilderDiskGiB != 24 {
plan.SmokeRootDiskGiB != 50 || plan.BuilderDiskGiB != 30 {
t.Fatalf("unexpected integration plan: %#v", plan)
}
if plan.DockerActionBaseRef != "nddev/gha-action-base:busybox-1-1.36.1-6ubuntu3.1" {
Expand Down
2 changes: 1 addition & 1 deletion internal/incusplan/plan_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func TestContainerCanaryProfileIsUnprivilegedAndNonNested(t *testing.T) {
profile.Config["security.privileged"] != "false" || profile.Config["security.nesting"] != "false" ||
profile.Config["security.syscalls.intercept.mknod"] != "false" ||
profile.Config["security.syscalls.intercept.setxattr"] != "false" ||
profile.Config["security.secureboot"] != "" || profile.Devices["root"]["size"] != "20GiB" {
profile.Config["security.secureboot"] != "" || profile.Devices["root"]["size"] != "30GiB" {
t.Fatalf("container profile is not fail-closed: %#v", profile)
}
}
Expand Down