Repository navigation
[feature/damAnalyzer] Merge changes from release/6.0.2xx - #2344
Conversation
* Add COM Analyzer * Add IsComInterop Run Interop tests * PR feedback * Rename variables in GetTestFilesByDirName
…1001.7 (dotnet#2304) [main] Update dependencies from dotnet/runtime
…008.1 (dotnet#2312) [main] Update dependencies from dotnet/arcade
…1011.2 (dotnet#2313) [main] Update dependencies from dotnet/runtime
Fully compare ldstr with values. Compare all tokens in instructions. Updated all the tests which were missing strings and tokens in the expected instructions.
…018.1 (dotnet#2320) [main] Update dependencies from dotnet/arcade
…1017.1 (dotnet#2321) [main] Update dependencies from dotnet/runtime
* Add COM Analyzer * Add IsComInterop Run Interop tests * PR feedback * Rename variables in GetTestFilesByDirName * Extend ProducedBy with enum values for each supported analyzer * Lint * PR feedback * Return ProducedBy instead of list
The Ubuntu 16.04 agents were removed from Azure DevOps: actions/runner-images#3287
Actually compare the contents of the embedded resource (not just its existence).
* Nullable annotations part 4 (final) * PR feedback - Clean up extra variables introduced as nullable versions of existing variables. * Fix a few annotations - TryGetMethodStubValue may return null when true - GetReturnType and GetParameterType may return null in some cases * More annotations and PR feedback - Don't resolve a generic typeref that should already be a typedef - Remove some redundant null checks - Turn on nullable annotations for ref assembly - Remove #nullable disable section * Clean up GetInflatedDeclaringType - Remove null check - Replace TryResolve call with an assert - Add comment and asserts justifying null-forgiving operator * Replace exception with assert in accessors * PR feedback - Add parens to improve readability - Throw on diagnostic without message - Remove unnecessary string.empty * Undo DiagnosticString change - Some DiagnosticIds intentionally have no fixed format strings because we generate different strings in different circumstances.
* Use all analyzers for each linker's test run * Remove SimpleAnalyzerOptions from CSharpAnalyzerVerifier
This reverts commit 108fe5b.
This reverts commit d31e26e.
…024.1 (dotnet#2328) [main] Update dependencies from dotnet/arcade
…1024.4 (dotnet#2329) [main] Update dependencies from dotnet/runtime
Merge main back to release/6.0.2xx
…cases in the TestExplorer (dotnet#2337) * Improve analyzer test infra to split linker tests into separate test cases in the TestExplorer xUnit will not split the test cases if the parameters to the Theory are complex objects. But if the parameter is a single string it will do it. So using a trick to store a string->object mapping and identify the tests by the string. When the test is executed the object representation is looked up from the string and executed. * Add ProducedBy to LogContains attribute to handle the static ctor warning discrepancies between linker and analyzer * Remove analyzer specific information in RunTest since now we run all analyzers at the same time
Add logic to check some of the Ruc on type analysis warnings Change field and event signature to match analyzer and linker to a single signature mode Add class as a diagnostic target Fix issue where attributes ProducedBy.Trimmer/ProducedBy.All are skipped if they are surrounded by ProducedBy.Analyzer attributes Bring IsConstructor and IsStaticConstructor from Roslyn source Remove special case for printing warnings in the event instead of the caller of the event accessor Scenarios of Ruc on type that are not addressed by this PR: Dealing with interfaces with RUC and having a class implementing it DAM interaction with RUC Reflection patterns, some of the tests work because they use typeof() but in general, they are not supported
Just to double-check, the RAF analyzer is not running because we didn't pass the MSBuildOptions.EnableSingleFileAnalyzer yet. And the Interop files don't have any errors so I guess is just that some changes in that PR exacerbated #2308, right? |
|
That's right - sorry, I meant the changes that run tests with all trim analyzers. Those changes are exacerbating #2308. For example the failures in the RequiresCapability tests are coming from the DAM analyzer which didn't used to run on that testcase. |
|
Considering that there is already a PR that has a fix for the spurious IL2082 and that other PRs will fail without the fix |
[feature/damAnalyzer] Merge changes from release/6.0.2xx Commit migrated from dotnet/linker@2ed8172
No description provided.