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.

Admit server upgrade changes to the existing native checks

pulse-triage[bot]f986912ed2d5
diff --git a/.github/workflows/unified-agent-native.yml b/.github/workflows/unified-agent-native.yml
index edc7edd04a..4c039436c1 100644
--- a/.github/workflows/unified-agent-native.yml
+++ b/.github/workflows/unified-agent-native.yml
@@ -25,6 +25,13 @@ on:
- 'frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts'
- 'scripts/install.sh'
- 'scripts/install.ps1'
+ # The Unix installer inventory also executes server/update fixtures.
+ # Keep direct source and Python fixture edits in native admission.
+ - 'install.sh'
+ - 'scripts/pulse-auto-update.sh'
+ - 'scripts/tests/test_auto_update_service_state.py'
+ - 'scripts/tests/test_auto_update_systemd.py'
+ - 'scripts/tests/test_server_service_discovery.py'
- 'scripts/installtests/**'
- 'go.mod'
- 'go.sum'
@@ -50,6 +57,11 @@ on:
- 'frontend-modern/src/utils/__tests__/agentInstallCommand.windows.test.ts'
- 'scripts/install.sh'
- 'scripts/install.ps1'
+ - 'install.sh'
+ - 'scripts/pulse-auto-update.sh'
+ - 'scripts/tests/test_auto_update_service_state.py'
+ - 'scripts/tests/test_auto_update_systemd.py'
+ - 'scripts/tests/test_server_service_discovery.py'
- 'scripts/installtests/**'
- 'go.mod'
- 'go.sum'
diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.md
index 1232efe573..0ed1d99f22 100644
--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md
+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md
@@ -7685,6 +7685,21 @@ either omitted graph input or a later exclusion. Existing real-build ordering,
Linux helper, Windows exit/service and installer checks remain unchanged. This
is admission coverage, not a local Windows/macOS verdict or installed recovery.
+### Native server-upgrade source admission (11 October 2026)
+
+The native Unix installer inventory already exercises the root `install.sh`,
+`scripts/pulse-auto-update.sh`, and their service-state/log-sink, systemd-oracle
+and service-discovery Python fixtures. Both push-to-main and PR path filters
+now admit those five exact inputs, so changing one alone cannot bypass the
+existing native matrix. Agent install triggers, jobs, tools, assertions and
+deadlines are unchanged; no unrelated script or UI path is added.
+
+`TestNativeInstallerWorkflowAdmitsServerUpgradeSource` decodes each event and
+rejects deletion or exclusion of each input independently. Existing installer
+tool/partition and frontend-preparation controls still require the complete
+Unix inventory. This fixes check admission, not a macOS verdict, published-key
+installation, LXC restoration or the cause of a customer's stopped update.
+
### Bounded Docker module-proxy recovery (7 October 2026)
The Docker backend builder uses `scripts/go-mod-download.sh` with the same
diff --git a/scripts/installtests/native_installer_triggers_test.go b/scripts/installtests/native_installer_triggers_test.go
new file mode 100644
index 0000000000..425ce1ea0c
--- /dev/null
+++ b/scripts/installtests/native_installer_triggers_test.go
@@ -0,0 +1,95 @@
+package installtests
+
+import (
+ "fmt"
+ "os"
+ "strings"
+ "testing"
+
+ "gopkg.in/yaml.v3"
+)
+
+// The Unix native step runs the root/server installer fixtures as well as
+// scripts/install.sh's agent fixtures. Linux-only Build and Test coverage does
+// not supply the macOS verdict for these source and fixture inputs.
+var nativeServerUpgradeInputs = []string{
+ "install.sh",
+ "scripts/pulse-auto-update.sh",
+ "scripts/tests/test_auto_update_service_state.py",
+ "scripts/tests/test_auto_update_systemd.py",
+ "scripts/tests/test_server_service_discovery.py",
+}
+
+func validateNativeServerUpgradeTriggers(content []byte) error {
+ var workflow struct {
+ On map[string]struct{ Paths []string }
+ }
+ if err := yaml.Unmarshal(content, &workflow); err != nil {
+ return err
+ }
+ for _, event := range []string{"push", "pull_request"} {
+ paths := workflow.On[event].Paths
+ for _, pattern := range paths {
+ if strings.HasPrefix(pattern, "!") {
+ return fmt.Errorf("%s must not exclude native installer inputs", event)
+ }
+ }
+ for _, required := range nativeServerUpgradeInputs {
+ found := false
+ for _, pattern := range paths {
+ found = found || pattern == required
+ }
+ if !found {
+ return fmt.Errorf("%s must admit native server upgrade input %s", event, required)
+ }
+ }
+ }
+ return nil
+}
+
+func TestNativeInstallerWorkflowAdmitsServerUpgradeSource(t *testing.T) {
+ content, err := os.ReadFile(repoFile(".github", "workflows", "unified-agent-native.yml"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := validateNativeServerUpgradeTriggers(content); err != nil {
+ t.Fatal(err)
+ }
+ // Decode and change one event at a time. A matching input in the other
+ // event, or an unrelated job string, cannot conceal a missing admission.
+ for _, event := range []string{"push", "pull_request"} {
+ for _, required := range nativeServerUpgradeInputs {
+ for _, exclusion := range []bool{false, true} {
+ t.Run(fmt.Sprintf("%s/%s/excluded=%t", event, required, exclusion), func(t *testing.T) {
+ var workflow map[string]interface{}
+ if err := yaml.Unmarshal(content, &workflow); err != nil {
+ t.Fatal(err)
+ }
+ trigger := workflow["on"].(map[string]interface{})[event].(map[string]interface{})
+ paths := trigger["paths"].([]interface{})
+ if exclusion {
+ trigger["paths"] = append(paths, "!"+required)
+ } else {
+ var changed []interface{}
+ for _, pattern := range paths {
+ if pattern != required {
+ changed = append(changed, pattern)
+ }
+ }
+ if len(changed) != len(paths)-1 {
+ t.Fatal("control must remove exactly one original input")
+ }
+ trigger["paths"] = changed
+ }
+ mutant, err := yaml.Marshal(workflow)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if err := validateNativeServerUpgradeTriggers(mutant); err == nil {
+ t.Fatal("accepted upgrade input without native verification")
+ }
+ })
+ }
+ }
+ }
+}