-
Notifications
You must be signed in to change notification settings - Fork 201
Use RepoOriginalSourceRevisionId in ASP.NET Core #1572
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
Conversation
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.
Nice!
|
I'm not certain this information should get encoded into shipping artifacts. That SHA doesn't represent the shipping state. This information will be most certainly incorrect during servicing or in case of security fixes that are made directly against the VMR. IOW this is an intermediate (an implementation detail about how we build the product) that shouldn't ship to customers.
That would be an option. Or only adding this in Debug / non-Release Configuration builds? |
|
@ViktorHofer I don't agree. When we added this feature we discussed this and everyone is aware that it is not 100% correct at all times, but its still very useful to know what the origin is. |
What we're trying to improve is how easy it is to investigate performance issues. Debug/non-release builds aren't used for benchmarking, nightlies are used. So that could be a good option if we want to avoid the metadata in official builds. |
|
Agreed. I think this is reasonable as an informational only. |

This should reenable us to have repo specific commit diffs for benchmarking regression/improvement analysis.
Will probably want to do the same in dotnet/runtime assuming this works.
Question: Do we only want to do this for nightlies? Should it be disabled for official builds?
Edit: Maybe we want
OriginalRepoCommitUrlas well?e.g. Today we have: