Title: make regen-all is not deterministic · Issue #108740 · python/cpython · GitHub
Open Graph Title: make regen-all is not deterministic · Issue #108740 · python/cpython
X Title: make regen-all is not deterministic · Issue #108740 · python/cpython
Description: Bug report Checklist I am confident this is a bug in CPython, not a bug in a third-party project I have searched the CPython issue tracker, and am confident this bug has not been reported before CPython versions tested on: CPython main b...
Open Graph Description: Bug report Checklist I am confident this is a bug in CPython, not a bug in a third-party project I have searched the CPython issue tracker, and am confident this bug has not been reported before CP...
X Description: Bug report Checklist I am confident this is a bug in CPython, not a bug in a third-party project I have searched the CPython issue tracker, and am confident this bug has not been reported before CP...
Opengraph URL: https://github.com/python/cpython/issues/108740
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"make regen-all is not deterministic","articleBody":"# Bug report\n\n### Checklist\n\n- [X] I am confident this is a bug in CPython, not a bug in a third-party project\n- [X] I have searched the [CPython issue tracker](https://github.com/python/cpython/issues?q=is%3Aissue+sort%3Acreated-desc),\nand am confident this bug has not been reported before\n\n\n### CPython versions tested on:\n\nCPython main branch\n\n### Operating systems tested on:\n\nLinux\n\n### Output from running 'python -VV' on the command line:\n\n_No response_\n\n### A clear and concise description of the bug:\n\nThe ``make regen-all`` command is not deterministic. Depending in the order in which the target dependencies are executed, the result change.\n\nregen1.sh:\n\n```\nset -e -x\n\ngit checkout .\ngit checkout 79823c103b66030f10e07e04a5462f101674a4fc\n\n# WARNING: it removes all untracked files!\ngit clean -fdx\n\n./configure --with-pydebug\n\nmake regen-cases\nmake regen-typeslots\nmake regen-token\nmake regen-ast\nmake regen-keyword\nmake regen-sre\nmake regen-frozen\nmake regen-pegen-metaparser\nmake regen-pegen\nmake regen-test-frozenmain\nmake regen-test-levenshtein\n\nmake clinic\nmake regen-global-objects\n\necho\ngrep 'ID(traceback)' Python/deepfreeze/deepfreeze.c || true\necho\nwc -l Python/deepfreeze/deepfreeze.c\n```\n\nregen2.sh:\n\n```\nset -e -x\n\ngit checkout .\ngit checkout 79823c103b66030f10e07e04a5462f101674a4fc\n\n# WARNING: it removes all untracked files!\ngit clean -fdx\n\n./configure --with-pydebug\n\nmake clinic\nmake regen-global-objects\n\nmake regen-cases\nmake regen-typeslots\nmake regen-token\nmake regen-ast\nmake regen-keyword\nmake regen-sre\nmake regen-frozen\nmake regen-pegen-metaparser\nmake regen-pegen\nmake regen-test-frozenmain\nmake regen-test-levenshtein\n\necho\ngrep 'ID(traceback)' Python/deepfreeze/deepfreeze.c || true\necho\nwc -l Python/deepfreeze/deepfreeze.c\n```\n\nregen1.sh output:\n\n```\n(...)\n\n \u0026_Py_ID(traceback),\n \u0026_Py_ID(traceback),\n\n146433 Python/deepfreeze/deepfreeze.c\n```\n\nregen2.sh output:\n\n```\n(...)\n\n146543 Python/deepfreeze/deepfreeze.c\n```\n\n* Using ``regen1.sh``, there is a ``traceback`` identfier in ``Python/deepfreeze/deepfreeze.c``.\n* Using ``regen1.sh``, there **is no** ``traceback`` identfier in ``Python/deepfreeze/deepfreeze.c``.\n\nThese commands are coming from ``regen-all`` in ``Makefile.pre.in``:\n\n```\nregen-all: regen-cases regen-typeslots \\\n regen-token regen-ast regen-keyword regen-sre regen-frozen clinic \\\n regen-pegen-metaparser regen-pegen regen-test-frozenmain \\\n regen-test-levenshtein regen-global-objects\n```\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-108741\n* gh-109019\n* gh-109021\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/vstinner","@type":"Person","name":"vstinner"},"datePublished":"2023-08-31T22:49:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/108740/cpython/issues/108740"}
| 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:c50fb177-88b6-5f55-e46b-beae756644af |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82B2:8D142:29B8BB9:36BADFD:696B26B7 |
| html-safe-nonce | 2eb1d646fa50a3d7046df078b0095741c1c7eb13ffc826100615753605f224ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkIyOjhEMTQyOjI5QjhCQjk6MzZCQURGRDo2OTZCMjZCNyIsInZpc2l0b3JfaWQiOiIxNDk3NjIzMTEzMjYyMzc2NjMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | abfa355118b158e19c14033a30e72ff4432be011cf023501c440e71d831498b9 |
| hovercard-subject-tag | issue:1876410141 |
| 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/cpython/108740/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0374d32a98901b3bcdc5c4f250ddfa1317b5515ae4886654650366c89cd505a3/python/cpython/issues/108740 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0374d32a98901b3bcdc5c4f250ddfa1317b5515ae4886654650366c89cd505a3/python/cpython/issues/108740 |
| og:image:alt | Bug report Checklist I am confident this is a bug in CPython, not a bug in a third-party project I have searched the CPython issue tracker, and am confident this bug has not been reported before CP... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vstinner |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width