Skip to content

Unable to run performance tests against SDK version that is earlier than in global.json #4355

Open
@caaavik-msft

Description

@caaavik-msft

We get the version of the SDK to use for our MAUI scenarios runs using https://maui.blob.core.windows.net/metadata/sdks/net9.0.json.
At the time of this issue, the SDK version that this JSON reports is 9.0.100-preview.5.24304.3 but the version of the SDK that we have in our global.json is 9.0.100-preview.5.24307.3. Because this version is earlier, when we install the MAUI SDK locally with the dotnet install script, it gets ignored. This surfaces in our build pipeline when we try to extract the "Base Path" from the output of dotnet --info, but that information is missing from the command output. An example failure can be seen here: link

I am not sure what the right solution here is, whether it is just that whenever we get a PR from maestro to change the SDK version that we need to wait for the MAUI version to be updated first, or if there is a safer long term solution that means we don't need to worry about checking for that.

Activity

caaavik-msft

caaavik-msft commented on Jul 31, 2024

@caaavik-msft
ContributorAuthor

I realise now this will likely get resolved with #4321 when it is completed, but not sure if that will always guarantee the SDK version used for MAUI runs will be allowed with what we have in global.json

LoopedBard3

LoopedBard3 commented on Jul 31, 2024

@LoopedBard3
Member

I realise now this will likely get resolved with #4321 when it is completed, but not sure if that will always guarantee the SDK version used for MAUI runs will be allowed with what we have in global.json

I think that is true that it will at least be fixed temporarily for that. A potential solution may be to update/remove the global.json when we are grabbing a non-default dotnet version. Not great but that would work if we think we are ever going to be testing with sdk behind main.

changed the title [-]MAUI scenarios fail when SDK version is earlier than what is in global.json[/-] [+]Unable to run performance tests against SDK version that is earlier than in global.json[/+] on Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @LoopedBard3@caaavik-msft

    Issue actions

      Unable to run performance tests against SDK version that is earlier than in global.json · Issue #4355 · dotnet/performance