{"record":{"id":"413322d8f9e36d05","repo":"dotnet/runtime","slug":"invalid-os-for-arm64","errorCode":null,"errorMessage":"Invalid OS for arm64.","messagePattern":"Invalid OS for arm64\\.","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"src/coreclr/scripts/superpmi_aspnet.py","lineNumber":111,"sourceCode":"        coreclr_args (CoreclrArguments): parsed args\n\n    Return:\n        (str) : name of the benchmnark machine\n    \"\"\"\n\n    if coreclr_args.arch == \"x64\":\n        if coreclr_args.host_os == \"windows\":\n            return \"aspnet-perf-win\"\n#            return \"aspnet-citrine-win\"\n        elif coreclr_args.host_os == \"linux\":\n            return \"aspnet-perf-lin\"\n        else:\n            raise RuntimeError(\"Invalid OS for x64.\")\n    elif coreclr_args.arch == \"arm64\":\n        if coreclr_args.host_os == \"linux\":\n            return \"aspnet-citrine-arm\"\n        else:\n            raise RuntimeError(\"Invalid OS for arm64.\")\n    else:\n        raise RuntimeError(\"Invalid arch.\")\n\ndef build_and_run(coreclr_args):\n    \"\"\"Run perf scenarios under crank and collect data with SPMI\"\n\n    Args:\n        coreclr_args (CoreClrArguments): Arguments use to drive\n        output_mch_name (string): Name of output mch file name\n    \"\"\"\n    source_directory = coreclr_args.source_directory\n    target_arch = coreclr_args.arch\n    target_os = coreclr_args.host_os\n\n    checked_root = path.join(source_directory, \"artifacts\", \"bin\", \"coreclr\", target_os + \".\" + coreclr_args.arch + \".Checked\")\n    release_root = path.join(source_directory, \"artifacts\", \"bin\", \"coreclr\", target_os + \".\" + coreclr_args.arch + \".Release\")\n\n    # We'll use repo script to install dotnet","sourceCodeStart":93,"sourceCodeEnd":129,"githubUrl":"https://github.com/dotnet/runtime/blob/290d5ab72cc1102813fbc0406fb186ceadabc340/src/coreclr/scripts/superpmi_aspnet.py#L93-L129","documentation":"Raised by determine_benchmark_machine in superpmi_aspnet.py when arch=='arm64' and host_os != 'linux'. Only an arm Linux crank machine (aspnet-citrine-arm) is provisioned.","triggerScenarios":"coreclr_args.arch=='arm64' with host_os in {'windows','osx',...}.","commonSituations":"Windows/arm64 or macOS/arm64 selected in the pipeline; Architecture=arm64 but TargetOS unset/defaulted to windows.","solutions":["Use the supported combo: --arch arm64 --host_os linux.","If you need arm64 perf on another OS, route to a different scenario/machine pool.","Fix the YAML matrix entry."],"exampleFix":"// before\n# --arch arm64 --host_os windows -> raises [189]\n// after\n--arch arm64 --host_os linux","handlingStrategy":"validation","validationCode":"if coreclr_args.arch == 'arm64' and coreclr_args.host_os != 'linux':\n    raise SystemExit(f'arm64 benchmarks only support linux, got {coreclr_args.host_os}')","typeGuard":"def arm64_os_supported(arch: str, host_os: str) -> bool:\n    return arch != 'arm64' or host_os == 'linux'","tryCatchPattern":"try:\n    determine_benchmark_machine(coreclr_args)\nexcept RuntimeError as e:\n    if 'Invalid OS for arm64' in str(e):\n        raise SystemExit('set --host_os linux for arm64 benchmarks')","preventionTips":["Pin arm64 perf jobs to linux","Validate arch×os before submit","Document supported combos in the pipeline"],"tags":["cross-platform","configuration","aspnet","arm64","benchmarks"],"analyzedSha":"290d5ab72cc1102813fbc0406fb186ceadabc340","analyzedAt":"2026-08-06T19:57:01.276Z","schemaVersion":2},"datasetVersion":"2026-08-06T23:17:07.152Z"}