Complete ConfigKit upgrade verification
This commit is contained in:
@@ -467,6 +467,15 @@ Prompt size: focused internal/integration docs and dependency notices.
|
||||
|
||||
## Stage 11 — Verify The Entire Target And Finish The Sprint
|
||||
|
||||
**Complete.** The final offline `go test ./...`, `go vet ./...`, and
|
||||
`go mod tidy -diff` pass with Go 1.27.0 and `GOWORK=off`; the test run permits
|
||||
local HTTP listeners. A temporary native build validates the maintained minimal,
|
||||
complete, and development selections and both application and PromptKit
|
||||
inspection reports without provider calls. Module inspection confirms ConfigKit
|
||||
v1.2.0 and v0.5.0, PromptKit v0.12.0, and YAML v4.0.0-rc.6. A final direct
|
||||
identified-record inheritance regression supplements the composition coverage.
|
||||
No production inference, publication, or deferred dependency upgrade was performed.
|
||||
|
||||
Goal: prove all feature-roadmap acceptance on the completed implementation.
|
||||
|
||||
Work:
|
||||
|
||||
@@ -179,6 +179,34 @@ pipelines:
|
||||
}
|
||||
}
|
||||
|
||||
func TestIdentifiedStepRecordInheritance(t *testing.T) {
|
||||
main := filepath.Join(t.TempDir(), "main.yml")
|
||||
if err := os.WriteFile(main, []byte(`version: 5
|
||||
pipelines:
|
||||
session:
|
||||
input: {module: input}
|
||||
steps:
|
||||
- id: parent
|
||||
references: {source: {path: ./shared.txt}}
|
||||
- id: child
|
||||
extends: {id: parent}
|
||||
artifacts: {result: {extract: {module: extract}}}
|
||||
`), 0600); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
loaded, err := Load(main, LoadOptions{})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
steps := loaded.Config.Pipelines["session"].Steps
|
||||
if len(steps) != 2 || steps[1].ID != "child" || steps[1].References["source"].Path != filepath.Join(filepath.Dir(main), "shared.txt") {
|
||||
t.Fatalf("inherited step = %#v", steps)
|
||||
}
|
||||
if err := loaded.Config.Validate(); err != nil {
|
||||
t.Fatalf("validate inherited steps: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestEmptyStepOperationsAndOptionalImports(t *testing.T) {
|
||||
root := t.TempDir()
|
||||
main := filepath.Join(root, "main.yml")
|
||||
|
||||
Reference in New Issue
Block a user