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.

Fix stable release backend partition

pulse-triage[bot]148b9a0e329c
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 7b2a102582..cda0eb47d2 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -1970,6 +1970,21 @@ oversubscribing the host. The deterministic CPU allocator and release guards
pin this partition and reject a job ceiling that could pre-empt the API
watchdog.
+The first stable `v6.4.0` qualification attempt, release run `33220050114` at
+exact source SHA `41428f46a3573802f3e89a51a40f92cf4434d0b6`, exposed the
+other release worker class. Stable releases use a four-vCPU GitHub-hosted
+runner, where auto mode selected two equal-count API shards of 1,829 and 1,828
+tests. Shard 1 passed in 1,797 seconds, but shard 2 was still making forward
+progress at `TestLimitedAPITokenCannotCreateBroaderToken` when its cumulative
+2,700-second watchdog fired. Every other release gate passed, activation
+failed closed, release `378812881` remained an unpublished draft, and
+convergence run `33220806414` changed no customer pointers. This is measured
+partition imbalance rather than a hung product test. Four-vCPU release workers
+must therefore use the same three-way cost boundary as the PVE worker, with a
+non-oversubscribed `1/1/1` API allocation plus one non-API package worker. The
+existing 10-GiB admission floor still degrades the shard count on constrained
+hosts instead of weakening the watchdog.
+
The preceding `v6.4.0-rc.8` qualification attempt used exact source SHA
`bac7e5d9526d76a6b4e34738511b07609dda80ed`. Release run `33128595650`
passed preparation, frontend bundle, Windows installer smoke, release smoke,
diff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.go
index c0c8b61184..48dca0c14e 100644
--- a/scripts/installtests/build_release_assets_test.go
+++ b/scripts/installtests/build_release_assets_test.go
@@ -2975,7 +2975,7 @@ func TestCreateReleasePublishesPrivateProRuntime(t *testing.T) {
}
}
-func TestReleaseBackendRaceGateUsesCompletePVEPartition(t *testing.T) {
+func TestReleaseBackendRaceGateUsesCompleteWorkerPartition(t *testing.T) {
makefileBytes, err := os.ReadFile(repoFile("Makefile"))
if err != nil {
t.Fatalf("read Makefile: %v", err)
@@ -3014,6 +3014,11 @@ func TestReleaseBackendRaceGateUsesCompletePVEPartition(t *testing.T) {
"python3 scripts/shard_go_tests.py",
`--max-regex-bytes "$MAX_REGEX_BYTES"`,
`MEMORY_WAIT_SECONDS="${PULSE_BACKEND_TEST_MEMORY_WAIT_SECONDS:-120}"`,
+ // Both the four-vCPU stable worker and eight-vCPU prerelease worker
+ // need the measured three-way partition. Two equal-count shards left
+ // the stable suffix over its 45-minute watchdog while still progressing.
+ `if [ "$VCPUS" -ge 4 ]; then`,
+ "cpu_shards=3",
// Admission thresholds are grounded in the 2026-08-21 direct probe on
// the PVE worker (~7.5 GiB measured gate footprint); auto mode must
// degrade the shard count when headroom is missing, never fail the
@@ -3036,7 +3041,7 @@ func TestReleaseBackendRaceGateUsesCompletePVEPartition(t *testing.T) {
`-test.timeout "$API_SHARD_TIMEOUT"`,
} {
if !strings.Contains(backendScript, needle) {
- t.Fatalf("PVE backend partition missing coverage contract: %s", needle)
+ t.Fatalf("release backend partition missing coverage contract: %s", needle)
}
}
}
diff --git a/scripts/release_control/internal/release_preflight_test.py b/scripts/release_control/internal/release_preflight_test.py
index 6c58de1986..54efc80ac5 100755
--- a/scripts/release_control/internal/release_preflight_test.py
+++ b/scripts/release_control/internal/release_preflight_test.py
@@ -25,6 +25,15 @@ class ReleasePreflightTest(unittest.TestCase):
self.assertEqual(non_api, 2)
self.assertEqual(sum(widths) + non_api, 8)
+ # Stable releases use a four-vCPU hosted runner. Keep the measured
+ # three-way API partition there as 1/1/1 plus one non-API worker;
+ # falling back to two equal-count shards exceeded the 45-minute
+ # watchdog in stable v6.4.0 run 33220050114.
+ widths, non_api = allocate_cpu_plan([3624, 15, 16], 4)
+ self.assertEqual(widths, [1, 1, 1])
+ self.assertEqual(non_api, 1)
+ self.assertEqual(sum(widths) + non_api, 4)
+
widths, non_api = allocate_cpu_plan([10, 10], 4)
self.assertEqual(widths, [1, 1])
self.assertEqual(non_api, 2)
@@ -445,6 +454,8 @@ class ReleasePreflightTest(unittest.TestCase):
)
self.assertIn("shard_admission_required_kib", backend)
self.assertIn("Degrading to $cpu_shards API shard(s)", backend)
+ self.assertIn('if [ "$VCPUS" -ge 4 ]; then', backend)
+ self.assertIn("cpu_shards=3", backend)
self.assertIn(
'API_SHARD_TIMEOUT="${PULSE_BACKEND_API_SHARD_TIMEOUT:-45m}"',
backend,
diff --git a/scripts/run-release-backend-tests.sh b/scripts/run-release-backend-tests.sh
index 60bfd831bf..6c792bcc26 100755
--- a/scripts/run-release-backend-tests.sh
+++ b/scripts/run-release-backend-tests.sh
@@ -119,9 +119,16 @@ AVAILABLE_KIB="$(read_available_kib)"
if [ -z "$AVAILABLE_KIB" ]; then AVAILABLE_KIB=0; fi
if [ "$API_SHARDS" = auto ]; then
- if [ "$VCPUS" -ge 8 ]; then
+ # Stable releases run on GitHub's four-vCPU ubuntu-24.04 worker, while
+ # prereleases use the eight-vCPU PVE worker. Stable v6.4.0 run 33220050114
+ # proved that splitting the API package into two equal-count ranges is not
+ # cost-balanced: one range passed in 1,797s while the other was still making
+ # progress when its 2,700s watchdog fired. Use the measured three-way
+ # boundaries on both release worker classes; memory admission below still
+ # degrades safely on smaller hosts.
+ if [ "$VCPUS" -ge 4 ]; then
cpu_shards=3
- elif [ "$VCPUS" -ge 4 ]; then
+ elif [ "$VCPUS" -ge 2 ]; then
cpu_shards=2
else
cpu_shards=1