Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Use persistent caches on PVE release runners

rcourtmana5893e916c26
diff --git a/.github/workflows/build-release-candidate.yml b/.github/workflows/build-release-candidate.yml
index aaee044677..17826cf7b5 100644
--- a/.github/workflows/build-release-candidate.yml
+++ b/.github/workflows/build-release-candidate.yml
@@ -81,14 +81,12 @@ jobs:
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- cache: true
+ cache: false
- name: Set up Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
- cache: 'npm'
- cache-dependency-path: 'frontend-modern/package-lock.json'
- name: Compile credential-free release payload
env:
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml
index 07a6bbbedb..3546dc4b87 100644
--- a/.github/workflows/create-release.yml
+++ b/.github/workflows/create-release.yml
@@ -263,8 +263,6 @@ jobs:
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '20'
- cache: 'npm'
- cache-dependency-path: 'frontend-modern/package-lock.json'
- name: Install dependencies
run: npm --prefix frontend-modern ci
@@ -374,7 +372,7 @@ jobs:
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- cache: true
+ cache: false
- name: Run backend tests
run: ./scripts/run-release-backend-tests.sh --data-root "$RUNNER_TEMP/pulse-test-data"
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 995e2126c4..b7851cbeda 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -530,6 +530,10 @@ upgrade, update, release, or artifact-selection behavior.
before applying required native binaries, packaging, update-signing, SBOM
generation, validation, or upload. Private signing material and publication
credentials must never enter the PVE compilation job.
+ PVE jobs must consume their runner users' persistent local Go and npm caches
+ directly; disposable-runner Actions cache restore/save phases must remain
+ disabled because archiving those same caches adds network work after the
+ useful test or compilation process has already completed.
Private Pro compilation must additionally bind the exact Pulse and
pulse-enterprise commits in a manifest-covered identity record. Its PVE job
may compile the public payload and Pro server matrix, but the hosted private
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index c86779a921..fec27fe9f7 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -2034,6 +2034,7 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
recoveryWorkflow := string(recoveryBytes)
leaseScript := string(leaseScriptBytes)
createJob := workflowJobBlock(t, createWorkflow, "create_release")
+ frontendBundleJob := workflowJobBlock(t, createWorkflow, "frontend_bundle")
backendJob := workflowJobBlock(t, createWorkflow, "backend_tests")
integrationJob := workflowJobBlock(t, createWorkflow, "integration_tests")
validationJob := workflowJobBlock(t, createWorkflow, "validate_release_assets")
@@ -2061,6 +2062,15 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {
if strings.Contains(compileJob, "PULSE_UPDATE_SIGNING_KEY") {
t.Fatal("PVE release compilation job must not receive private update-signing material")
}
+ if !strings.Contains(compileJob, "cache: false") || strings.Contains(compileJob, "cache: 'npm'") {
+ t.Fatal("PVE compilation must use persistent runner-local caches without Actions cache archival")
+ }
+ if strings.Contains(frontendBundleJob, "cache: 'npm'") {
+ t.Fatal("PVE frontend bundle must use its persistent runner-local npm cache")
+ }
+ if !strings.Contains(backendJob, "cache: false") {
+ t.Fatal("PVE backend qualification must not archive its persistent Go caches through Actions")
+ }
for _, needle := range []string{
`scripts/release_candidate_manifest.py create`,
`--source-sha "${SOURCE_SHA}"`,