Use "-Channel x.0 -Quality Daily" option with dotnet-install for configure.ps1#4289
Use "-Channel x.0 -Quality Daily" option with dotnet-install for configure.ps1#4289erdembayar merged 5 commits intodevfrom
Conversation
build/common.ps1
Outdated
| if ($Force -or -not (Test-Path $probeDotnetPath)) { | ||
| Trace-Log "$DotNetInstall -Channel $($cli.Channel) -InstallDir $($cli.Root) -Version $($cli.Version) -Architecture $arch -NoPath" | ||
| & $DotNetInstall -Channel $cli.Channel -InstallDir $cli.Root -Version $cli.Version -Architecture $arch -NoPath | ||
| $channelMainVersion = "5" |
There was a problem hiding this comment.
We should be depending on 6.0 right now, so the channel probably needs to be interpreted different.
There was a problem hiding this comment.
We specify 5.0.2xx right now, but we should be using 6.0.1xx. So we can'treally hard code 5 here.
There was a problem hiding this comment.
Sure, it need to be future proof. Here 5 is just default placeholder value, but actual value is calculated from $cli.Channel variable and override it inside foreach loop (Line 244-251). Also $cli.Channel itself is coming from build\config.props.
msbuild build\config.props /v:m /nologo /t:GetCliBranchForTesting >> release/5.0.2xx:5.0.200-servicing.21120.4
There was a problem hiding this comment.
I see.
Why should we set the placeholder value?
I'd argue we should fail if we can't fetch the correct version.
wyt?
There was a problem hiding this comment.
Yes, we should fail if something goes wrong instead of being silent about it. Please check now.
Lines 243 to 255 in ac9b29b
heng-liu
left a comment
There was a problem hiding this comment.
As we need to run dotnet integration test on Mac and Linux as well, we also install .NET SDK on Mac and Linux at https://github.com/NuGet/NuGet.Client/blob/dev/scripts/funcTests/runFuncTests.sh#L41 (version 2.2)
and https://github.com/NuGet/NuGet.Client/blob/dev/scripts/funcTests/runFuncTests.sh#L84 (version specified in config.props).
But the script we used is an old copy of dotnet-install.sh(I guess that's why we don't see the warning), since we used to have issue in downloading the dotnet-install.sh from dotnet-endpoint(see PR #3163)
Shall we consider changing for dotnet-install.sh as well? (might be in another PR if we need to do that?)
The doc of dotnet-install script shows both dotnet-install.ps1 and dotnet-install.sh have the -Quality
It looks that embedded |
How about I merge this PR as it's and create another PR for downloading the script in another PR, because smaller the PR easier to review? |
|
I'd definitely say merge it while it's green, lol :D |
Yes, I'm merging it while it's green. I assigned the other issue to myself and changed milestone for next sprint, I'll create another PR. |
…igure.ps1 (#4289) * Add -Quality Daily into dotnet-install.ps1 parameters
…igure.ps1 (#4289) * Add -Quality Daily into dotnet-install.ps1 parameters
Bug
Fixes: https://github.com/NuGet/Client.Engineering/issues/971
Regression? Last working version:
Description
Currently when we run configure.ps1 with
dotnet-install.ps1 -Channel release/5.0.2xxthen getting warning. Instead we run withdotnet-install.ps1 -Channel 5 -Quality Dailyas warning is suggesting.Before: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=5249917&view=logs&j=d80b2849-30d4-52dd-74cd-d6536ba98fe0&t=b4c8a850-ec2f-53a4-6259-6271fa5e03fb&l=25
After: Now I don't see that warning anymore.
https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5269260&view=logs&j=d80b2849-30d4-52dd-74cd-d6536ba98fe0&t=b4c8a850-ec2f-53a4-6259-6271fa5e03fb&l=20
PR Checklist
PR has a meaningful title
PR has a linked issue.
Described changes
Tests
Documentation