From d3b975aa70a2ffc786f66af05f53662456f654a8 Mon Sep 17 00:00:00 2001 From: rldyourmnd Date: Sat, 5 Sep 2026 01:18:23 +0500 Subject: [PATCH] feat(images): bake Go cache seed from github-actions b17a1ec The previous seed predated the current controller tree, so a fleet gha-fleet compile was only a partial GOCACHE hit. Immutable aliases advance with the payload. --- CHANGELOG.md | 6 ++++++ config/golden-image-container-integration.yaml | 10 +++++----- config/golden-image-container.yaml | 10 +++++----- config/golden-image-integration.yaml | 10 +++++----- config/golden-image.yaml | 10 +++++----- internal/imagebuild/orchestrator_test.go | 2 +- internal/imagemanifest/manifest_test.go | 6 +++--- 7 files changed, 30 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6711b50..bf2da8e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +- Advance the baked Go cache seed to github-actions `b17a1ec`. The previous + seed `b4a49eec` predates the current controller and provider tree, so a + fleet `gha-fleet` compile was only a partial GOCACHE hit. Immutable aliases + move with the payload: container standard b27, container integration b21, + VM standard b23, VM integration b22. + - Stop paging a kernel reboot as a host-global OOM, and stop paging a 30-second inventory listing blip as `lifecycle_inventory_gap`. `host_oom_detected` used max-min span of the boot-scoped counter, so diff --git a/config/golden-image-container-integration.yaml b/config/golden-image-container-integration.yaml index 12ec3eb4..9d24fb72 100644 --- a/config/golden-image-container-integration.yaml +++ b/config/golden-image-container-integration.yaml @@ -2,7 +2,7 @@ schema_version: 1 image: type: container - alias: nddev-u24-amd64-ctr-docker-runner-2.336.0-r20260801-b20 + alias: nddev-u24-amd64-ctr-docker-runner-2.336.0-r20260801-b21 current_alias: nddev-ubuntu-24.04-amd64-container-docker-current previous_alias: nddev-ubuntu-24.04-amd64-container-docker-previous source_alias: nddev-source-ubuntu-24.04-amd64-container-r20260801 @@ -40,10 +40,10 @@ compiler_cache: go_cache_seed: repository: NDDev-OpenNetwork/github-actions - commit: b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive: github-actions-b4a49eec.tar.gz - download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive_sha256: e2e2325f28743b645cd5fce8f520ffa5cbeed2662eada73e22d34f6a5c7472a3 + commit: b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive: github-actions-b17a1ecf.tar.gz + download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive_sha256: 22c2b34cdb5ddaba32bb67ebba4ae8bf1909e5d6082b18859350581b1efabdfa packages: - ./cmd/gha-fleet diff --git a/config/golden-image-container.yaml b/config/golden-image-container.yaml index 2eacdb20..a677edde 100644 --- a/config/golden-image-container.yaml +++ b/config/golden-image-container.yaml @@ -2,7 +2,7 @@ schema_version: 1 image: type: container - alias: nddev-ubuntu-24.04-amd64-container-runner-2.336.0-r20260801-b26 + alias: nddev-ubuntu-24.04-amd64-container-runner-2.336.0-r20260801-b27 current_alias: nddev-ubuntu-24.04-amd64-container-current previous_alias: nddev-ubuntu-24.04-amd64-container-previous source_alias: nddev-source-ubuntu-24.04-amd64-container-r20260801 @@ -40,10 +40,10 @@ compiler_cache: go_cache_seed: repository: NDDev-OpenNetwork/github-actions - commit: b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive: github-actions-b4a49eec.tar.gz - download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive_sha256: e2e2325f28743b645cd5fce8f520ffa5cbeed2662eada73e22d34f6a5c7472a3 + commit: b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive: github-actions-b17a1ecf.tar.gz + download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive_sha256: 22c2b34cdb5ddaba32bb67ebba4ae8bf1909e5d6082b18859350581b1efabdfa packages: - ./cmd/gha-fleet diff --git a/config/golden-image-integration.yaml b/config/golden-image-integration.yaml index 19dd0191..28e25bc8 100644 --- a/config/golden-image-integration.yaml +++ b/config/golden-image-integration.yaml @@ -1,7 +1,7 @@ schema_version: 1 image: - alias: nddev-ubuntu-24.04-amd64-docker-runner-2.336.0-r20260801-b21 + alias: nddev-ubuntu-24.04-amd64-docker-runner-2.336.0-r20260801-b22 current_alias: nddev-ubuntu-24.04-amd64-docker-current previous_alias: nddev-ubuntu-24.04-amd64-docker-previous source_alias: nddev-source-ubuntu-24.04-amd64-r20260801 @@ -39,10 +39,10 @@ compiler_cache: go_cache_seed: repository: NDDev-OpenNetwork/github-actions - commit: b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive: github-actions-b4a49eec.tar.gz - download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive_sha256: e2e2325f28743b645cd5fce8f520ffa5cbeed2662eada73e22d34f6a5c7472a3 + commit: b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive: github-actions-b17a1ecf.tar.gz + download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive_sha256: 22c2b34cdb5ddaba32bb67ebba4ae8bf1909e5d6082b18859350581b1efabdfa packages: - ./cmd/gha-fleet diff --git a/config/golden-image.yaml b/config/golden-image.yaml index ac8e1532..c1d3e532 100644 --- a/config/golden-image.yaml +++ b/config/golden-image.yaml @@ -1,7 +1,7 @@ schema_version: 1 image: - alias: nddev-ubuntu-24.04-amd64-runner-2.336.0-r20260801-b22 + alias: nddev-ubuntu-24.04-amd64-runner-2.336.0-r20260801-b23 current_alias: nddev-ubuntu-24.04-amd64-current previous_alias: nddev-ubuntu-24.04-amd64-previous source_alias: nddev-source-ubuntu-24.04-amd64-r20260801 @@ -39,10 +39,10 @@ compiler_cache: go_cache_seed: repository: NDDev-OpenNetwork/github-actions - commit: b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive: github-actions-b4a49eec.tar.gz - download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b4a49eecb836b2c97f15afe2c749d34f552f2ae4 - archive_sha256: e2e2325f28743b645cd5fce8f520ffa5cbeed2662eada73e22d34f6a5c7472a3 + commit: b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive: github-actions-b17a1ecf.tar.gz + download_url: https://codeload.github.com/NDDev-OpenNetwork/github-actions/tar.gz/b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69 + archive_sha256: 22c2b34cdb5ddaba32bb67ebba4ae8bf1909e5d6082b18859350581b1efabdfa packages: - ./cmd/gha-fleet diff --git a/internal/imagebuild/orchestrator_test.go b/internal/imagebuild/orchestrator_test.go index 943a7d37..f04fd54c 100644 --- a/internal/imagebuild/orchestrator_test.go +++ b/internal/imagebuild/orchestrator_test.go @@ -160,7 +160,7 @@ func TestRecipeFingerprintIsDeterministic(t *testing.T) { // release workers. The prior image is already promoted, so the alias moves // with the recipe instead of asking the builder to produce different bytes // for an immutable name. - if first != "sha256:c8c7dd85141e4958052a580251ee1b9fd66f71e2fdee25205853c456ff120c1c" { + if first != "sha256:66e11f27e8c542cbe4011b5b475792a49c8751b2910da4c3073d2c0a6f6fd8ec" { t.Fatalf("deployed standard recipe fingerprint drifted: %q", first) } smoke, err := SmokeFingerprint(plan) diff --git a/internal/imagemanifest/manifest_test.go b/internal/imagemanifest/manifest_test.go index b696d413..23606c71 100644 --- a/internal/imagemanifest/manifest_test.go +++ b/internal/imagemanifest/manifest_test.go @@ -26,8 +26,8 @@ func TestRepositoryManifestIsValidAndPinned(t *testing.T) { manifest.CompilerCache.BinarySHA256 != "066c5a84c85044c8f48b3ab571ac114293ea717c3d36985db022af8206e21e63" { t.Fatalf("compiler cache is not exactly pinned: %#v", manifest.CompilerCache) } - if manifest.GoCacheSeed.Commit != "b4a49eecb836b2c97f15afe2c749d34f552f2ae4" || - manifest.GoCacheSeed.ArchiveSHA256 != "e2e2325f28743b645cd5fce8f520ffa5cbeed2662eada73e22d34f6a5c7472a3" || + if manifest.GoCacheSeed.Commit != "b17a1ecfcbbe96ab083fb3548bcd3102f73fcd69" || + manifest.GoCacheSeed.ArchiveSHA256 != "22c2b34cdb5ddaba32bb67ebba4ae8bf1909e5d6082b18859350581b1efabdfa" || len(manifest.GoCacheSeed.Packages) != 1 || manifest.GoCacheSeed.Packages[0] != "./cmd/gha-fleet" { t.Fatalf("Go cache seed is not exactly pinned: %#v", manifest.GoCacheSeed) } @@ -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:ecb5434b09d2aa042b5d400115974741f733c2950f1a32af56c792c7655158ce" { + if fingerprint != "sha256:772c8f76f6851aedb9ab3aef6a89fc089c00807a889330b7251eb0eddf2d4a38" { t.Fatalf("standard manifest fingerprint drifted: %q", fingerprint) } }