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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Parallelize release archive validation
rcourtmanf76a8279a0ad
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 429435ff0b..06bca8d478 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -580,6 +580,10 @@ upgrade, update, release, or artifact-selection behavior.private broker/image proof, and public-runtime mismatch proof, but may runthe independent browser and public-boundary checks as a sibling of thelease-bound broker mutation so customer-path evidence is not serialized.+ Candidate archive validation must extract the complete required member set+ from each archive in one gzip pass and validate independent platform and+ universal archives concurrently, allowing the hosted runner to schedule+ decompression across all available virtual CPUs.This credential-free lane may run against the isolated rootlessDocker daemon owned by the low-priority PVE build identity; it must not gainhost-Docker access, signing keys, registry login, or package-write authority.diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex dd94c17d27..7f6074cad1 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -281,6 +281,28 @@ func TestReleaseContainerContextTreatsServerSignaturesAsArchitectureBound(t *tes}}+func TestValidateReleaseScansArchivesOnceInParallel(t *testing.T) {+ content, err := os.ReadFile(repoFile("scripts", "validate-release.sh"))+ if err != nil {+ t.Fatalf("read validate-release.sh: %v", err)+ }+ script := string(content)+ for _, needle := range []string{+ `platform_tar_entries=(`,+ `check_tar_entries_nonempty "$tarball" "${platform_tar_entries[@]}"`,+ `validate_platform_tarball "${arch}" >"${log_path}" 2>&1 &`,+ `validate_universal_tarball >"${archive_validation_logs}/universal.log" 2>&1 &`,+ `wait "${archive_validation_pids[$index]}"`,+ } {+ if !strings.Contains(script, needle) {+ t.Fatalf("validate-release.sh missing single-pass parallel archive validation: %s", needle)+ }+ }+ if strings.Contains(script, `tar -tzf "$tarball"`) {+ t.Fatal("validate-release.sh must not rescan every platform archive with tar -t")+ }+}+func TestProviderMSPReleaseBundleIsRequiredAndValidated(t *testing.T) {validateBytes, err := os.ReadFile(repoFile("scripts", "validate-release.sh"))if err != nil {diff --git a/scripts/validate-release.sh b/scripts/validate-release.shindex ba2ab35e48..d230c245c2 100755--- a/scripts/validate-release.sh+++ b/scripts/validate-release.sh@@ -536,32 +536,57 @@ unified_agent_entries=(./bin/pulse-agent-freebsd-amd64./bin/pulse-agent-freebsd-arm64)-for arch in "${tar_arches[@]}"; do- tarball="pulse-v${PULSE_VERSION}-${arch}.tar.gz"+platform_tar_entries=(+ ./bin/pulse+ "${unified_agent_entries[@]}"+ ./scripts/install-container-agent.sh+ ./scripts/install-docker.sh+ ./scripts/install.sh+ ./VERSION+)+validate_platform_tarball() {+ local arch="$1"+ local tarball="pulse-v${PULSE_VERSION}-${arch}.tar.gz"+ check_tar_entries_nonempty "$tarball" "${platform_tar_entries[@]}"+}+validate_universal_tarball() {+ check_tar_entries_nonempty \+ "pulse-v${PULSE_VERSION}.tar.gz" \+ ./VERSION \+ "${unified_agent_entries[@]}"+}- # Check binaries (note: tarballs use ./ prefix)- if ! tar -tzf "$tarball" ./bin/pulse >/dev/null 2>&1; then- error "$(basename $tarball) missing binaries"- exit 1+# Each archive previously underwent up to four complete gzip scans in series.+# Extract every required member in one pass, and let the host schedule the six+# independent archives across all available virtual CPUs.+archive_validation_logs="$(mktemp -d "$tmp_root/archive-validation.XXXXXX")"+archive_validation_pids=()+archive_validation_labels=()+for arch in "${tar_arches[@]}"; do+ log_path="${archive_validation_logs}/${arch}.log"+ validate_platform_tarball "${arch}" >"${log_path}" 2>&1 &+ archive_validation_pids+=("$!")+ archive_validation_labels+=("${arch}")+done+validate_universal_tarball >"${archive_validation_logs}/universal.log" 2>&1 &+archive_validation_pids+=("$!")+archive_validation_labels+=("universal")++archive_validation_failed=0+for index in "${!archive_validation_pids[@]}"; do+ label="${archive_validation_labels[$index]}"+ if ! wait "${archive_validation_pids[$index]}"; then+ error "${label} release archive validation failed"+ cat "${archive_validation_logs}/${label}.log" >&2+ archive_validation_failed=1fi-- check_tar_entries_nonempty "$tarball" "${unified_agent_entries[@]}"-- # Check scripts- tar -tzf "$tarball" ./scripts/install-container-agent.sh ./scripts/install-docker.sh ./scripts/install.sh >/dev/null 2>&1 || { error "$(basename $tarball) missing scripts"; exit 1; }-- # Check VERSION file- tar -tzf "$tarball" ./VERSION >/dev/null 2>&1 || { error "$(basename $tarball) missing VERSION file"; exit 1; }done+rm -rf "${archive_validation_logs}"+if [[ "${archive_validation_failed}" != "0" ]]; then+ exit 1+fisuccess "Platform-specific tarballs contain all required files (including cross-platform unified agents)"--# Validate universal tarballsection "Validating universal tarball"-tar -tzf "pulse-v${PULSE_VERSION}.tar.gz" ./VERSION >/dev/null 2>&1 || { error "Universal tarball missing VERSION file"; exit 1; }--# Validate universal tarball contains all agent binaries for download endpoint-info "Validating universal tarball contains all agent binaries..."-check_tar_entries_nonempty "pulse-v${PULSE_VERSION}.tar.gz" "${unified_agent_entries[@]}"success "Universal tarball validated (includes cross-platform unified agents)"# Validate the provider MSP bundle as one extracted tree. It is a separately