Remove resource pools, leases and wait queues

Drop the resource allocation feature end to end: store tables and migration, runner scheduling and cleanup, protocol types and commands, CLI commands, TUI screens, tests and docs. Existing databases open cleanly and definitions carrying a retired resources block still validate.
This commit is contained in:
2026-10-19 22:27:27 +01:00
parent a676b30ff0
commit 72aecd8b1f
45 changed files with 282 additions and 3954 deletions
+13
View File
@@ -6,6 +6,19 @@ import (
"testing"
)
func TestRetiredResourcesBlockIsIgnored(t *testing.T) {
source := Template([]string{"worker"}, true) + "```resources\n{\"exclusive\":\"phone\"}\n```\n"
graph, err := Parse(source)
if err != nil {
t.Fatalf("resources block was not ignored: %v", err)
}
for _, stage := range graph.Stages {
if _, exists := stage.Blocks["resources"]; exists {
t.Fatalf("retired resources block was retained on stage %s", stage.Key)
}
}
}
func TestValidation(t *testing.T) {
valid := Template([]string{"implementer", "reviewer"}, true)
cycle := strings.Replace(valid, "success -> #success", "bad_implementation -> implementer\nsuccess -> #success", 1)