Skip to content
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

Azure DevOps and GitHub Actions should warn when an old SDK is used #20250

Open
richlander opened this issue Aug 27, 2021 · 2 comments
Open

Azure DevOps and GitHub Actions should warn when an old SDK is used #20250

richlander opened this issue Aug 27, 2021 · 2 comments
Milestone

Comments

@richlander
Copy link
Member

richlander commented Aug 27, 2021

In a recent incident, we found that users were running into troubles solely because they were using old SDKs. I suspect a lot of folks use old SDKs and don't move because they don't know they should.

The following is the log that one of the users shared. I've updated with the text that I think would be helpful to share.

Starting: Use .NET Core SDK 5.0.102
==============================================================================
Task         : Use .NET Core
Description  : Acquires a specific version of the .NET Core SDK from the internet or the local cache and adds it to the PATH. Use this task to change the version of .NET Core used in subsequent tasks. Additionally provides proxy support.
Version      : 2.191.0
Author       : Microsoft Corporation
Help         : https://aka.ms/AA4xgy0
==============================================================================
Tool to install: .NET Core sdk version 5.0.102.
Found version 5.0.102 in channel 5.0 for user specified version spec: 5.0.102
Version 5.0.102 no longer supported. You should move to 5.0.400.
Version 5.0.102 was not found in cache.
Getting URL to download .NET Core sdk version: 5.0.102.

This is the line I added: Version 5.0.102 no longer supported. You should move to 5.0.400.

We could change it in various ways, like prepending Warning: or even adding an aka.ms link the tells you which fixes are in 5.0.400. Here's an alternate idea.

Warning: version 5.0.102 no longer supported. You should move to 5.0.400.
Learn more about .NET 5 SDKs at https://someURL.

I realize that this fix need to go into the .NET task and action for Azure DevOps and GitHub Actions, respectively. We should decide on what we want here and then contact those teams. It is also likely that we are missing the information that would be needed in release.json to enable this flow.

@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Request triage from a team member label Aug 27, 2021
@joeloff
Copy link
Member

joeloff commented Aug 2, 2023

We do have the information available. The SDK version can be checked against all the SDKs of the latest .NET release for the major.minor. For example, if the user is running on 5.0.102, but the latest 5.0 release (5.0.17) only included the 5.0.408 and 5.0.214 SDKs, we can determine that the 1xx featureband is not being updated. It would only work in online scenarios to retrieve the information.

@marcpopMSFT marcpopMSFT added this to the Backlog milestone Nov 14, 2023
@marcpopMSFT marcpopMSFT removed the untriaged Request triage from a team member label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants