{"record":{"id":"14f3ab94bfd4585e","repo":"SeleniumHQ/selenium","slug":"no-chrome-download-found-for-platform-mac-arm64","errorCode":null,"errorMessage":"No Chrome download found for platform 'mac-arm64'","messagePattern":"No Chrome download found for platform 'mac-arm64'","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"scripts/pinned_browsers.py","lineNumber":142,"sourceCode":"\nfilegroup(\n    name = \"files\",\n    srcs = glob([\"**/*\"]),\n)\n\nexports_files([\"chrome-linux64/chrome\"])\n\njs_library(\n    name = \"chrome-js\",\n    data = [\":files\"],\n)\n\\\"\\\"\\\",\n    )\n\"\"\"\n\n    url = next((d[\"url\"] for d in chrome_downloads if d[\"platform\"] == \"mac-arm64\"), None)\n    if url is None:\n        raise ValueError(\"No Chrome download found for platform 'mac-arm64'\")\n    sha = calculate_hash(url)  # Calculate SHA for Mac chrome\n\n    content += f\"\"\"    http_archive(\n        name = \"mac_{workspace_prefix}chrome\",\n        url = \"{url}\",\n        sha256 = \"{sha}\",\n        strip_prefix = \"chrome-mac-arm64\",\n        patch_cmds = [\n            \"mv 'Google Chrome for Testing.app' Chrome.app\",\n            \"mv 'Chrome.app/Contents/MacOS/Google Chrome for Testing' Chrome.app/Contents/MacOS/Chrome\",\n        ],\n        build_file_content = \\\"\\\"\\\"\nload(\"@aspect_rules_js//js:defs.bzl\", \"js_library\")\npackage(default_visibility = [\"//visibility:public\"])\n\nexports_files([\"Chrome.app\"])\n\njs_library(","sourceCodeStart":124,"sourceCodeEnd":160,"githubUrl":"https://github.com/SeleniumHQ/selenium/blob/aa36b38e696a0909e973bdf5e2f9031ffe842c4b/scripts/pinned_browsers.py#L124-L160","documentation":"Raised by the chrome() function in pinned_browsers.py when the selected Chrome version's downloads JSON contains no 'chrome' entry with platform 'mac-arm64'. Searches chrome_downloads for d['platform'] == 'mac-arm64' and raises if no match.","triggerScenarios":"Running pinned_browsers.py when Chrome-for-Testing has not published a mac-arm64 Chrome binary for the target milestone; platform identifier changed upstream; milestone predates mac-arm64 availability.","commonSituations":"Release transition; schema change; CI timing during milestone rollout.","solutions":["Retry after a delay.","Verify the JSON payload for mac-arm64 availability.","Update the platform filter if upstream naming changed."],"exampleFix":"null","handlingStrategy":"validation","validationCode":"chrome_downloads = selected_version['downloads']['chrome']\nplatforms = [d['platform'] for d in chrome_downloads]\nif 'mac-arm64' not in platforms:\n    print(f'mac-arm64 not in available platforms: {platforms}')","typeGuard":"null","tryCatchPattern":"null","preventionTips":["Verify the Chrome-for-Testing JSON has mac-arm64 Chrome before running.","Run after full milestone propagation.","Retry for transient missing platforms."],"tags":["selenium","build-script","pinned-browsers","chrome","mac-arm64","ci"],"backgroundTag":null,"analyzedSha":"aa36b38e696a0909e973bdf5e2f9031ffe842c4b","analyzedAt":"2026-08-14T02:32:32.244Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}