Skip to content

Commit

Permalink
Add nativeaot9.0 runs and some other 9.0 framework parsing support (#…
Browse files Browse the repository at this point in the history
…3587)

Added net9.0 support to moniker retrieval in ResultsComparer, added nativeaot9.0 to the channel map, and added run for nativeaot9.0.
  • Loading branch information
LoopedBard3 authored Dec 12, 2023
1 parent a6a6828 commit 51d85c3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ jobs:
runCategories: 'runtime libraries'
channels:
- main
- nativeaot9.0
- nativeaot8.0
- 8.0

Expand Down
5 changes: 5 additions & 0 deletions scripts/channel_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ class ChannelMap():
'branch': '9.0',
'quality': 'daily'
},
'nativeaot9.0': {
'tfm': 'nativeaot9.0',
'branch': '9.0',
'quality': 'daily'
},
'8.0': {
'tfm': 'net8.0',
'branch': '8.0',
Expand Down
2 changes: 2 additions & 0 deletions scripts/dotnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def get_target_framework_moniker(framework: str) -> str:
return 'net7.0'
if framework == 'nativeaot8.0':
return 'net8.0'
if framework == 'nativeaot9.0':
return 'net9.0'
else:
return framework

Expand Down
10 changes: 9 additions & 1 deletion src/tools/ResultsComparer/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,14 @@ private static string GetMoniker(string key)
return "nativeaot8.0-preview" + key[key.IndexOf("nativeaot8.0-preview") + "nativeaot8.0-preview".Length];
if (key.Contains("net8.0"))
return "net8.0";
if (key.Contains("net9.0-preview"))
return "net9.0-preview" + key[key.IndexOf("net9.0-preview") + "net9.0-preview".Length];
if (key.Contains("net9.0-rc"))
return "net9.0-rc" + key[key.IndexOf("net9.0-rc") + "net9.0-rc".Length];
if (key.Contains("nativeaot9.0-preview"))
return "nativeaot9.0-preview" + key[key.IndexOf("nativeaot9.0-preview") + "nativeaot9.0-preview".Length];
if (key.Contains("net9.0"))
return "net9.0";

return null;
}
Expand All @@ -167,7 +175,7 @@ private static string GetSimplifiedProcessorName(string processorName)
if (segment[0] == 'i' || segment[0] == 'E') // things like i7-8700 or E5530
return segment.Replace("-", "");
if (segment.EndsWith("CL")
|| segment.EndsWith("X") // things like AMD 3945WX or 5900X
|| segment.EndsWith("X") // things like AMD 3945WX or 5900X
|| segment.StartsWith("SQ") // things like SQ1
|| segment.StartsWith("M1")
|| segment.StartsWith("ARM")) // things like ARMv7
Expand Down

0 comments on commit 51d85c3

Please sign in to comment.