Build artifact inventories only for pipeline run reports
Some checks failed
ci/woodpecker/push/verify Pipeline was canceled

This commit is contained in:
2026-11-30 17:11:00 +00:00
parent c11b4ac309
commit 7320fd7957
6 changed files with 47 additions and 20 deletions

View File

@@ -46,10 +46,14 @@ func executePlan(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts
}
func executePlanWithDependencies(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts RunOptions, dependencies invocationDependencies) (*RunSummary, error) {
return withLockedInvocation(ctx, cfg, plan, opts, dependencies, executeSelectedStages)
result, err := withLockedInvocation(ctx, cfg, plan, opts, dependencies, executeSelectedStages)
if result == nil {
return nil, err
}
return result.runSummary(err == nil), err
}
func withLockedInvocation(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts RunOptions, dependencies invocationDependencies, operation func(*invocationRuntime) error) (summary *RunSummary, resultErr error) {
func withLockedInvocation(ctx context.Context, cfg *config.Config, plan BoundedPlan, opts RunOptions, dependencies invocationDependencies, operation func(*invocationRuntime) error) (result *invocationResult, resultErr error) {
dependencies = dependencies.normalized()
runtime, err := prepareInvocation(ctx, cfg, plan, opts, dependencies)
if err != nil {
@@ -76,13 +80,10 @@ func withLockedInvocation(ctx context.Context, cfg *config.Config, plan BoundedP
resultErr = errors.Join(resultErr, fmt.Errorf("release session lock: %w", releaseErr))
}
}
if summary != nil {
summary.Complete = resultErr == nil
}
}()
defer func() {
if runtime.started {
summary, resultErr = finalizeInvocation(runtime, resultErr)
result, resultErr = finalizeInvocation(runtime, resultErr)
}
}()