Skip to content

[3.12] gh-108740: Fix "make regen-all" race condition (#108741) #109019

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Sep 6, 2023

Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated.

  • "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic".
  • "make clinic" no longer runs generate_global_objects.py script.
  • "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore.
  • Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use.
  • Document generates files in Doc/using/configure.rst.

Co-authored-by: Erlend E. Aasland [email protected]
(cherry picked from commit db1ee6a)


📚 Documentation preview 📚: https://cpython-previews--109019.org.readthedocs.build/

Fix a race condition in "make regen-all". The deepfreeze.c source and
files generated by Argument Clinic are now generated or updated
before generating "global objects". Previously, some identifiers may
miss depending on the order in which these files were generated.

* "make regen-global-objects": Make sure that deepfreeze.c is
  generated and up to date, and always run "make clinic".
* "make clinic" no longer runs generate_global_objects.py script.
* "make regen-deepfreeze" now only updates deepfreeze.c (C file).
  It doesn't build deepfreeze.o (object) anymore.
* Remove misleading messages in "make regen-global-objects" and
  "make clinic". They are now outdated, these commands are now
  safe to use.
* Document generates files in Doc/using/configure.rst.

Co-authored-by: Erlend E. Aasland <[email protected]>
(cherry picked from commit db1ee6a)
@Yhg1s Yhg1s merged commit de0202e into python:3.12 Sep 8, 2023
@vstinner vstinner deleted the fix_regen_all_race_cond branch September 8, 2023 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants