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

Generate consistent metadata view assembly names #333

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

davkean
Copy link
Member

@davkean davkean commented Jul 1, 2022

Investigating diffs in assembly loads and JIT time is difficult between builds of VS because the proxy assembly that contains the metadata views gets a new name every launch.

Consistently generate the names - so that the as long as the same assemblies are involved, the same name is generated.

This is an identical change I've made to ServiceBroker RPC proxies.

(I've not actually tested this - as I cannot get MEF building at the moment on my box)

@codecov-commenter
Copy link

codecov-commenter commented Jul 1, 2022

Codecov Report

Merging #333 (6986215) into main (296a635) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #333      +/-   ##
==========================================
+ Coverage   76.14%   76.17%   +0.02%     
==========================================
  Files         110      110              
  Lines        7185     7194       +9     
==========================================
+ Hits         5471     5480       +9     
  Misses       1714     1714              
Impacted Files Coverage Δ
...Composition/Configuration/MetadataViewGenerator.cs 96.09% <100.00%> (+0.29%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@davkean davkean force-pushed the dev/davkean/ConsistentName branch 2 times, most recently from d7046ed to 4500138 Compare July 1, 2022 03:15
Copy link
Member

@AArnott AArnott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall change looks good. I've left a couple ideas for improvement.

Investigating diffs in assembly loads and JIT time is difficult between builds of VS because the proxy assembly that contains the metadata views gets a new name every launch.

Consistently generate the names - so that the as long as the same assemblies are involved, the same name is generated.
@davkean
Copy link
Member Author

davkean commented Aug 3, 2022

@AArnott Can I have another review on this?

@AArnott AArnott added this to the v17.4 milestone Aug 3, 2022
@AArnott AArnott merged commit 437dc50 into microsoft:main Aug 3, 2022
@davkean
Copy link
Member Author

davkean commented Aug 3, 2022

@AArnott thanks!

@davkean davkean deleted the dev/davkean/ConsistentName branch August 3, 2022 05:17
@AArnott
Copy link
Member

AArnott commented Aug 3, 2022

This should show up in VS on Thursday (since it missed the cut-off for tonight's build and insertion).

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.

3 participants