Repository navigation
Commit 08dd4d5
fix: use a distinct source URI for the FP pipeline version context (#6541)
Feature Processor created both the pipeline context and the pipeline
version context with the pipeline ARN as their source URI. Consumers that
key lineage graph nodes on source URI therefore collapsed the two contexts
into a single node, and could not tell successive versions apart.
Append the version key already passed to create_pipeline_version_context
to the version context's source URI, so every version gets a URI distinct
from the pipeline's and from other versions. The last update time is what
already identifies a version throughout this module: it names the context
and is stored as source_type and in properties["LastUpdateTime"].
SageMaker's own PipelineVersionId was not used because DescribePipeline,
the only pipeline call Feature Processor makes, does not return it;
reading it would add a ListPipelineVersions call to the lineage path and
require that permission for all Feature Processor users.
Reads are unaffected: load_pipeline_version_context resolves contexts by
name, not by source URI. Contexts created before this change keep their
old source URI.
Co-authored-by: Pravali Uppugunduri <upravali@amazon.com>1 parent b38c4d0 commit 08dd4d5
3 files changed
Lines changed: 7 additions & 3 deletions
File tree
- src/sagemaker/feature_store/feature_processor/lineage
- tests/unit/sagemaker/feature_store/feature_processor/lineage
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
386 | 388 | | |
387 | 389 | | |
388 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments