{"record":{"id":"be8c20a0140f85ad","repo":"SeleniumHQ/selenium","slug":"no-chrome-download-found-for-platform-linux64","errorCode":null,"errorMessage":"No Chrome download found for platform 'linux64'","messagePattern":"No Chrome download found for platform 'linux64'","errorType":"exception","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"scripts/pinned_browsers.py","lineNumber":113,"sourceCode":"\njs_library(\n    name = \"chromedriver-js\",\n    data = [\"chromedriver\"],\n)\n\\\"\\\"\\\",\n    )\n\"\"\"\n\n    return content\n\n\ndef chrome(selected_version, workspace_prefix=\"\"):\n    content = \"\"\n    chrome_downloads = selected_version[\"downloads\"][\"chrome\"]\n\n    url = next((d[\"url\"] for d in chrome_downloads if d[\"platform\"] == \"linux64\"), None)\n    if url is None:\n        raise ValueError(\"No Chrome download found for platform 'linux64'\")\n    sha = calculate_hash(url)\n\n    content += f\"\"\"\n    http_archive(\n        name = \"linux_{workspace_prefix}chrome\",\n        url = \"{url}\",\n        sha256 = \"{sha}\",\n        build_file_content = \\\"\\\"\\\"\nload(\"@aspect_rules_js//js:defs.bzl\", \"js_library\")\npackage(default_visibility = [\"//visibility:public\"])\n\nfilegroup(\n    name = \"files\",\n    srcs = glob([\"**/*\"]),\n)\n\nexports_files([\"chrome-linux64/chrome\"])\n","sourceCodeStart":95,"sourceCodeEnd":131,"githubUrl":"https://github.com/SeleniumHQ/selenium/blob/aa36b38e696a0909e973bdf5e2f9031ffe842c4b/scripts/pinned_browsers.py#L95-L131","documentation":"Raised by the chrome() function in pinned_browsers.py when the selected Chrome version's downloads JSON contains no 'chrome' entry with platform 'linux64'. The function searches chrome_downloads (selected_version['downloads']['chrome']) for d['platform'] == 'linux64'.","triggerScenarios":"Running pinned_browsers.py when Chrome-for-Testing has not published a linux64 Chrome binary for the target milestone; JSON schema change; the milestone filter selected a version without linux64 Chrome downloads.","commonSituations":"Release transition window; upstream JSON format change; CI timing during Google's release cycle; network issue returning a partial/truncated JSON response.","solutions":["Retry after a delay — linux64 Chrome may appear shortly.","Verify the JSON payload manually to confirm linux64 Chrome exists for the milestone.","Update the script if the platform key or download structure changed upstream."],"exampleFix":"null","handlingStrategy":"validation","validationCode":"chrome_downloads = selected_version['downloads']['chrome']\nplatforms = [d['platform'] for d in chrome_downloads]\nif 'linux64' not in platforms:\n    print(f'linux64 not in available platforms: {platforms}')","typeGuard":"null","tryCatchPattern":"null","preventionTips":["Verify the Chrome-for-Testing JSON has linux64 Chrome before running.","Run after full milestone propagation.","Retry for transient missing platforms."],"tags":["selenium","build-script","pinned-browsers","chrome","linux64","ci"],"backgroundTag":null,"analyzedSha":"aa36b38e696a0909e973bdf5e2f9031ffe842c4b","analyzedAt":"2026-08-14T02:32:32.244Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}