Coder Social home page Coder Social logo

Comments (9)

Mariatta avatar Mariatta commented on August 27, 2024

@serhiy-storchaka Do you have an example of such PR?

I usually look at documentation changes, so I'm not familiar with make regen-all.

  1. Is there a way to detect when make regen-all should be run? For example, what are the affected paths?

  2. Will it hurt if we run make regen-all for each backport?

Thanks :)

from miss-islington.

Mariatta avatar Mariatta commented on August 27, 2024

and should this be done even when using cherry-picker.py command line?

from miss-islington.

serhiy-storchaka avatar serhiy-storchaka commented on August 27, 2024

The recent example: python/cpython#4118.

For running make regen-all you need more than just git. First, you need to run ./configure. For regenerating the grammar parser you need to build and run a special binary. All this takes a time. It is more efficient to run different commands depending on the files containing conflicts.

from miss-islington.

Mariatta avatar Mariatta commented on August 27, 2024

We're running the webservice in heroku, and I don't think we can run ./configure from within heroku, it doesn't have the necessary software/libraries installed.
So I don't think we can do this.

from miss-islington.

merwok avatar merwok commented on August 27, 2024

I think https://github.com/heroku/heroku-buildpack-apt could work here.
Someone would need to run apt build-dep python3.7 on a system similar to Heroku to generate the list of required packages and write it to a file named «Aptfile».

Then the issue may be limitations (time) on background jobs or one-off dynos or whatever is used to run configure.

from miss-islington.

Mariatta avatar Mariatta commented on August 27, 2024

Time shouldn't be an issue. Backport jobs are all done in the worker dyno.

from miss-islington.

Mariatta avatar Mariatta commented on August 27, 2024

But I don't know a thing about the buildpack in Heroku..

from miss-islington.

merwok avatar merwok commented on August 27, 2024

I’ve used that buildpack (in addition to the base Python buildpack), would be happy to discuss setting it up!

from miss-islington.

asottile avatar asottile commented on August 27, 2024

perhaps even a custom merge driver could be written for this? (at least, specifically for the argument clinic files which is what I hit in python/cherry-picker#18)

and then the various cherry-picking / etc. tooling can use that merge driver?

from miss-islington.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.