You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up two warehouses today where both looked for manifests in the same repo -- one using includePaths: [microservice-a] and the other using includePaths: [microservice-b].
Because the most recent commit had changes to both paths (it was an initial commit), both warehouses calculated the same Freight name and only one piece of Freight was produced. That piece of Freight had origin: {kind: Warehouse, name: microservice-a}.
The result is that Stages requesting Freight from origin: {kind: Warehouse, name: microservice-b} could not have that request fulfilled.
If we factor origin into each piece of Freight's deterministically calculated name, these conflicts will not occur.
For the record: I think your reasoning adds up here.
I did wonder for a bit if there are any potential downsides of the "deduplication" not happening (i.e. two Warehouses producing the same Freight because they ship the same items), but I think we are at a point where it has become clear that Freight is unique to its origin, and not necessarily just the contents.
I set up two warehouses today where both looked for manifests in the same repo -- one using
includePaths: [microservice-a]
and the other usingincludePaths: [microservice-b]
.Because the most recent commit had changes to both paths (it was an initial commit), both warehouses calculated the same Freight name and only one piece of Freight was produced. That piece of Freight had
origin: {kind: Warehouse, name: microservice-a}
.The result is that Stages requesting Freight from
origin: {kind: Warehouse, name: microservice-b}
could not have that request fulfilled.If we factor origin into each piece of Freight's deterministically calculated name, these conflicts will not occur.
cc @hiddeco for a sanity check.
The text was updated successfully, but these errors were encountered: