-
Notifications
You must be signed in to change notification settings - Fork 6
Fix bug with environment ID being ref #658
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
Fix bug with environment ID being ref #658
Conversation
Created using spr 1.3.7-beta.1
🦋 Changeset detectedLatest commit: 7b05ba2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
| asset.env.id = getFeatureFlag('environmentDeduplication') | ||
| ? // TODO: Rust can do this and avoid copying a significant amount of data over | ||
| getEnvironmentHash(asset.env) | ||
| : getEnvId(asset.env); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a number which is wrong
| let idAndContext = `${id}-${context}`; | ||
|
|
||
| let env = this.envCache.get(idAndContext); | ||
| if (env) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these changes behind a flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes there is a flag in that function
|
This is the rust change - #201 |
Created using spr 1.3.7-beta.1
with the flag enabled
A subsequent change will modify rust asset graph so it doesn't copy
environments over. We expect a non-negligible performance improvement to native
builds from that change.
Test Plan: N/A