Skip to content

[master] Update dependencies from mono/linker dotnet/arcade - #33646

Merged
safern merged 9 commits into
masterfrom
darc-master-3a3f1e38-a2ca-4b93-b65d-71c8583b52b1
Mar 18, 2020
Merged

safern merged 9 commits into
masterfrom
darc-master-3a3f1e38-a2ca-4b93-b65d-71c8583b52b1

Conversation

@dotnet-maestro

@dotnet-maestro dotnet-maestro Bot commented Mar 16, 2020 •

Copy link
Copy Markdown
Contributor

This pull request updates the following dependencies

From https://github.com/dotnet/arcade

  • Subscription: d5e65fc1-96f8-47a5-f02e-08d75d5208ed
  • Build: 20200317.1
  • Date Produced: 3/17/2020 1:41 PM
  • Commit: 76778a412f34ee621bf7dcf2aa6e49db0c7a6a46
  • Branch: refs/heads/master
  • Updates:
    • Microsoft.DotNet.XUnitExtensions -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.VersionTools.Tasks -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.ApiCompat -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.Arcade.Sdk -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.Build.Tasks.Feed -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.Build.Tasks.Packaging -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.CodeAnalysis -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.GenAPI -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.GenFacades -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.Helix.Sdk -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.RemoteExecutor -> 5.0.0-beta.20167.1
    • Microsoft.DotNet.XUnitConsoleRunner -> 2.5.1-beta.20167.1

From https://github.com/mono/linker

  • Subscription: bcca1ed9-0939-490e-f02f-08d75d5208ed
  • Build: 20200316.4
  • Date Produced: 3/16/2020 12:58 PM
  • Commit: eb2b1c6674a1e881e7baa0cb136a978ee3b39f89
  • Branch: refs/heads/master
  • Updates:
    • ILLink.Tasks -> 0.1.6-prerelease.20166.4

…316.1

- Microsoft.DotNet.XUnitExtensions - 5.0.0-beta.20166.1
- Microsoft.DotNet.VersionTools.Tasks - 5.0.0-beta.20166.1
- Microsoft.DotNet.ApiCompat - 5.0.0-beta.20166.1
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.20166.1
- Microsoft.DotNet.Build.Tasks.Feed - 5.0.0-beta.20166.1
- Microsoft.DotNet.Build.Tasks.Packaging - 5.0.0-beta.20166.1
- Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk - 5.0.0-beta.20166.1
- Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk - 5.0.0-beta.20166.1
- Microsoft.DotNet.CodeAnalysis - 5.0.0-beta.20166.1
- Microsoft.DotNet.GenAPI - 5.0.0-beta.20166.1
- Microsoft.DotNet.GenFacades - 5.0.0-beta.20166.1
- Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.20166.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.20166.1
- Microsoft.DotNet.XUnitConsoleRunner - 2.5.1-beta.20166.1
@dotnet-maestro

This comment has been minimized.

@wtgodbe

wtgodbe commented Mar 16, 2020

Copy link
Copy Markdown
Member

Looks like I triggered this too early, it doesn't have dotnet/arcade#5067 yet. @mmitche do we also need dotnet/arcade#5072?

@dotnet-maestro

This comment has been minimized.

@wtgodbe

wtgodbe commented Mar 16, 2020

Copy link
Copy Markdown
Member

CoreClr build is not happy:

/__w/1/s/src/libraries/System.Private.CoreLib/src/System/Threading/EventWaitHandle.cs(49,13): error CS8762: Parameter 'result' may not have a null value when exiting with 'true'. [/__w/1/s/src/coreclr/src/System.Private.CoreLib/System.Private.CoreLib.csproj]

@jkotas @hoyosjs @safern who should take a look at this?

@dotnet-maestro

This comment has been minimized.

@jkotas

jkotas commented Mar 16, 2020

Copy link
Copy Markdown
Member

CS8762: Parameter 'result' may not have a null value when exiting with 'true'.

@dotnet/nullablefc Are the fixes for this sitting in a branch somewhere?

@stephentoub

Copy link
Copy Markdown
Member

I don't believe we were expecting any breaks. I'll take a look.
cc: @jcouv

@dotnet-maestro

This comment has been minimized.

@safern

safern commented Mar 16, 2020

Copy link
Copy Markdown
Member

@dotnet/nullablefc Are the fixes for this sitting in a branch somewhere?

I have some of the libraries fixes as I was working on consuming a new compiler from master branch instead of release branches to get the latest features.

I don't have the S.P.CoreLib, but I can work on those as well. @stephentoub let me know if you'll take care, but I've made progress as well.

@dotnet-maestro

This comment has been minimized.

@stephentoub

Copy link
Copy Markdown
Member

@safern, thanks, if you're already working on it, it'd be great if you could fix these as well. Thanks!

@dotnet-maestro

This comment has been minimized.

@safern

safern commented Mar 16, 2020

Copy link
Copy Markdown
Member

No worries. I'll push the full fix later today.

@dotnet-maestro

This comment has been minimized.

dotnet-maestro Bot and others added 2 commits March 17, 2020 05:05
…316.3

- Microsoft.DotNet.XUnitExtensions - 5.0.0-beta.20166.3
- Microsoft.DotNet.VersionTools.Tasks - 5.0.0-beta.20166.3
- Microsoft.DotNet.ApiCompat - 5.0.0-beta.20166.3
- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.20166.3
- Microsoft.DotNet.Build.Tasks.Feed - 5.0.0-beta.20166.3
- Microsoft.DotNet.Build.Tasks.Packaging - 5.0.0-beta.20166.3
- Microsoft.DotNet.Build.Tasks.SharedFramework.Sdk - 5.0.0-beta.20166.3
- Microsoft.DotNet.Build.Tasks.TargetFramework.Sdk - 5.0.0-beta.20166.3
- Microsoft.DotNet.CodeAnalysis - 5.0.0-beta.20166.3
- Microsoft.DotNet.GenAPI - 5.0.0-beta.20166.3
- Microsoft.DotNet.GenFacades - 5.0.0-beta.20166.3
- Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.20166.3
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.20166.3
- Microsoft.DotNet.XUnitConsoleRunner - 2.5.1-beta.20166.3
@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

@stephentoub @buyaa-n @eiriktsarpalis PTAL at commit: 73d4749

@dotnet-maestro

This comment has been minimized.

@dotnet-maestro dotnet-maestro Bot changed the title [master] Update dependencies from dotnet/arcade [master] Update dependencies from dotnet/arcade mono/linker Mar 17, 2020
@BrennanConroy

Copy link
Copy Markdown
Member

👀

Looks like you missed an area too: System\Net\Http\*

@dotnet-maestro

This comment has been minimized.

@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

Looks like you missed an area too: System\Net\Http*

I built locally for allConfigurations which should cover all and it succeeded. I will take a look.

Thanks, @stephentoub for reviewing, I updated the PR.

@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

@safern still some nullability errors:

Yeah already working on them.

@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

cc: @dagood @NikolaMilosavljevic for the packaging error.

@dotnet-maestro

This comment has been minimized.

@dagood

dagood commented Mar 17, 2020

Copy link
Copy Markdown
Member

cc: @dagood @NikolaMilosavljevic for the packaging error.

This is indirectly caused by the compilation errors. The DLL not existing causes crossgen to fail, so it can't advance to the next step to produce that versions file. Then the pack fails because that file is missing. Perhaps the msbuild targets are set up to be a bit too optimistic about being able to do something useful when the prereq has failed to build.

@dotnet-maestro

dotnet-maestro Bot commented Mar 17, 2020 •

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: dotnet-runtime-perf (Performance Linux x64 release netcoreapp5.0), runtime (Libraries Build Windows_NT arm64 Release), runtime (Libraries Build Windows_NT x64 Debug), runtime (Libraries Build Windows_NT allConfigurations x64 Debug), runtime (Libraries Build Windows_NT arm Release), runtime (Libraries Build Windows_NT x86 Debug), runtime (Libraries Build Windows_NT x86 Release), dotnet-runtime-perf (Libraries Build Windows_NT x64 Release), dotnet-runtime-perf (Libraries Build Windows_NT x86 Release), runtime (Libraries Build OSX x64 Debug), runtime-live-build (Build Windows_NT x86 release Runtime_Debug), runtime-live-build (Build OSX x64 release Runtime_Debug), runtime-live-build (Build Windows_NT x64 debug Mono_Libraries), runtime-live-build (Build Linux x64 debug Runtime_Release), runtime-live-build (Build Linux x64 debug RuntimeFlavor_Mono), runtime, dotnet-runtime-perf, runtime-live-build
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.


// Provide a default implementation for value converters.
internal virtual bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, ref ReadStack state, out T value)
internal virtual bool OnTryRead(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options, ref ReadStack state, [MaybeNullWhen(false)] out T value)

@ahsonkhan ahsonkhan Mar 17, 2020 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't know if this is accurate. Why was this annotation necessary?

  • T could be null when true (imagine the payload contains {"foo": null})
  • T could also be non-null when returning true (payload is {"foo": "hello"})
  • T could be null when false

Questions:

  • I don't know whether T can be non-null when returning false or if it is guaranteed to be null when returning false
  • I don't know when OnTryRead is intended to return false.

@steveharter - what is the intent here of this design and how do components that override this virtual behave?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I added this because all implementations of this virtual except: https://github.com/dotnet/runtime/blob/master/src/libraries/System.Text.Json/src/System/Text/Json/Serialization/Converters/Value/KeyValuePairConverter.cs#L27 have this attribute and roslyn was complaining on the ones that had it because it didn't math the overriden member.

To me this makes the most sense since it is a virtual. This is saying, even if the T is non-nullable it might be null when returning false.

cc: @stephentoub

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To me this makes the most sense since it is a virtual. This is saying, even if the T is non-nullable it might be null when returning false.

Sounds good to me. Thanks.

@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

@stephentoub @buyaa-n @davidsh @scalablecory PTAL at commit e65e8e8

@dotnet-maestro

dotnet-maestro Bot commented Mar 17, 2020 •

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: runtime (Libraries Test Build OSX x64 Debug), runtime (Formatting Windows_NT x64)
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.

}

if (nextAuthority == null && value.AlpnProtocolName == "h3")
if (nextAuthority == null && value != null && value.AlpnProtocolName == "h3")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@scalablecory it seems like value could null ref here because the Parser we are using support multiple values, so TryParseValue might return true and parsedValue could be null if altSvcHeaderValue is null or empty:
https://github.com/dotnet/runtime/blob/master/src/libraries/System.Net.Http/src/System/Net/Http/Headers/BaseHeaderParser.cs#L40

Please confirm this fix is correct.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks correct to me. I'll add a test in a later PR.

@BrennanConroy

Copy link
Copy Markdown
Member

More errors. Is this because of the mono/linker update? Can we split this PR so that we can just update dotnet/arcade independently in order to unblock Runtime publish and as a result the random AspNetCore test crashes/failures?

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: runtime (Libraries Test Build OSX x64 Debug), runtime (Formatting Windows_NT x64)
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.

@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

More errors. Is this because of the mono/linker update?

The Test build is because of nullability as well. Working on those now. The formatting job, I'm not sure, if the linker update is causing any errors I'll remove it, but I don't think is related. I think I should be able to merge this today.

@dotnet-maestro

dotnet-maestro Bot commented Mar 17, 2020 •

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: runtime (Formatting Windows_NT x64)
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.

@Pilchie

Pilchie commented Mar 17, 2020

Copy link
Copy Markdown
Member

It looks like Formatting failed again.

@dotnet-maestro

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: runtime (Formatting Windows_NT x64)
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.

@safern

safern commented Mar 17, 2020

Copy link
Copy Markdown
Member

I can confirm that formatting job has nothing to do with this changes. That just started happening because of agents update: #33693

I'm working with @MattGal on getting that fixed, but this PR shouldn't be blocked on it.

@dotnet-maestro

dotnet-maestro Bot commented Mar 17, 2020 •

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: runtime (Libraries Test Run checked coreclr OSX x64 Debug), runtime (Formatting Windows_NT x64)
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.

@safern

safern commented Mar 18, 2020

Copy link
Copy Markdown
Member

Builds seem to be getting close to green. @stephentoub does the nullability changes look good?

@dotnet-maestro

dotnet-maestro Bot commented Mar 18, 2020 •

Copy link
Copy Markdown
Contributor Author

Auto-Merge Status

This pull request has not been merged because Maestro++ is waiting on the following merge policies.

  • ❌ Standard Merge Policies Unsuccessful checks: runtime (Libraries Test Run checked coreclr OSX x64 Debug), runtime (Formatting Windows_NT x64), runtime
  • ✔️ Standard Merge Policies Succeeded - No reviews have requested changes.

@safern

safern commented Mar 18, 2020

Copy link
Copy Markdown
Member

Failures are unrelated.
Formatting job is: #33693
Libraries Test Run is: #30056

Will go ahead and merge to unblock official builds and aspnet extensions repo, any follow up feedback related to nullable annotations, I will address in a separate PR.

@safern
safern merged commit 365c916 into master Mar 18, 2020
@safern
safern deleted the darc-master-3a3f1e38-a2ca-4b93-b65d-71c8583b52b1 branch March 18, 2020 01:30
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
@danmoseley danmoseley added area-codeflow for labeling automated codeflow and removed area-Infrastructure-libraries labels Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-codeflow for labeling automated codeflow

Projects

None yet

Development

Successfully merging this pull request may close these issues.