Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Asset public ids are assigned deterministically #9706

Merged
merged 1 commit into from May 8, 2024

Conversation

mattcompiles
Copy link
Contributor

↪️ Pull Request

We've been seeing issues internally where public Ids are not deterministic between two builds on the same commit and options. I believe this is related to how we iterate over the nodes array directly to assign the public Ids rather than using a DFS. As Assets are transformed off-thread, it's possible Assets are added to the graph in different order between builds, therefore the node Array is not deterministic.

This PR instead uses a dfs to ensure the nodes are visited in order. In the full Jira AssetGraph I measured a 100ms performance loss using DFS instead which I think is acceptable in this case.

@mattcompiles mattcompiles added this pull request to the merge queue May 8, 2024
Merged via the queue into v2 with commit a7b7e8a May 8, 2024
16 of 17 checks passed
@marcins marcins deleted the public-id-dfs branch May 8, 2024 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants