Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-112088: Run autoreconf in GHA check_generated_files#112090

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
vstinner merged 1 commit intopython:mainfromvstinner:avoid_quay_io
Nov 15, 2023

Conversation

vstinner
Copy link
Member

@vstinnervstinner commentedNov 14, 2023
edited by bedevere-appbot
Loading

The "Check if generated files are up to date" job of GitHub Actions now runs the "autoreconf -ivf -Werror" command instead of the "make regen-configure" command to avoid depending on the unstable quay.io server.

Copy link
Member

@gpsheadgpshead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I think this is a good idea. It doesn't appear there is any reason for the quay.io image anymore given ubuntu-22.04 has a sufficiently good autoconf.

@vstinner
Copy link
MemberAuthor

cc@erlend-aasland

Copy link
Member

@hugovkhugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

erlend-aasland reacted with thumbs up emoji
@vstinner
Copy link
MemberAuthor

@hugovk: I completed the PR to address your review. Would you mind to review the updated PR?

Let's updatehttps://github.com/python/cpython/blob/d4f83e1e3a19e2f881115f20d58ae6a019ddb48f/Doc/using/configure.rst#generated-files as well.

Done.

And backport?

I added the backport to 3.11 and 3.12 labels.

hugovk reacted with thumbs up emoji

@vstinner
Copy link
MemberAuthor

The main point of this PR is thatTools/build/regen-configure.sh now uses the same container image than the GitHub Action job, so the job doesn't have to runautoreconf in a container, but can run it directly.

The "Check if generated files are up to date" job of GitHub Actionsnow runs the "autoreconf -ivf -Werror" command instead of the "makeregen-configure" command to avoid depending on the external quay.ioserver.Add Tools/build/regen-configure.sh script to regenerate the configurewith an Ubuntu container image. The"quay.io/tiran/cpython_autoconf:271" container image(https://github.com/tiran/cpython_autoconf) is no longer used.
@vstinner
Copy link
MemberAuthor

Oh, there is a fix in the Changelog entry causing the Docs job to fail: fixed.

@vstinner
Copy link
MemberAuthor

@erlend-aasland: It would be nice if you could review this change, since you made many configure changes last months ;-)

@erlend-aasland
Copy link
Contributor

Also, the devguide must be updated.

Copy link
Contributor

@erlend-aaslanderlend-aasland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This looks good to me. (I'm a little bit puzzled by theaclocal.m4 andconfigure changes, but they are also fine.)

Thanks for doing this.

@erlend-aasland
Copy link
Contributor

IIRC, we did the autoconf version bump before the 3.12 freeze, so IMO we should backport this to 3.12.

@vstinnervstinner removed the needs backport to 3.11only security fixes labelNov 15, 2023
@vstinner
Copy link
MemberAuthor

This looks good to me. (I'm a little bit puzzled by the aclocal.m4 and configure changes, but they are also fine.)

I'm not sure if I picked the wrongpkg-config package. But well, for now, my main worry is more to make the whole Python workflow more reliable by avoiding depending on the externalquay.io server which had multiple outages in several days.

With my change, the Python workflow no longer pulls an external container image, but simply reuse what's available on Ubuntu 22.04 in the GitHub Action.

IIRC, we did the autoconf version bump before the 3.12 freeze, so IMO we should backport this to 3.12.

Oh. So we cannot backport this change to 3.11?

@vstinnervstinner merged commitd9fd33a intopython:mainNov 15, 2023
@vstinnervstinner deleted the avoid_quay_io branchNovember 15, 2023 20:47
@miss-islington-app

This comment was marked as outdated.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 15, 2023
…H-112090)The "Check if generated files are up to date" job of GitHub Actionsnow runs the "autoreconf -ivf -Werror" command instead of the "makeregen-configure" command to avoid depending on the external quay.ioserver.Add Tools/build/regen-configure.sh script to regenerate the configurewith an Ubuntu container image. The"quay.io/tiran/cpython_autoconf:271" container image(https://github.com/tiran/cpython_autoconf) is no longer used.(cherry picked from commitd9fd33a)Co-authored-by: Victor Stinner <vstinner@python.org>
@bedevere-app

This comment was marked as outdated.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelNov 15, 2023
@vstinner
Copy link
MemberAuthor

Merged. Thanks for reviews. Let's start with a backport to 3.12.

erlend-aasland reacted with thumbs up emoji

@erlend-aasland
Copy link
Contributor

Oh. So we cannot backport this change to 3.11?

No, 3.11 uses a patched Autoconf 2.69 from Alpine Linux, not a vanilla 2.69 installation.

@sethmlarson
Copy link
Contributor

@vstinner I was doing some work on release-tools adjacent to this,@zware pointed me to this PR. What are your thoughts on backporting theregen-configure makefile target to all supported versions so that release-tools can depend on it being there?

@gpshead
Copy link
Member

For 3.11 and earlier autoconf version configure generation udpates, ask the release managers (@pablogsal and@ambv) for those branches. (it makes sense for 3.12)

sethmlarson and erlend-aasland reacted with thumbs up emoji

vstinner added a commit to vstinner/cpython that referenced this pull requestNov 16, 2023
…112090)The "Check if generated files are up to date" job of GitHub Actionsnow runs the "autoreconf -ivf -Werror" command instead of the "makeregen-configure" command to avoid depending on the external quay.ioserver.Add Tools/build/regen-configure.sh script to regenerate the configurewith an Ubuntu container image. The"quay.io/tiran/cpython_autoconf:271" container image(https://github.com/tiran/cpython_autoconf) is no longer used.(cherry picked from commitd9fd33a)
@bedevere-app

This comment was marked as outdated.

1 similar comment
@bedevere-app

This comment was marked as duplicate.

vstinner added a commit that referenced this pull requestNov 16, 2023
) (#112159)gh-112088: Run autoreconf in GHA check_generated_files (#112090)The "Check if generated files are up to date" job of GitHub Actionsnow runs the "autoreconf -ivf -Werror" command instead of the "makeregen-configure" command to avoid depending on the external quay.ioserver.Add Tools/build/regen-configure.sh script to regenerate the configurewith an Ubuntu container image. The"quay.io/tiran/cpython_autoconf:271" container image(https://github.com/tiran/cpython_autoconf) is no longer used.(cherry picked from commitd9fd33a)
aisk pushed a commit to aisk/cpython that referenced this pull requestFeb 11, 2024
…112090)The "Check if generated files are up to date" job of GitHub Actionsnow runs the "autoreconf -ivf -Werror" command instead of the "makeregen-configure" command to avoid depending on the external quay.ioserver.Add Tools/build/regen-configure.sh script to regenerate the configurewith an Ubuntu container image. The"quay.io/tiran/cpython_autoconf:271" container image(https://github.com/tiran/cpython_autoconf) is no longer used.
Glyphack pushed a commit to Glyphack/cpython that referenced this pull requestSep 2, 2024
…112090)The "Check if generated files are up to date" job of GitHub Actionsnow runs the "autoreconf -ivf -Werror" command instead of the "makeregen-configure" command to avoid depending on the external quay.ioserver.Add Tools/build/regen-configure.sh script to regenerate the configurewith an Ubuntu container image. The"quay.io/tiran/cpython_autoconf:271" container image(https://github.com/tiran/cpython_autoconf) is no longer used.
@efimov-mikhail
Copy link
Contributor

I can see using ofaclocal 1.16.5 in this PR.
But in docs we write "Autoconf 2.71 and aclocal 1.16.4 are required to regenerate the configure script". (https://docs.python.org/3.14/using/configure.html#build-requirements).

Should we provide some changes to docs for update them?
@vstinner

@vstinner
Copy link
MemberAuthor

Should we provide some changes to docs for update them?

Yes. Do you want to propose a PR to update the doc?

@efimov-mikhail
Copy link
Contributor

Yes. Do you want to propose a PR to update the doc?

Yes, I do.

vstinner reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@gpsheadgpsheadgpshead approved these changes

@hugovkhugovkhugovk approved these changes

@erlend-aaslanderlend-aaslanderlend-aasland approved these changes

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

@ezio-melottiezio-melottiAwaiting requested review from ezio-melottiezio-melotti is a code owner

Assignees
No one assigned
Labels
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@vstinner@erlend-aasland@sethmlarson@gpshead@efimov-mikhail@hugovk

[8]ページ先頭

©2009-2025 Movatter.jp