bblfsh / sdk

Babelfish driver SDK
GNU General Public License v3.0
23 stars 27 forks source link

add drivers updater util #418

Closed lwsanty closed 5 years ago

lwsanty commented 5 years ago

Nowadays each sdk version update leads to a painful routine of drivers update. As was agreed in #326 the utility of auto update has been added.

It's a simple go program that does several steps: 1) gets the list of supported drivers 2) for each supported driver several operations performed: 2.1) clone repo 2.2) exec specified script(this is customized part, here can be either or both update sdk or/and go version etc.) 2.3) commit changes, and push them to a newly created branch in the driver's repo 2.4) create PR from newly created branch to master

Environment: could be both executed locally by developer or in CI. Requirements: github application token with a push access to main drivers repo.

closes #326

Signed-off-by: lwsanty lwsanty@gmail.com


This change is Reviewable

lwsanty commented 5 years ago

Jenkinsfile from https://github.com/src-d/infrastructure/issues/992 should be added via another branch because it requires non-fork branch to debug

lwsanty commented 5 years ago

please do not merge after accept