Finish native completion and retire legacy command machinery
This commit is contained in:
@@ -164,19 +164,19 @@ func TestNativeBundleInspectionAndExecutionAgree(t *testing.T) {
|
||||
execution = cfg
|
||||
return &RunSummary{SessionID: "2026-05-03"}, nil
|
||||
}
|
||||
runArgs := append([]string{"2026-05-03", "--session", filepath.Join(bundle, "session.local-audio.yml"), "--overlay", "testing"}, common...)
|
||||
runArgs := append([]string{"2026-05-03", "--session-file", filepath.Join(bundle, "session.local-audio.yml"), "--overlay", "testing"}, common...)
|
||||
var plan bytes.Buffer
|
||||
planArgs := append(append([]string{}, runArgs...), "--from", "prepare", "--through", "prepare")
|
||||
if err := Plan(context.Background(), planArgs, &plan); err != nil {
|
||||
if err := invokeNativeCommand(context.Background(), append([]string{"session", "plan"}, planArgs...), &plan); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(plan.String(), "prepare: run") {
|
||||
if report := decodeNativeReport[sessionPlanReport](t, plan.Bytes()); len(report.Stages) != 1 || report.Stages[0].Name != "prepare" || report.Stages[0].Action != "run" {
|
||||
t.Fatalf("unexpected plan: %s", plan.String())
|
||||
}
|
||||
if _, err := os.Stat(workspace); !os.IsNotExist(err) {
|
||||
t.Fatalf("plan created workspace: %v", err)
|
||||
}
|
||||
if err := runWithPipelineExecutor(context.Background(), runArgs, io.Discard, executor); err != nil {
|
||||
if err := invokeNativeCommandWith(context.Background(), append([]string{"run"}, runArgs...), io.Discard, executor, commandDependencies{}); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if execution == nil || execution.Session.Inputs.AudioDir != filepath.Join(bundle, "audio") || execution.Campaign.Inputs.PartyFile != filepath.Join(bundle, "campaigns", "sample-campaign", "party.yml") {
|
||||
|
||||
Reference in New Issue
Block a user