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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user