Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Commit

Permalink
Merge pull request #14126 from jashook/use_new_x64_client
Browse files Browse the repository at this point in the history
Add support for priority and update x64 client
  • Loading branch information
Jarret Shook authored Sep 22, 2017
2 parents 698ed0e + 9a00090 commit 6165f9e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/scripts/arm64_post_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

g_arm64ci_path = os.path.join(os.environ["USERPROFILE"], "bin")
g_dotnet_url = "https://clrjit.blob.core.windows.net/arm64ci/dotnet-sdk.zip"
g_x64_client_url = "https://clrjit.blob.core.windows.net/arm64ci/x64_client_2_0_update.zip"
g_x64_client_url = "https://clrjit.blob.core.windows.net/arm64ci/x64_client_arm_proxy_change.zip"

################################################################################
# Argument Parser
Expand All @@ -54,6 +54,7 @@
parser.add_argument("-build_type", dest="build_type", nargs='?', default=None)
parser.add_argument("-scenario", dest="scenario", nargs='?', default=None)
parser.add_argument("-key_location", dest="key_location", nargs='?', default=None)
parser.add_argument("-priority", dest="priority", nargs='?', default="1")

################################################################################
# Helper Functions
Expand Down Expand Up @@ -228,6 +229,7 @@ def validate_args(args):
build_type = args.build_type
scenario = args.scenario
key_location = args.key_location
priority = args.priority
force_update = True

def validate_arg(arg, check):
Expand All @@ -249,6 +251,7 @@ def validate_arg(arg, check):
valid_arches = ["arm", "arm64"]
valid_testarches = ["arm", "armlb", "arm64"]
valid_build_types = ["debug", "checked", "release"]
valid_priorities = ["0", "1"]

# Use the same naming scheme as netci.groovy, so, e.g., "0x10" instead of just "10".
valid_jit_stress_regs_numbers = ["1", "2", "3", "4", "8", "0x10", "0x80", "0x1000"]
Expand Down Expand Up @@ -295,21 +298,23 @@ def validate_arg(arg, check):
validate_arg(scenario, lambda item: item.lower() in valid_scenarios)
validate_arg(key_location, lambda item: os.path.isfile(item))
validate_arg(force_update, lambda item: isinstance(item, bool))
validate_arg(priority, lambda: item: item in valid_priorities)

arch = arch.lower()
testarch = testarch.lower()
build_type = build_type.lower()
scenario = scenario.lower()

args = (repo_root, arch, testarch, build_type, scenario, key_location, force_update)
args = (repo_root, arch, testarch, build_type, scenario, key_location, priority, force_update)

log("Passed args: "
"Repo Root: %s, "
"Build Arch: %s, "
"Test Arch: %s, "
"Config: %s, "
"Scenario: %s, "
"Key Location: %s" % (repo_root, arch, testarch, build_type, scenario, key_location))
"Priority: %s "
"Key Location: %s" % (repo_root, arch, testarch, build_type, scenario, priority, key_location))

return args

Expand All @@ -320,7 +325,7 @@ def validate_arg(arg, check):
def main(args):
global g_arm64ci_path

repo_root, arch, testarch, build_type, scenario, key_location, force_update = validate_args(args)
repo_root, arch, testarch, build_type, scenario, key_location, priority, force_update = validate_args(args)

cwd = os.getcwd()
os.chdir(repo_root)
Expand Down Expand Up @@ -365,6 +370,8 @@ def main(args):
if testarch == "arm":
scenario = "ryujit_" + scenario

scenario = priority + scenario

args = ["dotnet",
os.path.join(g_arm64ci_path, "x64_client.dll"),
arch,
Expand Down

0 comments on commit 6165f9e

Please sign in to comment.