Skip to content

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

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 6, 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 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.

Backport notes:

  • Omit Doc/using/configure.rst changes.
  • no need to change "make clinic", it didn't run generate_global_objects.py script before.

Co-authored-by: Erlend E. Aasland erlend@python.org
(cherry picked from commit db1ee6a)

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 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.

Backport notes:

* Omit Doc/using/configure.rst changes.
* no need to change "make clinic", it didn't run
  generate_global_objects.py script before.

Co-authored-by: Erlend E. Aasland <erlend@python.org>
(cherry picked from commit db1ee6a)
@vstinner
Copy link
Member Author

vstinner commented Sep 6, 2023

Reviewers: pay attention to:

Backport notes:

  • Omit Doc/using/configure.rst changes.
  • no need to change "make clinic", it didn't run generate_global_objects.py script before.

@vstinner vstinner merged commit ed233dd into python:3.11 Sep 6, 2023
@vstinner vstinner deleted the fix_regen_all_race_cond311 branch September 6, 2023 21:00
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.

3 participants