feat(deploy): close candidate release set topology
CI / test (push) Failing after 34s

This commit is contained in:
m
2026-08-31 16:35:08 +03:00
parent e21eae7a99
commit 42285a55be
7 changed files with 234 additions and 28 deletions
+24 -5
View File
@@ -28,10 +28,17 @@ type Release struct {
}
const (
ComponentCreatorWeb = "creator-web"
ComponentCoreRuntime = "core-runtime"
ComponentCognitiveWorker = "cognitive-worker"
ComponentResearchRuntime = "research-runtime"
ComponentCreatorWeb = "creator-web"
ComponentCoreRuntime = "core-runtime"
ComponentCognitiveWorker = "cognitive-worker"
ComponentResearchRuntime = "research-runtime"
ComponentCommitRuntime = "commit-runtime"
ComponentContinuityRuntime = "continuity-runtime"
ComponentAgentWorker = "agent-worker"
ComponentAgentExecutionBridge = "agent-execution-bridge"
ComponentWorkGraphRuntime = "work-graph-runtime"
ComponentTaskVerifier = "task-verifier"
ComponentNotificationReceiver = "notification-receiver"
)
// ComponentRelease is operational deployment evidence. It is deliberately
@@ -54,7 +61,19 @@ type ReleaseSet struct {
Components map[string]ComponentRelease `json:"components"`
}
var requiredComponents = []string{ComponentCreatorWeb, ComponentCoreRuntime, ComponentCognitiveWorker, ComponentResearchRuntime}
var requiredComponents = []string{
ComponentCreatorWeb,
ComponentCoreRuntime,
ComponentCognitiveWorker,
ComponentResearchRuntime,
ComponentCommitRuntime,
ComponentContinuityRuntime,
ComponentAgentWorker,
ComponentAgentExecutionBridge,
ComponentWorkGraphRuntime,
ComponentTaskVerifier,
ComponentNotificationReceiver,
}
func (s ReleaseSet) Validate() bool {
if s.ID == "" || s.Revision == "" || len(s.Components) != len(requiredComponents) {
+7 -2
View File
@@ -84,12 +84,17 @@ func TestPersistentSupervisorRestoresTrafficModeAfterRestart(t *testing.T) {
}
func testReleaseSet(id, revision, web, core, cognitive, research string) supervisor.ReleaseSet {
return supervisor.ReleaseSet{ID: id, Revision: revision, Components: map[string]supervisor.ComponentRelease{
components := map[string]supervisor.ComponentRelease{
supervisor.ComponentCreatorWeb: {Name: supervisor.ComponentCreatorWeb, Revision: revision, Upstream: web, HealthURL: web + "/healthz", ReadyURL: web + "/readyz"},
supervisor.ComponentCoreRuntime: {Name: supervisor.ComponentCoreRuntime, Revision: revision, Upstream: core, HealthURL: core + "/healthz", ReadyURL: core + "/readyz"},
supervisor.ComponentCognitiveWorker: {Name: supervisor.ComponentCognitiveWorker, Revision: revision, Upstream: cognitive, HealthURL: cognitive + "/healthz", ReadyURL: cognitive + "/readyz"},
supervisor.ComponentResearchRuntime: {Name: supervisor.ComponentResearchRuntime, Revision: revision, Upstream: research, HealthURL: research + "/healthz", ReadyURL: research + "/readyz"},
}}
}
for _, name := range []string{supervisor.ComponentCommitRuntime, supervisor.ComponentContinuityRuntime, supervisor.ComponentAgentWorker, supervisor.ComponentAgentExecutionBridge, supervisor.ComponentWorkGraphRuntime, supervisor.ComponentTaskVerifier, supervisor.ComponentNotificationReceiver} {
upstream := "http://" + name
components[name] = supervisor.ComponentRelease{Name: name, Revision: revision, Upstream: upstream, HealthURL: upstream + "/healthz", ReadyURL: upstream + "/readyz"}
}
return supervisor.ReleaseSet{ID: id, Revision: revision, Components: components}
}
func TestReleaseSetRejectsMixedRevisionsAndMissingComponents(t *testing.T) {