Title: Pin a Python 3.16-compatible `cloudpickle` for the `dask` benchmark · Issue #518 · python/pyperformance · GitHub
Open Graph Title: Pin a Python 3.16-compatible `cloudpickle` for the `dask` benchmark · Issue #518 · python/pyperformance
X Title: Pin a Python 3.16-compatible `cloudpickle` for the `dask` benchmark · Issue #518 · python/pyperformance
Description: Summary bm_dask pins dask[distributed]==2024.10.0, but cloudpickle is only a transitive dependency (cloudpickle >=3.0.0). On Python 3.16, which removed the DELETE_GLOBAL opcode, cloudpickle < 3.1.3 raises KeyError: 'DELETE_GLOBAL' at imp...
Open Graph Description: Summary bm_dask pins dask[distributed]==2024.10.0, but cloudpickle is only a transitive dependency (cloudpickle >=3.0.0). On Python 3.16, which removed the DELETE_GLOBAL opcode, cloudpickle < 3.1.3...
X Description: Summary bm_dask pins dask[distributed]==2024.10.0, but cloudpickle is only a transitive dependency (cloudpickle >=3.0.0). On Python 3.16, which removed the DELETE_GLOBAL opcode, cloudpickle <...
Opengraph URL: https://github.com/python/pyperformance/issues/518
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pin a Python 3.16-compatible `cloudpickle` for the `dask` benchmark","articleBody":"## Summary\n\n`bm_dask` pins `dask[distributed]==2024.10.0`, but `cloudpickle` is only a\ntransitive dependency (`cloudpickle >=3.0.0`). On Python 3.16, which removed the\n`DELETE_GLOBAL` opcode, cloudpickle \u003c 3.1.3 raises `KeyError: 'DELETE_GLOBAL'`\nat import time, so the `dask` benchmark fails:\n\n```\nERROR: Benchmark dask failed: Benchmark died\nKeyError: 'DELETE_GLOBAL'\n```\n\ncloudpickle 3.1.3 (released 2026-11-18) fixes this\n(cloudpipe/cloudpickle#599), and new environments resolve to it. However, an\nexisting benchmark venv that already has cloudpickle 3.1.2 is not upgraded:\n`ensure_reqs` installs with `upgrade=False`, and 3.1.2 satisfies `>=3.0.0`.\n\n## How to reproduce\n\nWith cloudpickle 3.1.2 in the benchmark venv:\n\n```bash\npython -m pyperformance run -b dask -f -o /tmp/dask.json\n# KeyError: 'DELETE_GLOBAL'\n\npython -m pip install -U 'cloudpickle>=3.1.3'\npython -m pyperformance run -b dask -f -o /tmp/dask.json\n# passes\n```\n\n## Proposed fix\n\nPin cloudpickle explicitly in\n`pyperformance/data-files/benchmarks/bm_dask/requirements.txt`:\n\n```\ndask[distributed]==2024.10.0\ncloudpickle==3.1.3\n```\n\nThis makes the benchmark deterministic for both fresh and existing venvs, and\nmatches how the other benchmark requirements are pinned. cloudpickle 3.1.3\nrequires Python >=3.8, so it is compatible with all supported versions.\n\n## Environment\n\n- pyperformance `1.14.0` (main at `8a0713c`)\n- Python `3.16.0a2+dev`\n- dask `2024.10.0`, cloudpickle `3.1.2` (fails) / `3.1.3` (passes)\n\n## Related\n\n- cloudpipe/cloudpickle#599 (`MNT: account for removed opcode in Python 3.16`),\n included in cloudpickle v3.1.3.\n","author":{"url":"https://github.com/sendaoYan","@type":"Person","name":"sendaoYan"},"datePublished":"2026-11-19T03:38:21Z","url":"https://github.com/python/pyperformance/issues/518"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:36990f7b-c751-b32f-e084-c2e026975f24 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B810:B53AF:3110EC7:415BE2E:6B01E961 |
| html-safe-nonce | 67e323694f9047012f730032ae394d185c47e2c76d7ec49d513d5192bd596a63 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODEwOkI1M0FGOjMxMTBFQzc6NDE1QkUyRTo2QjAxRTk2MSIsInZpc2l0b3JfaWQiOiIzNzEyNzQzMzk0MTQzMDUxMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | cd0793eef44e11eac93e58c5ebec28854d2b62f7edf7bd7e5f0b7a185874502e |
| hovercard-subject-tag | issue:6481830101 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/pyperformance/518/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96eb746500908a720dfc78b9dd4fc6b9ac859114e236856548dafdac8f18672d/python/pyperformance/issues/518 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96eb746500908a720dfc78b9dd4fc6b9ac859114e236856548dafdac8f18672d/python/pyperformance/issues/518 |
| og:image:alt | Summary bm_dask pins dask[distributed]==2024.10.0, but cloudpickle is only a transitive dependency (cloudpickle >=3.0.0). On Python 3.16, which removed the DELETE_GLOBAL opcode, cloudpickle < 3.1.3... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sendaoYan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/pyperformance git https://github.com/python/pyperformance.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 65949828 |
| octolytics-dimension-repository_nwo | python/pyperformance |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 65949828 |
| octolytics-dimension-repository_network_root_nwo | python/pyperformance |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width