Skip to content

Try using helix sdk payload support instead #20876

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

Closed
wants to merge 5 commits into from
Closed

Conversation

HaoK
Copy link
Member

@HaoK HaoK commented Apr 15, 2020

No description provided.

@ghost ghost added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Apr 15, 2020
@davidfowl
Copy link
Member

Very nice! This will mean some of the work will make it to asp.net core for free 😀

@Pilchie
Copy link
Member

Pilchie commented Apr 16, 2020

👀

@davidfowl
Copy link
Member

davidfowl commented Apr 16, 2020

The only problem is that this doesn't currently support DOTNET_ROOT

@HaoK
Copy link
Member Author

HaoK commented Apr 16, 2020

What does DOTNET_LOOKUP do?

@davidfowl
Copy link
Member

What does DOTNET_LOOKUP do?

Fixed it, DOTNET_ROOT 😄

@HaoK
Copy link
Member Author

HaoK commented Apr 16, 2020

Is it a problem that we install the runtime to DOTNET_ROOT and the sdk is wherever? Alternatively, if we change things for helix to always set DOTNET_ROOT, we can just install the runtime to that variable maybe?

@davidfowl
Copy link
Member

Is it a problem that we install the runtime to DOTNET_ROOT and the sdk is wherever? Alternatively, if we change things for helix to always set DOTNET_ROOT, we can just install the runtime to that variable maybe?

Yep, that's what I'm planning to do 😄

@HaoK
Copy link
Member Author

HaoK commented Apr 16, 2020

Oh right, I can try this in my branch in your repo first

@HaoK
Copy link
Member Author

HaoK commented Apr 16, 2020

Okay some of this is starting to come back to me now... I don't think this will work, if we try to install to the correlation payloads, it will only work on windows (and even then its frowned on), and this won't work on unix since I believe those directories end up being read only, which is why our shell scripts use a random directory in the workitem root to install sdk/runtime...

@HaoK
Copy link
Member Author

HaoK commented Apr 16, 2020

I think what we need is the ability to ask for both sdk and runtime, something like

<IncludeDotNetSdk>5.0.100-preview.2.20120.3</IncludeDotNetSdk>
<IncludeDotNetRuntime>5.0.100-preview.4.1324</IncludeDotNetRuntime>

Basically move this functionality into helix/arcade so it can do the right thing in terms of a single correlation payload for each

@@ -23,6 +23,9 @@
<SkipInvalidConfigurations>true</SkipInvalidConfigurations>
<MaxRetryCount Condition="'$(MaxRetryCount)' == ''">2</MaxRetryCount>
<HelixAccessToken Condition="'$(_UseHelixOpenQueues)' != 'true'">$(HelixApiAccessToken)</HelixAccessToken>
<IncludeDotNetCli>true</IncludeDotNetCli>
<DotNetCliPackageType>sdk</DotNetCliPackageType>
<DotNetCliVersion>$(NETCoreSdkVersion)</DotNetCliVersion>
Copy link
Member

Choose a reason for hiding this comment

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

oooh this is nice. Is this new?

@HaoK
Copy link
Member Author

HaoK commented Apr 17, 2020

Okay so I guess it looks like it just 'works', our shell scripts were able to install the runtime into the DOTNET_ROOT directory 🤷

DOTNET_ROOT=/home/helixbot/work/B554096C/p/dotnet

https://helix.dot.net/api/2019-06-17/jobs/ec9c0b5c-c973-4d62-b833-2b03f02dd714/workitems/AspNetTestProject1.dll/files/console.c77b38f2.log

So I guess we just need to wait for dotnet/arcade#5284 to make it in and down to us and we can kick this PR again

@HaoK
Copy link
Member Author

HaoK commented Jul 6, 2020

Replaced by #23585

@HaoK HaoK closed this Jul 6, 2020
@HaoK HaoK deleted the haok/helix/usecli branch August 12, 2020 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants