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

Merge 'dotnet/main' into PrimaryConstructors #66866

Merged

Conversation

AlekseyTs
Copy link
Contributor

No description provided.

arunchndr and others added 30 commits February 1, 2023 18:48
Update Project.HasSuccessfullyLoadedAsync logic
…-release/dev17.5-vs-deps

Merge release/dev17.5 to release/dev17.5-vs-deps
Attempting to publish NuPkg files from a dev branch to avoid the need to
insert into release/dev17.5.

For reviewers. The intent here is *solely* to put our assets onto our
AzDO NuGet feeds for consumption from razor. This branch is
already mirror'd to AzDO, I can build it, we just need the assets on our
package feeds so we can consume them for next month. Once 17.6 preview
builds are available we can shift back to consuming `main` from roslyn.
* Continued analyzer assembly loading work

This change responds to several concerns raised in dotnet#66492:

- Collapse the `AnalyzerAssembyLoader` hierarchy by one level and move
  more logic into the base type.
- Fix `AssemblyLoadContext` in tests to not replicate types. That means
  we can safely pass `ITestOutputHelper` into the custom
  `AssemblyLoadContext`
- Further strengthen the test separation

I have deliberately not changed the file names to reflect the new type
names because I wanted the review process to be smooth. Once I have two
sign offs for the change I will send another commit which does the
following:

- Rename
    - DefaultAnalyzerAssemblyLoaderTests.cs -> AnalyzerAssemblyLoaderTests.cs
    - DefaultAnalyzerAssemblyLoader.Core.cs -> AnalyzerAssemblyLoader.Core.cs
    - DefaultAnalyzerAssemblyLoader.Desktop.cs -> AnalyzerAssemblyLoader.Desktop.cs
    - DefaultAnalyzerAssemblyLoader.cs -> AnalyzerAssemblyLoader.cs
- Move
    - `DefaultAnalyzerAssemblyLoader` into DefaultAnalyzerAssemblyLoader.cs
    - `InvokeUtil` to InvokeUtil.cs. As constructed every edit to this
      type causes Test Explorer to lose context on the theory branches.
      Doesn't come back until rebuild. Will be smoother editting in its own
      file.

That should get is into the style we expect here. After that I will
merge once tests are green.

* Unload AssemblyLoadContext after test completion

* Reuse AssemblyLoadTestFixture across test runs

This also has the added benefit that the entire .NET Core set of tests
run in less than one second. Previously it close to half a second per
test.

This will hopefully alleviate the pain for the runtime issue we're
hittnig running `AssemblyLoadContext` tests in CI. This reduces the
amount of compilations on this code path which seem to be the trigger
for the failure.

- dotnet#66621
- dotnet/runtime#81108

* Apply suggestions from code review

Co-authored-by: Rikki Gibson <rikkigibson@gmail.com>

* PR feedback

* rename the files

* Fixup

---------

Co-authored-by: Rikki Gibson <rikkigibson@gmail.com>
Avoid directory enumerations in DeleteLeftoverDirectories
Fix formatting issue with convert-to-full-prop
* Abstractions + propg snippet

* Implement propi snippet

* Rename

* Add clarification comment

* Remove bad test (it was abstracted)

* Revert "Rename"

This reverts commit 4b6547d.

* Suppress nullability warning

* Rename base class to better indicate that it is abstract

* Move abstract member to the top of the file

* Make interface test case abstract

* Again be clear in naming of abstract things
CyrusNajmabadi and others added 18 commits February 13, 2023 09:15
Co-authored-by: CyrusNajmabadi <cyrus.najmabadi@gmail.com>
Move the 'assign out parameter' fixer down to the CodeStyle layer
* 🔨 Enable MSBuild COMM log in bootstrap

Fixed a gap where we were calling MSBuild without setting up the COMM
log. This uses a bigger hammer approach by setting the ENV variables at
the YML level.
Move the 'add parens in conditional' fixer down to the CodeStyle layer
Fix crash in FAR helpers when only part of a linked-document set has been updated
…uestConcurrency

Dev/toddgrun/request concurrency
Move 'convert to async function' down to CodeStyle layer
Move 'use explicit type for constants' down to anlayzer layer
@AlekseyTs AlekseyTs merged commit 3771d3a into dotnet:features/PrimaryConstructors Feb 15, 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.