-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update build tools #8528
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 build tools #8528
Conversation
|
I'm blocked on how to fix this here. The problem looks like https://github.com/aspnet/BuildTools/blob/release/2.2/files/KoreBuild/KoreBuild.Common.props#L38 where the normalized directory RepositoryRoot somehow ends up with a |
|
@anurse since the problem you're having is Windows-specific, it's more likely the problem is in the PowerShell files. Having a look at https://dev.azure.com/dnceng/_apis/resources/Containers/1248307?itemPath=artifacts-Windows-Release%2Flogs%2Fmsbuild.rsp, I see |
|
I made some changes here in https://github.com/aspnet/BuildTools/pull/943/files#diff-6e1b5dc361d448d7a7e81c27825c08a1R297 that may be affecting things here, but in general, the It's possible my change made things a little funky though. The I also added logic to strip the trailing |
|
Ignore my previous comment. I tried to build locally and as @anurse described, anything other than |
|
Looks like the version of build tools used by EF is out of date. Will try to update that and see if it fixes this build. dotnet/efcore#15036 |
|
@JunTaoLuo bumping up BuildTools in EF Core was all well and good. But, how does that affect AspNetCore? I'd expect the submodule to be built using the version chosen here and / or for EF to use its version but not affect the larger build. |
* Handle OPTIONS requests without a handler in Razor Pages Fixes dotnet#7438
|
In any case, the EF Core change is in. Need to rev the submodule here to pick that up. |
|
@smitpatel @ajcvickers this picks up the #14887 fix. Without the submodule update, that change would not have shipped. |
|
Looks as if the blob store containing the JDKs we need on Linux and Windows went awry. Hopefully this is temporary and that builds succeed on a retry. |
|
Yea I figured. Already triggered retries. |
|
@JunTaoLuo will need another AspNetCore-pr-validation-temp retry once Linux build completes: |
|
This comment was made automatically. If there is a problem contact ryanbrandenburg. I've triaged the above build. |
Path must not contain trailing slashes apparently
|
Ok apparently the buildtools scripts were updated so they were relying on no trailing slashes but 2.2 submodule builds didn't get the memo. Fixed the submodule build scripts and the build is passing on a local repro. |
|
Excellent ❕ Passed the debugging and back to real PR validations. Sad note that the Windows validation is stuck behind 23 other jobs in AzDO. |
|
|
||
| <Exec | ||
| Command="./$(_BuildScriptToExecute) -Path $(BuildRepositoryRoot) $(BuildArguments)" | ||
| Command="./$(_BuildScriptToExecute) -Path $(BuildRepositoryRoot.TrimEnd('\')) $(BuildArguments)" |
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.
Trimming here since the _BuildScriptToExecute expects no trailing slashes but everywhere else in this targets file the BuildRepositoryRoot is used to compute other paths and require a trailing slash. I'm not gonna try to make things more consistent and will just fix the path issues whenever they come up in the easiest way possible. AKA I'm gonna take the lazy approach.
|
@JunTaoLuo the AspNetCore-pr-validation-temp got to test signing but that failed with a new error: Are we now passed one problem but hitting another? The AspNetCore-ci failed much earlier due to a known flaky build error -- projects build out of order sometimes. I restarted both builds in hopes we see Windows success somewhere! |
|
Looks like this change is necessary but not sufficient. Seeing the |
|
My theory is that we need to update the version of Internal.AspNetCore.Sdk when we update the build tools version. Gonna look through the history to see how the version numbers are correlated. |
e0c8db2 to
e736a9a
Compare
|
This comment was made automatically. If there is a problem contact ryanbrandenburg. I've triaged the above build. |
|
Finally got a local repro for this behaviour. Seems like the failure occurs when trying to sign System.Private.CoreLib.dll. Are we supposed to sign this binary? Or is it supposed to be ignored? I'll scour the targets a bit more tomorrow to see if I can find some clues. |
System.Private.CoreLib.dll is a native assembly. Every .NET Core application loads it. From the error message, I suspect the app is trying to load this assembly and not sign it. Could have trouble loading if the chosen copy of Microsoft.DotNet.SignTool.dll is picked from the wrong SignTool/tools directory (net461 versus netcoreapp2.0) or if the Microsoft.DotNet.SignTool.deps.json file (if running in |
…ign with KoreBuild
|
Okay thanks. |
|
Looks like one of our updates to the Microsoft.DotNet.SignTool broke our signing. From the binlog I see: The CertificateName attribute of the file is set to This means two possible issues:
Actions we can take to resolve this issue:
|
|
/cc @JohnTortugo @tmat for potential signtool issue |
|
Looking into it |
|
@JunTaoLuo I couldn't check which version of SignTool you're using, but I assume you are using something built before this PR got merged: dotnet/arcade#2170 Could you please try using the latest version of SignTool? |
|
Oh my, a windows test is passing! I think we finally made it. |
|
Woohoo we did it @dougbu to merge. |
Addresses: https://github.com/aspnet/AspNetCore-Internal/issues/1923. Turns out this was already fixed by @natemcmaster (Thanks!) in aspnet/BuildTools@b631cb7.