Skip to content

Commit

Permalink
Fix missing slash manifest evolution (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeMoussalli authored Aug 24, 2023
1 parent 680557e commit 0d85b3c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/fondant/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def evolve( # noqa : PLR0912 (too many branches)
# Update subset location as this is currently always rewritten
evolved_manifest.subsets[subset_name]._specification[
"location"
] = f"{self.pipeline_name}/{self.run_id}/{component_id}/{subset_name}"
] = f"/{self.pipeline_name}/{self.run_id}/{component_id}/{subset_name}"

# Subset is not yet in manifest, add it
else:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"subsets":{
"images":{
"location":"test_pipeline/12345/example_component/images",
"location":"/test_pipeline/12345/example_component/images",
"fields":{
"width":{
"type":"int32"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"subsets":{
"images":{
"location":"test_pipeline/12345/example_component/images",
"location":"/test_pipeline/12345/example_component/images",
"fields":{
"encoding":{
"type":"string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"subsets":{
"images":{
"location":"test_pipeline/12345/example_component/images",
"location":"/test_pipeline/12345/example_component/images",
"fields":{
"encoding":{
"type":"string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"subsets":{
"images":{
"location":"test_pipeline/12345/example_component/images",
"location":"/test_pipeline/12345/example_component/images",
"fields":{
"data":{
"type":"string"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_manifest_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ def test_component_spec_location_update():

assert (
evolved_manifest._specification["subsets"]["images"]["location"]
== "test_pipeline/12345/example_component/images"
== "/test_pipeline/12345/example_component/images"
)

0 comments on commit 0d85b3c

Please sign in to comment.