{"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/60108ba66eb7d1d12f595480091b4ad80a24b172/src/coreclr/scripts/superpmi_aspnet.py#L93-L129","documentation":"Raised by determine_benchmark_machine() at src/coreclr/scripts/superpmi_aspnet.py:111 when arch is 'arm64' but host_os is not 'linux'. The only arm64 benchmark machine configured is aspnet-citrine-arm (Linux).","triggerScenarios":"Invoking superpmi_aspnet.py with -arch arm64 on Windows or macOS.","commonSituations":"Running the arm64 aspnet benchmark collection from a Windows arm64 or Apple Silicon macOS machine.","solutions":["Run the arm64 aspnet collection on a Linux arm64 machine or Helix queue.","Target a remote Linux arm64 crank agent instead of a local Windows/macOS run."],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if coreclr_args.arch == 'arm64' and coreclr_args.host_os != 'linux':\n    raise SystemExit('arm64 aspnet benchmark collection requires a Linux host')","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Verify host_os == 'linux' before calling determine_benchmark_machine() for arm64 builds."],"tags":["dotnet","coreclr","superpmi","benchmarks","os-detection","arm64"],"backgroundTag":null,"analyzedSha":"60108ba66eb7d1d12f595480091b4ad80a24b172","analyzedAt":"2026-08-10T18:54:11.478Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}