-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Update SDK #47540
Update SDK #47540
Conversation
In the closed PR I changed only global.js file. There were a lot of exceptions saying "Use 'ArgumentOutOfRangeException.ThrowIfEqual' instead of explicitly throwing a new exception instance": I updated SDK and used ArgumentOutOfRangeException.ThrowIfEqual in this PR. Now checks are failing saying "'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfEqual'" @BrennanConroy, @wtgodbe could you please help me? |
Well We should ignore the rule in our .editorconfig file and file an issue to fix it when the api exists. |
It looks like just one warning. IMO, suppress the warning in *.cs file with a pragma. That isolate suppression to just places that have a bad warning. Add a follow-up issue to re-enable once |
Oh good, now Helix is using the broken version of runtime D: |
Thanks a lot! I've been trying to figure out what the problem was. |
@@ -123,7 +123,9 @@ public override void Dispose() | |||
} | |||
catch (Exception ex) | |||
{ | |||
#pragma warning disable CA2017 // Parameter count mismatch | |||
Logger.LogWarning(0, "Failed to stop the server.", ex); |
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.
Why not fix it instead?
I assume it's supposed to be LogWarning(0, ex, "...")
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.
I just tried out LogWarning(0, ex, "...")
and there is no warning any more.
This is weird. Why doesn't Logger.LogWarning(0, "..", ex)
work on this line but works on line 136? @BrennanConroy what do you think?
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.
Because the warning is for {blah}
arguments in the log string not matching the passed in parameters. On line 136 there is 1 argument expected in the log, and 1 argument passed in. Although, it's also wrong because the string is using $""
. So we should fix it also. And looks like even more of the logs in this file are wrong.
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.
Thanks! I will change it to LogWarning(0, ex, "...")
then.
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.
Could you please file an issue for fixing $""
? You would describe it better than me since you have more context.
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.
It's the same change as what you're going to do for this line, move ex to be first.
Unless the analyzer breaks in that case, and then we'll probably file an issue for the analyzer.
After updating SDK to a newer version 8.0.100-preview.4.23204.1 the CA1512 suppression is no longer needed. It was the one causing warning in Now there is a new warning CA2017 "Number of parameters supplied in the logging message template do |
@@ -108,10 +108,12 @@ public TimeSpan TransportSendTimeout | |||
get => _transportSendTimeout; | |||
set | |||
{ | |||
#pragma warning disable CA1512 // Use ArgumentOutOfRangeException throw helper |
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.
Shouldn't this be fixable now since the APIs exist?
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.
I tried this but it looks like they still haven't been added?
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.
Oh that's annoying, you probably need an updated runtime as well. The APIs have definitely been added. (added 5 days ago)
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.
Something's up with maestro, we haven't had a dependency PR opened here in 4 days. I'll post in FR (CC @dotnet/dnceng)
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.
They're investigating (it's a timeout in darc), in the meantime I manually triggered the subscriptions.
It's >= 6.0, the targets are shared. |
I'm picking up from @eerhardt on the aspnetcore side and I'm trying to build up some context. I think @maraf just answered my question but @lewing how did we conclude this was 6.0-specific? |
I think the template tests are run in parallel. At least, they muck with the port numbers to avoid conflicts, which you wouldn't expect to be necessary otherwise. |
Unfortunately we don't get access to these, the template tests run from a temp dir and clean themselves up after execution |
I can't tell from this thread that we think the failures are understood/acceptable enough that we'd want to sweep them under the rug by skipping several tests. Am I missing something? Is something important blocked on this PR or is this just a priority because of how far behind it is? |
There is a reason I asked other people to take a look, I just did a quick pass and clearly misread the targets. As far as disabling vs blocking do what you think is best, the right people are aware of the issue and looking into it. |
This particular obj path is shown in 6 errors within 2s |
|
@MackinnonBuck may be able to help with the template test failures |
|
The target that triggers it is referenced in two places
The first one has a guard for nested publish, but the second one added recently with compression doesn't have it. |
This file is also opened by
|
Good catch! |
Preparing a fix in dotnet/runtime#85480 . |
Since the fix is needed in runtime, we will have to wait for that to flow all the way to installer, and update the SDK (and take any new changes that came in the meantime). Would it make sense to disable the tests for now, until the next SDK update? We have been trying to merge a new SDK in for a while. And need it to enable some AOT template tests. |
A related part of this would be to not run the target twice, which would be a good thing in general. And that should fix the failure here too, if our hypothesis is indeed correct. |
Ignore me! That file is in |
I'm supportive, but we should file an issue & link it in the build-ops handoff issue |
Is there someone that can reproduce this locally to manually verify the fix? |
Hi @lewing. It looks like you just commented on a closed PR. The team will most probably miss it. If you'd like to bring something important up to their attention, consider filing a new issue and add enough details to build context. |
#47537