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

How to troubleshoot a build-time regression #67161

Merged
merged 4 commits into from
Mar 7, 2023
Merged

Conversation

jcouv
Copy link
Member

@jcouv jcouv commented Mar 2, 2023

No description provided.

@jcouv jcouv self-assigned this Mar 2, 2023
@jcouv jcouv marked this pull request as ready for review March 2, 2023 20:36
The file is written next to the compilation output and has a `.key` suffix.
Comparing those files between slow and fast runs helps detect pertinent changes (new inputs, new references, etc).
3. compiler server issue:
Inspect the binary log (search for "Error:" and such).
Copy link
Member

Choose a reason for hiding this comment

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

💡 There is a predefined (example) search term in MSBuild Structured Log Viewer for $message CompilerServer failed that I normally use for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Good to know. Thanks!

@jcouv
Copy link
Member Author

jcouv commented Mar 7, 2023

@jaredpar @dotnet/roslyn-compiler for review. Thanks

Use `/p:Features=debug-determinism` to create an additional output file that documents all the inputs to a particular compilation.
The file is written next to the compilation output and has a `.key` suffix.
Comparing those files between slow and fast runs helps detect pertinent changes (new inputs, new references, etc).
3. compiler server issue:
Copy link
Member

Choose a reason for hiding this comment

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

This would be #2 for me.

@jcouv jcouv merged commit a141d72 into main Mar 7, 2023
@ghost ghost added this to the Next milestone Mar 7, 2023
@jcouv jcouv deleted the dev/jcouv/build-time branch March 7, 2023 22:26
@allisonchou allisonchou modified the milestones: Next, 17.6 P3 Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants