-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
Add GitHub workflow to run autoreconf and regen configure on demand #104903
Comments
This new action could do the generation not only on demand, but also for |
Probably, we have no need in the action altogether; the cpython/.github/workflows/build.yml Lines 117 to 125 in 278030a
|
Yeah, great idea—that would take advantage of our existing workflow and remove the duplication between them. Basically, we could move the For user convenience, we could also have the part you highlight prominently print the trigger phase to automatically commit the generated changes, as well as upload the patch as an artifact in case people want it that way. I'm not sure if you're suggesting to actually commit the changes automatically without an explicit user request; given it is relatively infrequent and should only save a few seconds, and there are a number of potential problems with that approach I'm not sure its a good idea at least initially, and think we should stick with an explicit command for now, like with other similar bot actions. Summary of issues
Thanks! |
There was a desire among the core devs to allow easily regenerating the
configure
script usingautoreconf
, to avoid having to pull and run a docker image locally, or install and run the correct version ofautoreconf
manually, as well as avoid any unnecessary churn due to being regenerated in different environments.We should be able to just use our own GitHub Action, which is basically the pre-commit lite approach minus installing the pre-commit GitHub Application and giving it access rights. We use this approach on the Docrepr project to automate generating consistent updated reference screenshots for visual regression tests and commiting them to a PR, triggered on-demand via a comment. (It's actually somewhat more complex than we'd need, since it has to run on multiple platforms to generate the screenshots for each)
Right now its triggered by a comment, but it would be relatively straightforward to change that to a label or manual dispatch. The other option is to have it run automatically as a precursor to the
Build
workflow jobs and update the PR's generatedconfigure
if its out of date, but that could get a little complicated to set up, be potentially surprising/confusing to contributors, could suffer from race conditions and not really save that much time over an explicit comment, so I suggest we start with an explicit comment trigger (or a label, etc.).Might also be a good idea to drop-in
gh
forhub
, since its newer and might simplify things a touch (it just might need a couple other tweaks for that, so I didn't do it yet).Other than that, once the
configure.ac
is updated to work with Autoconf 2.71 (since that's the version currently used on theubuntu-22.04
runner, and the standard version these days), we should be able to just drop in the below workflow in to haveautoreconf
be run in the GitHub Actions CI for a specific PR and commit the results back to the PR automatically. (I can test it on my fork to make sure it works—though as I'm a complete autotools n00b, I'll need help if I run into any autoconf specific problems).The text was updated successfully, but these errors were encountered: