Ask Your Question
2

Would you be willing to share your buildbot config?

asked 2014-03-25 09:15:58 -0600

seismo gravatar image

Hi,

I am working on setting up CI tools (buildbot+GitHub) for our open source seismology codes at Princeton University (e.g. https://github.com/geodynamics/specfem3d). We would like to set up buildbot the way it is done with OpenCV. More precisely:

  • We want the buildbot to run as soon a developer submits a pull-request.
  • If the buildbot fails, we want the developer to be able to fix the errors without submitting another pull-request.

We already have a buildbot running, so I know how to set one up, but it's not fully automatic. I would appreciate it if you would be willing to share your buildbot config files (master.cfg and other python scripts), or parts of them, so that I don't have to reinvent the wheel. I have done some Googling but couldn't find anything on your set up. I think that if you were to share those configs, it would be a great benefit for the buildbot community. Buildbot is great but the learning curve is steep.

Thanks,

David

edit retag flag offensive close merge delete

Comments

maybe one of the apparent maintainers can help you

berak gravatar imageberak ( 2014-03-25 09:32:33 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-25 10:43:15 -0600

Daniil Osokin gravatar image

There are some ways to do this:

  1. Set up a webhook for PullRequestEvent. It sends POST request to your server with essential information about PR, so you can run builder(s) if request is received - Proper way.
  2. Take a look on GitHub API. It allows you receive information about each pull requests by demand (e.g. curl https://api.github.com/repos/Itseez/opencv/pulls/604).
    So, you can periodically examine PR's statuses, and if they have been recently updated (field updated_at in response) run the builders - Tricky, but fast to implement solution.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-03-25 09:15:58 -0600

Seen: 182 times

Last updated: Mar 25 '14