Read publication inventory without execution snapshots

This commit is contained in:
2026-12-02 15:44:52 +00:00
parent 7ad8deb381
commit ebdf8b522f
14 changed files with 194 additions and 41 deletions

View File

@@ -176,7 +176,6 @@ func inspectSessionState(ctx context.Context, cfg *config.Config, status, remote
} else if current.State != nil {
report.Remote.State = "current"
report.Remote.RunID = current.State.RunID
report.Remote.ManifestKey = current.State.CurrentManifestKey
}
locks := inspectRemoteLocks(ctx, cfg, store)
fail("locks", locks.Err)
@@ -265,9 +264,7 @@ func inspectPublishedOutputs(ctx context.Context, cfg *config.Config, store stor
configuredOutputs := helperConfiguredOutputPathMap(catalog)
extractionOutputs := helperExtractionOutputSet(catalog)
var declarations map[string]artifacts.RemoteArtifact
outcomes := map[string]string{}
if current != nil {
outcomes = committedPublishOutputOutcomes(current.Manifest)
declarations = committedPublishedOutputs(current.Commit)
}
var resultErr error
@@ -275,7 +272,7 @@ func inspectPublishedOutputs(ctx context.Context, cfg *config.Config, store stor
source := strings.TrimSpace(rule.Source)
destination, err := artifactpolicy.ResolvePublishedDestinationWithExtractions(source, rule.Dest, configuredOutputs, extractionOutputs)
_, isLocked := locked[source]
output := sessionPublishedOutput{Source: source, Destination: destination, Required: rule.Required == nil || *rule.Required, LockState: "unknown", State: "missing", Outcome: outcomes[source]}
output := sessionPublishedOutput{Source: source, Destination: destination, Required: rule.Required == nil || *rule.Required, LockState: "unknown", State: "missing"}
if locksKnown {
output.LockState = "unlocked"
if isLocked {