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
fix(ci): include release trains in build and E2E triggers
pulse-triage[bot]3413b37940ad
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.ymlindex 2c9d59ad5d..8c77c5472f 100644--- a/.github/workflows/build-and-test.yml+++ b/.github/workflows/build-and-test.yml@@ -5,10 +5,12 @@ on:branches:- main- pulse/v6-release+ - 'release/v*'pull_request:branches:- main- pulse/v6-release+ - 'release/v*'workflow_dispatch:permissions:diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.ymlindex d9af85e692..b400e9b648 100644--- a/.github/workflows/test-e2e.yml+++ b/.github/workflows/test-e2e.yml@@ -5,6 +5,7 @@ on:branches:- main- pulse/v6-release+ - 'release/v*'paths:- 'frontend-modern/**'- 'internal/**'@@ -16,6 +17,7 @@ on:- main- master- pulse/v6-release+ - 'release/v*'paths:- 'frontend-modern/**'- 'internal/**'diff --git a/docs/release-control/v6/internal/subsystems/deployment-installability.md b/docs/release-control/v6/internal/subsystems/deployment-installability.mdindex 94e05405a7..c8c8e47725 100644--- a/docs/release-control/v6/internal/subsystems/deployment-installability.md+++ b/docs/release-control/v6/internal/subsystems/deployment-installability.md@@ -4089,6 +4089,13 @@ are part of the same governed bootstrap input even when the package manifestrange already permits the newer version; the lockfile must identify theresolved package version and integrity that the release build will actuallyconsume.+Build and Test and Core E2E must admit both pushes and pull requests for+`release/v*` trains as well as main. A release proposal must not appear+qualified merely because documentation and boundary checks passed while the+branch filters excluded build, dependency-security and applicable E2E checks.+Existing path filters and per-job requirements remain in force; branch admission+is not evidence that those jobs executed or passed.+Frontend dependency-security changes use their own proof route rather thanborrowing the local dev-runtime orchestration tests. The canonical`.github/workflows/build-and-test.yml` frontend job must run the completediff --git a/scripts/installtests/build_release_assets_test.go b/scripts/installtests/build_release_assets_test.goindex 3e21587fd1..769d3b6c60 100644--- a/scripts/installtests/build_release_assets_test.go+++ b/scripts/installtests/build_release_assets_test.go@@ -3661,6 +3661,26 @@ func TestReleasePipelinePromotesOneImmutableCandidate(t *testing.T) {}}+func TestReleaseTrainCITriggersIncludeBuildAndE2E(t *testing.T) {+ for _, workflow := range []string{"build-and-test.yml", "test-e2e.yml"} {+ content, err := os.ReadFile(repoFile(".github", "workflows", workflow))+ if err != nil {+ t.Fatal(err)+ }+ for _, event := range []string{"push", "pull_request"} {+ t.Run(workflow+"/"+event, func(t *testing.T) {+ // Limit the assertion to this event's branch list, not another+ // trigger or a job comment mentioning the same pattern.+ expression := regexp.MustCompile(`(?m)^ ` + event + `:\n branches:\n((?: - [^\n]+\n)+)`)+ match := expression.FindStringSubmatch(string(content))+ if len(match) != 2 || !strings.Contains(match[1], " - 'release/v*'\n") || !strings.Contains(match[1], " - main\n") {+ t.Fatal("CI must admit main and release/v* branches for this event")+ }+ })+ }+ }+}+func TestFrontendDependencySecurityAuditsAreRequired(t *testing.T) {workflowPath := repoFile(".github", "workflows", "build-and-test.yml")assertFileContainsAll(t, workflowPath,diff --git a/scripts/tests/test_release_train_ci_contract.py b/scripts/tests/test_release_train_ci_contract.pynew file mode 100644index 0000000000..33115e8571--- /dev/null+++ b/scripts/tests/test_release_train_ci_contract.py@@ -0,0 +1,36 @@+"""Release trains must receive the same CI triggers as main."""+import fnmatch+from pathlib import Path+import re+import unittest++ROOT = Path(__file__).resolve().parents[2]+++class ReleaseTrainCIContractTest(unittest.TestCase):+ def test_build_and_e2e_cover_release_train_pushes_and_proposals(self):+ for workflow in ("build-and-test.yml", "test-e2e.yml"):+ source = (ROOT / ".github/workflows" / workflow).read_text()+ for event in ("push", "pull_request"):+ with self.subTest(workflow=workflow, event=event):+ block = re.search(+ rf"^ {event}:\n(.*?)(?=^ \w|^\S|\Z)",+ source, re.MULTILINE | re.DOTALL,+ )+ self.assertIsNotNone(block)+ branches = re.search(+ r"^ branches:\n((?: - .*\n)+)",+ block.group(1), re.MULTILINE,+ )+ self.assertIsNotNone(branches)+ patterns = [line.strip()[2:].strip('\"\'')+ for line in branches.group(1).splitlines()]+ for branch in ("main", "release/v6.4", "release/v7.0"):+ self.assertTrue(+ any(fnmatch.fnmatchcase(branch, p) for p in patterns),+ f"{workflow} {event} excludes {branch}: {patterns}",+ )+++if __name__ == "__main__":+ unittest.main()