Skip to content

Propagate parent chain ID and diff ID via labels during snapshot preparation #13070

@HASidd

Description

@HASidd

What is the problem you're trying to solve

With the transition to parallel unpacking, Prepare() receives an empty parent string, deferring parent linkage entirely to Commit(). Custom snapshotters that rely on parent context during the initialization or mount phases lose necessary state. They currently have no way to identify the layer's place in the snapshot chain until the commit phase.

Describe the solution you'd like

Inject the parent chain ID and the current layer's diff ID into the labels map passed via the Prepare RPC request. This provides a backwards-compatible, non-breaking redundancy that allows snapshotters to access parent topology early in the unpack lifecycle.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions