-
Notifications
You must be signed in to change notification settings - Fork 353
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 .NET SDK to Preview 2 #8624
Conversation
@carlossanlop @hoyosjs Does that core dump when running p2 on ubuntu-latest look familiar at all?
|
Not really. Also @bartonjs, given the missing libssl symbol... It's 20.04 with OpenSSL 1.1.1f, which I expect to have said symbols... |
I also can't repro with openssl 1.1.1f-1ubuntu2.12 amd64 on 20.04:
That missing method would definitely cause that... but seems like a custom build of libssl in the agent? Is there a way to get a hold of the image? |
Interesting. @MattGal @dotnet/dnceng, I know we had a set of images created that mirror the hosted pool images. Is there one for ubuntu-latest or whatever that maps too? |
I didn't make a "latest" tag though that's possible if we think it's really valuable. You can see them at the bottom of https://helix.dot.net/. 20.04 is currently the same as latest per https://github.com/actions/virtual-environments. You want |
We are using Ubuntu 14: which is out of support in .NET 6: https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md#linux I think we should be using 18.04 or 20.04, to match runtime pipelines? |
Ideally yes, but note that the docker image you build inside is independent of the build agent... that is, if you have some valid reason to be using Ubuntu 14.04 (I'm interested in knowing it) you can update the agent and keep using the ancient container as long as you like. Barring a good reason, you should be updating to at least a "Pro" supported 16.04 or 18.04 as soon as reasonably possible though. |
If the build is failing inside Ubuntu 14, that will explain the reason of missing symbol. See this workaround for Ubuntu 14: https://gist.github.com/am11/11b8f526747c5ad12c9a74e7765e14a4#file-dockerfile-L12. We already deleted trusty setup in #7694, just need to update container references in pipelines to use something more recent (i.e. one of the supported version of Ubuntu). |
The SDK itself no longer supports 14.04, so running inside the 14.04 container wouldn't necessarily be expected to work. I've updated to the cotnainer the runtime uses for linux x64 |
Actually - we should just update. Arcade has no native deps and it's using |
@MattGal This looks a bit puzzling. It's looking for aspnetcore but using the version of the core runtime. I think this is because this line https://github.com/dotnet/arcade/pull/8624/files#diff-8ab8c282f3d9822870eee0d25497d5ed8a335820fe03b6194b2dce937e1ca321L9 has an empty Does this look familiar or should I dig further? |
Not instantly familiar but I'm taking a peek |
@@ -2,7 +2,7 @@ | |||
<PropertyGroup> | |||
<IncludeDotNetCli Condition=" '$(IncludeDotNetCli)' != 'true' ">false</IncludeDotNetCli> | |||
<!-- TODO (https://github.com/dotnet/arcade/issues/7787): When bumping this, we should do #7787 --> | |||
<AspNetCoreRuntimeVersion>6.0.0</AspNetCoreRuntimeVersion> | |||
<AspNetCoreRuntimeVersion>7.0.0-preview.2.22153.2</AspNetCoreRuntimeVersion> |
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.
This isn't meant to be a preview / unstable version, rather it's what Xharness expects. I don't think you should rev the version here until 7.0.0 is GA
@@ -4,7 +4,7 @@ | |||
<IncludeDotNetCli>true</IncludeDotNetCli> | |||
<IncludeXHarnessCli>true</IncludeXHarnessCli> | |||
<XHarnessTargetFramework Condition=" '$(XHarnessTargetFramework)' == '' ">net6.0</XHarnessTargetFramework> | |||
<DotNetCliVersion Condition=" '$(DotNetCliVersion)' == '' ">6.0.100</DotNetCliVersion> | |||
<DotNetCliVersion Condition=" '$(DotNetCliVersion)' == '' ">7.0.100-preview.2.22153.17</DotNetCliVersion> |
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.
Same comment here... this is specific to Xharness, it doesn't need to be on the preview bleeding edge.
@MattGal No dice on reverting the xharness SDK (either both It appears that the SDK knows the runtime tied to the SDK in the global.json, and that's ending up as DotNetCliVersion. |
/cc @premun to make sure you are aware of this once you are back |
Rats, I thought we honored the version in the .targets. It might just be that you need the other work coming in from @chcosta , but I defer to @premun for the XHarness Xpertise |
XHarness flows are in no way special really. They just utilize the There should also be some unit test somewhere testing that the We can also use the full SDK with XHarness and things will work as well (seems to be hinted in #7787). We can try taking this: <PropertyGroup Condition=" '$(IncludeXHarnessCli)' == 'true' ">
<IncludeDotNetCli>true</IncludeDotNetCli>
<XHarnessTargetFramework Condition=" '$(XHarnessTargetFramework)' == '' ">net6.0</XHarnessTargetFramework>
<DotNetCliVersion Condition=" '$(DotNetCliVersion)' == '' ">6.0.100</DotNetCliVersion>
<DotNetCliPackageType Condition=" '$(DotNetCliPackageType)' != 'sdk' ">sdk</DotNetCliPackageType>
</PropertyGroup> We can then bump |
src/Microsoft.DotNet.Helix/Sdk/tools/xharness-runner/XHarnessRunner.targets
Outdated
Show resolved
Hide resolved
…unner.targets Co-authored-by: Přemek Vysoký <premek.vysoky@microsoft.com>
@premun No dice :/ |
Where does that number come from? |
That's the dotnet runtime that is within the SDK specified in global.json |
Is this it? I think this boils down again to our |
Why does it want the runtime version when we specify SDK? |
@premun |
@mmitche I am afraid your last solution won't work once XHarness consumes newest Arcade, it will be built with .NET 7 and start requiring .NET 7 runtime/sdk to be run |
In DotNetCli.props:
|
When is this slated to happen? Maybe we just wait till that flows into here and then we update? |
We can totally do it in sync, this is not a big deal at all. I am more worried about the non-XHarness usages of Helix SDK which will probably still suffer from this behaviour when trying to install the SDK because something is probably broken there? Feel free to merge this, I can do the XHarness bump tomorrow and bump it here as well. |
k just waiting for review then. |
@mmitche fyi that this is stuck in arcade-validation: dotnet/arcade-validation#3022 I'm going to try and .net 7 all the things there real quick and if it's not straightforward I'll have FR take a look |
It's unblocked now |
To double check: