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
Build hangs after upgrading to 2.9.5 #2900
Comments
|
Correction. Build took 1 hour 53 minutes instead of 22 seconds when run with RunAnalyzersDuringBuild=false. |
Disabling Dataflow rules fixes the problem. |
Wondering if its the same issue as #2750. Can you try adding an editorconfig option to turn off interprocedural analysis with dataflow rules enabled (https://github.com/dotnet/roslyn-analyzers/blob/master/docs/Analyzer%20Configuration.md): dotnet_code_quality.interprocedural_analysis_kind = None Note that root causing the dataflow performance issue would need some kind of a repro project. |
Also, if you are unable to provide a repro, would it be possible for you to selectively turn on one Dataflow rule at a time for us to know which exact rule has the issue? |
The rules that takes forever is "CA5390: Do Not Hard Code Encryption Key". |
@avivanoff Seems like the rule is disabled by default: roslyn-analyzers/src/Microsoft.NetCore.Analyzers/Core/Security/DoNotHardCodeEncryptionKey.cs Line 18 in 3e4ef01
Tagging @dotpaul @LLLXXXCCC - it may be an issue with Tainted analysis still being too aggressive in when to run DFA OR could be an underlying performance issue with DFA that needs to be fixed. |
Yes, I did. It is a good rule. What I just found is that this rule does not seem to work. The folowing code should trigger it,. right?
|
Great, I was just confirming if users will run into this performance issue from the default configuration or not. Can you please file a separate issue for the functional bug? @dotpaul @LLLXXXCCC can comment/take a look at that issue. Thanks! |
@dotpaul, @LLLXXXCCC, a new issue was created. |
Just to be clear. CA5390 causes no issues with 2.9.4. |
@avivanoff Would you mind trying https://dotnet.myget.org/feed/roslyn-analyzers/package/nuget/Microsoft.CodeAnalysis.FxCopAnalyzers/2.9.6-beta1.19510.4+fb3ada28 ? I expect it to be slower than 2.9.4, but should actually finish. |
Looks good in 2.9.7. |
#2987 also addresses this |
Analyzer package
Microsoft.CodeAnalysis.FxCopAnalyzers
Package Version
v2.9.5 (Latest)
Diagnostic ID
N/A
Repro steps
After upgrading from 2.9.4 to 2.9.5 one of my builds hangs. How do I diagnose the issue?
Expected behavior
Build completes.
Actual behavior
Build hangs and never completes.
The text was updated successfully, but these errors were encountered: