Document and verify published product imports

This commit is contained in:
2026-12-02 16:49:46 +00:00
parent 56483f9064
commit e5d91cb19b
32 changed files with 330 additions and 265 deletions

View File

@@ -77,6 +77,17 @@ func TestRestoreThenForcedAnalyzeUsesRestoredDurableState(t *testing.T) {
if beforeAnalyze.Stages["trim"] != nil {
t.Fatal("import invented a trim execution")
}
selected := []string{"player_handout"}
effective, err := resolveEffectiveArtifacts(cfg, selected)
if err != nil {
t.Fatal(err)
}
input := &executionInput{plan: mustBoundedPlan(t, "analyze", "analyze")}
input.Force.Value = true
preview, err := buildSessionPlan(context.Background(), cfg, input, selected, effective, commandDependencies{})
if err != nil || len(preview.Stages) != 1 || preview.Stages[0].Action != "run" || preview.Stages[0].Analysis == nil || len(preview.Stages[0].Analysis.Reuse) != 1 {
t.Fatalf("bounded analysis preview = %#v, %v", preview, err)
}
stdout.Reset()
stderr.Reset()