Publish products without execution ledgers
This commit is contained in:
@@ -108,7 +108,7 @@ func (publishStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("publish: object store does not support verified source uploads")
|
||||
}
|
||||
previousFiles, err := collectPublishPreviousFiles(ctx, sessionPaths.PreviousDir)
|
||||
previousFiles, err := collectPublishPreviousFiles(ctx, sessionPaths, m.Inputs)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("publish: collect previous files: %w", err)
|
||||
}
|
||||
@@ -159,25 +159,6 @@ func (publishStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*S
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("publish: build immutable upload mapping: %w", err)
|
||||
}
|
||||
defer func() { closePublishTransfers(transfers) }()
|
||||
|
||||
manifestTempPath, err := writeCommittedSessionManifest(m, publishMetadata(
|
||||
bucket,
|
||||
runPrefix,
|
||||
runID,
|
||||
runUploaded,
|
||||
publishedUploaded,
|
||||
previousUploaded,
|
||||
outputPlan,
|
||||
commitKey,
|
||||
pointerKey,
|
||||
))
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("publish: build committed session manifest: %w", err)
|
||||
}
|
||||
if err := appendCommittedSessionManifest(&transfers, manifestTempPath, artifacts.S3RunSessionManifestKey(sessionPrefix, runID)); err != nil {
|
||||
return nil, fmt.Errorf("publish: add committed session manifest: %w", err)
|
||||
}
|
||||
if err := validatePublishTransferPlan(transfers, commitKey); err != nil {
|
||||
return nil, fmt.Errorf("publish: validate immutable upload mapping: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user