-
Notifications
You must be signed in to change notification settings - Fork 816
Build implementation projects against ref assemblies #2737
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.
Fix your bugs of course 😈
About half of our tests are failing with:
|
9264306 adds some explicit references to test projects, where the tests had a transitive reference that they were attempting to resolve as a reference assembly. Referencing those things explicitly gets the tests to (correctly) resolve them as implementation assemblies. We need to fix this going forward to use the same scheme as in dotnet/aspnetcore#17311, so that we don't get hit by this when adding new test projects in the future. CC @JunTaoLuo @dougbu |
Ubuntu test failures:
|
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.
Still looks good
Wouldn't be surprised if this test is known to be flaky. I'll click the retry button. Please double-check the issues here and in the internal repo to see if the test needs to be marked |
That stack doesn't look like a test issue, but a test infrastructure issue in LoggedTest.Initialize, unless it's loosing some inner stack? |
There's an issue for this test, but with a different error. |
@rynowak helped me out with this one - the following LoggerFactory was null: Which was hidden by: By marking the LoggerFactory as nullable, it exposed the underlying error, which was more missing references. I'll throw up a PR to mark that guy nullable in master. |
|
Locally I get:
Referring to Which I added in this PR. Not sure yet why it's failing to find this implementation assembly. |
This is good to go now. I'm going to rebase and remove the workaround from 5c45866, which will cause CI to fail until |
We should fix Extensions to use the scheme from dotnet/aspnetcore#17311, at which point we can revert 40d846b |
The previous PR for this (#2483) had a typo, replacing
IsImplementationProject
withIsImplementationAssemblyProject
. This meant that Implementation projects were not being built against refs, which causing some assembly load errors upstream in AspNetCore. Local build confirms that implementation projects now reference 3.0.0.0 versions of their Extensions references.@JunTaoLuo @dougbu PTAL